aboutsummaryrefslogtreecommitdiff
path: root/gas/dw2gencfi.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-08-22 14:11:56 +0930
committerAlan Modra <amodra@gmail.com>2018-08-22 15:38:37 +0930
commit86b9fea102b36b9147d581f2fff3f495e9dd7601 (patch)
treee832ced0057ab373a815480ba772156c3f52002a /gas/dw2gencfi.c
parente8a648884df318b3c6be170ecdc9c42f79e56bd0 (diff)
downloadgdb-86b9fea102b36b9147d581f2fff3f495e9dd7601.zip
gdb-86b9fea102b36b9147d581f2fff3f495e9dd7601.tar.gz
gdb-86b9fea102b36b9147d581f2fff3f495e9dd7601.tar.bz2
Re: Pack reloc_howto_struct
Fix fallout when using gcc-4. * dw2gencfi.c (emit_expr_encoded, output_fde): Warning fixes.
Diffstat (limited to 'gas/dw2gencfi.c')
-rw-r--r--gas/dw2gencfi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c
index b15172e..3b61070 100644
--- a/gas/dw2gencfi.c
+++ b/gas/dw2gencfi.c
@@ -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);