diff options
author | Christian Groessler <chris@groessler.org> | 2005-05-31 18:36:28 +0000 |
---|---|---|
committer | Christian Groessler <chris@groessler.org> | 2005-05-31 18:36:28 +0000 |
commit | 988392e2f52d8c962f5aa7da8ba04985c0393529 (patch) | |
tree | bf17ffafdec13d0312473da2a777e061d91176d4 /gas | |
parent | 8662a5e0548a504ea2e4d0c8ced116193a9f1bf6 (diff) | |
download | gdb-988392e2f52d8c962f5aa7da8ba04985c0393529.zip gdb-988392e2f52d8c962f5aa7da8ba04985c0393529.tar.gz gdb-988392e2f52d8c962f5aa7da8ba04985c0393529.tar.bz2 |
2005-05-31 Christian Groessler <chris@groessler.org>
* write.c (dump_section_relocs): Convert to ISO-C.
(write_relocs): Avoid signed/unsigned and fprintf argument
warnings in debug code.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/write.c | 14 |
2 files changed, 11 insertions, 9 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index ced79a8..faabc38 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2005-05-31 Christian Groessler <chris@groessler.org> + + * write.c (dump_section_relocs): Convert to ISO-C. + (write_relocs): Avoid signed/unsigned and fprintf argument + warnings in debug code. + 2005-05-26 Zack Weinberg <zack@codesourcery.com> * config/tc-arm.h (TC_FIX_TYPE): Change to int. diff --git a/gas/write.c b/gas/write.c index 7f4e2d5..2dd8205 100644 --- a/gas/write.c +++ b/gas/write.c @@ -713,12 +713,8 @@ size_seg (bfd *abfd, asection *sec, PTR xxx ATTRIBUTE_UNUSED) #ifdef DEBUG2 static void -dump_section_relocs (abfd, sec, stream_) - bfd *abfd ATTRIBUTE_UNUSED; - asection *sec; - char *stream_; +dump_section_relocs (bfd *abfd ATTRIBUTE_UNUSED, asection *sec, FILE *stream) { - FILE *stream = (FILE *) stream_; segment_info_type *seginfo = seg_info (sec); fixS *fixp = seginfo->fix_root; @@ -1060,7 +1056,7 @@ write_relocs (bfd *abfd, asection *sec, PTR xxx ATTRIBUTE_UNUSED) #ifdef DEBUG4 { - int i, j, nsyms; + unsigned int i, j, nsyms; asymbol **sympp; sympp = bfd_get_outsymbols (stdoutput); nsyms = bfd_get_symcount (stdoutput); @@ -1089,7 +1085,7 @@ write_relocs (bfd *abfd, asection *sec, PTR xxx ATTRIBUTE_UNUSED) #ifdef DEBUG3 { - int i; + unsigned int i; arelent *r; asymbol *s; fprintf (stderr, "relocs for sec %s\n", sec->name); @@ -1097,8 +1093,8 @@ write_relocs (bfd *abfd, asection *sec, PTR xxx ATTRIBUTE_UNUSED) { r = relocs[i]; s = *r->sym_ptr_ptr; - fprintf (stderr, " reloc %2d @%08x off %4x : sym %-10s addend %x\n", - i, r, r->address, s->name, r->addend); + fprintf (stderr, " reloc %2d @%p off %4lx : sym %-10s addend %lx\n", + i, r, (unsigned long)r->address, s->name, (unsigned long)r->addend); } } #endif |