This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Quite some waring using gcc4... [Was: Results for 2.15.94 20041222 testsuite on i686-pc-linux-gnu]
- From: Christian Joensson <christian dot joensson at gmail dot com>
- To: binutils <binutils at sources dot redhat dot com>
- Date: Wed, 22 Dec 2004 22:09:36 +0100
- Subject: Quite some waring using gcc4... [Was: Results for 2.15.94 20041222 testsuite on i686-pc-linux-gnu]
- References: <20041222210810.GA23368@fw.j-son.org>
On Wed, Dec 22, 2004 at 10:08:10PM +0100, Christian Joensson wrote:
> Fedora Core release 3 (Heidelberg) ia32 pentium III dual i686:
>
> binutils-2.15.92.0.2-5
> bison-1.875c-2
> dejagnu-1.4.4-2
> expect-5.42.1-1
> gcc-3.4.2-6.fc3
> gcc4-4.0.0-0.8
> glibc-2.3.4-2.fc3
> glibc-headers-2.3.4-2.fc3
> glibc-kernheaders-2.4-9.1.87
> kernel-2.6.9-1.681_FC3
> kernel-smp-2.6.9-1.681_FC3
> tcl-8.4.7-2
>
> LAST_UPDATED: Wed Dec 22 20:47:53 UTC 2004
>
> Native configuration is i686-pc-linux-gnu
> version: 2.15.94 20041222
> Platform: i686-pc-linux-gnu
> configure flags: --enable-__cxa_atexit --enable-shared
> Counting all warnings,
> there are 136 warnings in stage0 of this bootstrap.
>
> Number of warnings per file:
> 34 /usr/local/src/trunk/src/bfd/elf-eh-frame.c
> 22 /usr/local/src/trunk/src/bfd/peicode.h
> 14 /usr/local/src/trunk/src/binutils/readelf.c
> 10 /usr/local/src/trunk/src/binutils/bucomm.c
> 8 /usr/local/src/trunk/src/bfd/merge.c
> 6 /usr/local/src/trunk/src/ld/ldexp.c
> 5 libiberty/concat.c
> 4 /usr/local/src/trunk/src/gprof/gmon_io.c
> 4 /usr/local/src/trunk/src/bfd/opncls.c
> 4 /usr/local/src/trunk/src/bfd/elf.c
> 3 /usr/local/src/trunk/src/bfd/dwarf2.c
> 3 libiberty/regex.c
> 2 /usr/local/src/trunk/src/gprof/hist.c
> 2 /usr/local/src/trunk/src/bfd/srec.c
> 2 /usr/local/src/trunk/src/bfd/elf-strtab.c
> 2 /usr/local/src/trunk/src/bfd/cofflink.c
> 2 /usr/local/src/trunk/src/bfd/coffgen.c
> 1 /usr/local/src/trunk/src/ld/ldwrite.c
> 1 /usr/local/src/trunk/src/gprof/basic_blocks.c
> 1 /usr/local/src/trunk/src/gas/read.c
> 1 /usr/local/src/trunk/src/gas/config/obj-elf.c
> 1 /usr/local/src/trunk/src/binutils/objdump.c
> 1 /usr/local/src/trunk/src/bfd/elfcode.h
> 1 libiberty/pex-unix.c
> 1 lex.yy.c
> 1 include/xregex2.h
>
> Number of warning types:
> 25 pointer targets in assignment differ in signedness
> 20 pointer targets in passing argument 1 of 'strlen' differ in signedness
> 10 the use of \`???' is dangerous, better use \`???'
> 8 pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
> 6 pointer targets in passing argument 2 of 'read_unsigned_leb128' differ in signedness
> 6 pointer targets in passing argument 2 of 'gmon_io_read_32' differ in signedness
> 6 pointer targets in initialization differ in signedness
> 5 traditional C rejects ISO C style function definitions
> 5 pointer targets in passing argument 2 of 'read_leb128' differ in signedness
> 4 pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
> 3 signed and unsigned type in conditional expression
> 3 pointer targets in passing argument 3 of 'pe_ILF_make_a_symbol' differ in signedness
> 3 pointer targets in passing argument 2 of 'sec_merge_add' differ in signedness
> 3 pointer targets in passing argument 1 of '__builtin_strchr' differ in signedness
> 2 pointer targets in passing argument 2 of 'read_signed_leb128' differ in signedness
> 2 pointer targets in passing argument 2 of 'bfd_calc_gnu_debuglink_crc32' differ in signedness
> 2 pointer targets in passing argument 1 of 'strcpy' differ in signedness
> 2 pointer targets in passing argument 1 of 'byte_get' differ in signedness
> 1 'yyunput' defined but not used
> 1 variable 'out' might be clobbered by 'longjmp' or 'vfork'
> 1 'strtab' may be used uninitialized in this function
> 1 'result\$value' is used uninitialized in this function
> 1 'result\$valid_p' may be used uninitialized in this function
> 1 'result\$str' is used uninitialized in this function
> 1 'result\$section' is used uninitialized in this function
> 1 pointer targets in return differ in signedness
> 1 pointer targets in passing argument 5 of 'srec_write_record' differ in signedness
> 1 pointer targets in passing argument 4 of 'srec_write_record' differ in signedness
> 1 pointer targets in passing argument 3 of 'coff_write_native_symbol' differ in signedness
> 1 pointer targets in passing argument 3 of 'coff_write_alien_symbol' differ in signedness
> 1 pointer targets in passing argument 3 of 'bfd_simple_get_relocated_section_contents' differ in signedness
> 1 pointer targets in passing argument 2 of 'strcpy' differ in signedness
> 1 pointer targets in passing argument 2 of 'sec_merge_hash_lookup' differ in signedness
> 1 pointer targets in passing argument 2 of 'check_eh_frame' differ in signedness
> 1 pointer targets in passing argument 1 of 'strrchr' differ in signedness
> 1 'new\$str' is used uninitialized in this function
> 1 ISO C90 does not support 'static' or type qualifiers in parameter array declarators
> 1 'hdr\$length' may be used uninitialized in this function
> 1 'count' may be used uninitialized in this function
Is this something someone wants more info about?
Cheers,
/ChJ