aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-02-21 12:01:27 +0000
committerAlan Modra <amodra@gmail.com>2000-02-21 12:01:27 +0000
commitf6af82bd4470673eef9562d4ed3a2717c1d749ab (patch)
tree049fedd33d8bf74259017f441ef55ee8920b9cc2 /bfd/bfd-in2.h
parent2403ff6fdb9d23ee79863d2b2aacac46a2d8283d (diff)
downloadgdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.zip
gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.tar.gz
gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.tar.bz2
This lot mainly cleans up `comparison between signed and unsigned' gcc
warnings. One usused var, and a macro parenthesis fix too. Also check input sections are elf when doing gc in elflink.h.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r--bfd/bfd-in2.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index d7b52db..99bc67f 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1219,9 +1219,11 @@ extern const struct symbol_cache_entry * const bfd_com_symbol;
extern const struct symbol_cache_entry * const bfd_und_symbol;
extern const struct symbol_cache_entry * const bfd_ind_symbol;
#define bfd_get_section_size_before_reloc(section) \
- (section->reloc_done ? (abort(),1): (section)->_raw_size)
+ ((section)->reloc_done ? (abort (), (bfd_size_type) 1) \
+ : (section)->_raw_size)
#define bfd_get_section_size_after_reloc(section) \
- ((section->reloc_done) ? (section)->_cooked_size: (abort(),1))
+ ((section)->reloc_done ? (section)->_cooked_size \
+ : (abort (), (bfd_size_type) 1))
asection *
bfd_get_section_by_name PARAMS ((bfd *abfd, CONST char *name));
@@ -1467,10 +1469,10 @@ const char *
bfd_printable_arch_mach
PARAMS ((enum bfd_architecture arch, unsigned long machine));
-int
+unsigned int
bfd_octets_per_byte PARAMS ((bfd *abfd));
-int
+unsigned int
bfd_arch_mach_octets_per_byte PARAMS ((enum bfd_architecture arch,
unsigned long machine));