diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-09-12 16:23:25 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-09-12 16:23:25 +0000 |
commit | ae115e5114deb0326333c80f7af9e689b2e7d01f (patch) | |
tree | 2c592646411768ec9a95b17070181cb5b068cf9c /bfd/coff-sh.c | |
parent | d8586e35caeb6ffea7058bce844023ec19140cc7 (diff) | |
download | gdb-ae115e5114deb0326333c80f7af9e689b2e7d01f.zip gdb-ae115e5114deb0326333c80f7af9e689b2e7d01f.tar.gz gdb-ae115e5114deb0326333c80f7af9e689b2e7d01f.tar.bz2 |
Extensive minor changes to avoid various gcc warnings. Also:
* Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
* archures.c (bfd_arch_info_type): Change mach field from long to
unsigned long.
(bfd_lookup_arch): Change machine parameter from long to unsigned
long.
Diffstat (limited to 'bfd/coff-sh.c')
-rw-r--r-- | bfd/coff-sh.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/bfd/coff-sh.c b/bfd/coff-sh.c index bc66663..7a3e938 100644 --- a/bfd/coff-sh.c +++ b/bfd/coff-sh.c @@ -368,7 +368,7 @@ sh_reloc (abfd, reloc_entry, symbol_in, data, input_section, output_bfd, sym_value -= 0x1000; insn = (insn & 0xf000) | (sym_value & 0xfff); bfd_put_16 (abfd, insn, hit_data); - if (sym_value < -0x1000 || sym_value >= 0x1000) + if (sym_value < (bfd_vma) -0x1000 || sym_value >= 0x1000) return bfd_reloc_overflow; break; default: @@ -624,8 +624,7 @@ sh_relax_section (abfd, sec, link_info, again) if (coff_section_data (abfd, sec) == NULL) { sec->used_by_bfd = - ((struct coff_section_tdata *) - bfd_zalloc (abfd, sizeof (struct coff_section_tdata))); + ((PTR) bfd_zalloc (abfd, sizeof (struct coff_section_tdata))); if (sec->used_by_bfd == NULL) { bfd_set_error (bfd_error_no_memory); @@ -748,8 +747,7 @@ sh_relax_section (abfd, sec, link_info, again) if (coff_section_data (abfd, sec) == NULL) { sec->used_by_bfd = - ((struct coff_section_tdata *) - bfd_zalloc (abfd, sizeof (struct coff_section_tdata))); + ((PTR) bfd_zalloc (abfd, sizeof (struct coff_section_tdata))); if (sec->used_by_bfd == NULL) { bfd_set_error (bfd_error_no_memory); @@ -877,8 +875,8 @@ sh_relax_delete_bytes (abfd, sec, addr, count) &sym); if (sym.n_sclass != C_EXT && sym.n_scnum == sec->target_index - && (sym.n_value < addr - || sym.n_value >= toaddr)) + && ((bfd_vma) sym.n_value <= addr + || (bfd_vma) sym.n_value >= toaddr)) { bfd_vma val; @@ -1080,8 +1078,8 @@ sh_relax_delete_bytes (abfd, sec, addr, count) &sym); if (sym.n_sclass != C_EXT && sym.n_scnum == sec->target_index - && (sym.n_value < addr - || sym.n_value >= toaddr)) + && ((bfd_vma) sym.n_value <= addr + || (bfd_vma) sym.n_value >= toaddr)) { bfd_vma val; @@ -1146,8 +1144,8 @@ sh_relax_delete_bytes (abfd, sec, addr, count) bfd_coff_swap_sym_in (abfd, (PTR) esym, (PTR) &isym); if (isym.n_scnum == sec->target_index - && isym.n_value >= addr - && isym.n_value < toaddr) + && (bfd_vma) isym.n_value > addr + && (bfd_vma) isym.n_value < toaddr) { isym.n_value -= count; |