Re: Pack reloc_howto_struct

Fix fallout when using gcc-4.

	* dw2gencfi.c (emit_expr_encoded, output_fde): Warning fixes.
This commit is contained in:
Alan Modra 2018-08-22 14:11:56 +09:30
parent e8a648884d
commit 86b9fea102
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2018-08-22 Alan Modra <amodra@gmail.com>
* dw2gencfi.c (emit_expr_encoded, output_fde): Warning fixes.
2018-08-21 Arnold Metselaar <arnold.metsel@gmail.com>
* config/tc-z80.c: Correct treatment of undocumented instruction

View File

@ -197,7 +197,7 @@ emit_expr_encoded (expressionS *exp, int encoding, bfd_boolean emit_encoding)
{
reloc_howto_type *howto = bfd_reloc_type_lookup (stdoutput, code);
char *p = frag_more (size);
gas_assert (size == howto->bitsize / 8);
gas_assert (size == (unsigned) howto->bitsize / 8);
md_number_to_chars (p, 0, size);
fix_new (frag_now, p - frag_now->fr_literal, size, exp->X_add_symbol,
exp->X_add_number, howto->pc_relative, code);
@ -1979,7 +1979,7 @@ output_fde (struct fde_entry *fde, struct cie_entry *cie,
{
reloc_howto_type *howto = bfd_reloc_type_lookup (stdoutput, code);
char *p = frag_more (addr_size);
gas_assert (addr_size == howto->bitsize / 8);
gas_assert (addr_size == (unsigned) howto->bitsize / 8);
md_number_to_chars (p, 0, addr_size);
fix_new (frag_now, p - frag_now->fr_literal, addr_size,
fde->start_address, 0, howto->pc_relative, code);