warnings when building gcc-4.0.0-20040927 on sparc64-linux...
Christian Joensson
christian@j-son.org
Tue Sep 28 14:27:00 GMT 2004
AuroraFedora Core release 1.91 (Wombat FC2) UP UltraSparc IIi (Sabre) sun4u:
binutils-2.15.90.0.3-6
bison-1.875-7.1
dejagnu-1.4.2-11
expect-5.39.0-96.1
gcc-3.3.3-3
glibc-2.3.3-26sparc3.sparc
glibc-2.3.3-26sparc3.sparc64
glibc-kernheaders-2.6-14sparc
kernel-2.6.8-1.571sp1
tcl-8.4.5-6
zlib-1.2.1.1-2.1.sparc
zlib-1.2.1.1-2.1.sparc64
LAST_UPDATED: Mon Sep 27 11:42:10 UTC 2004
Native configuration is sparc64-unknown-linux-gnu
Compiler version: 4.0.0 20040927 (experimental)
Platform: sparc64-unknown-linux-gnu
configure flags: --enable-__cxa_atexit --enable-shared --enable-languages=c,c++,f95,java,objc
Now, the warnings I get when building this are quite a few...
Counting all warnings,
there are 386 warnings in stage0 of this bootstrap.
Number of warnings per file:
102 libmudflap/mf-runtime.c
98 libobjc/archive.c
21 libiberty/regex.c
20 libiberty/concat.c
19 libjava/java/lang/mprec.c
9 ./java/lang/Integer.h
8 libjava/java/lang/strtod.c
8 include/xregex2.h
6 libjava/java/lang/natClassLoader.cc
6 libjava/java/lang/e_exp.c
6 libjava/java/lang/dtoa.c
6 include/fibheap.h
6 fastjar/jartool.c
5 libcpp/pch.c
4 monetary_members.cc
4 libiberty/pex-unix.c
2 ./runtime-info.h
2 libobjc/thr.c
2 libobjc/sendmsg.c
2 libmudflap/mf-hooks3.c
2 libjava/prims.cc
2 libjava/java/lang/natClass.cc
2 libjava/java/lang/e_rem_pio2.c
2 libjava/java/lang/e_asin.c
2 libjava/gnu/gcj/io/shs.cc
2 libgfortran/generated/transpose_i8.c
2 libgfortran/generated/transpose_i4.c
2 libgfortran/generated/matmul_r8.c
2 libgfortran/generated/matmul_r4.c
2 libgfortran/generated/matmul_l8.c
2 libgfortran/generated/matmul_l4.c
2 libgfortran/generated/matmul_i8.c
2 libgfortran/generated/matmul_i4.c
2 libgfortran/generated/matmul_c8.c
2 libgfortran/generated/matmul_c4.c
2 libcpp/macro.c
2 java/net/natNetworkInterface.cc
2 include/java-signal.h
2 gnu/java/nio/natPipeImpl.cc
2 gcc/defaults.h
2 gcc/coretypes.h
2 gcc/boehm-gc/mark_rts.c
2 gcc/auto-host.h
1 libmath/stubs.c
1 libcpp/makedepend.c
1 libcpp/directives.c
1 fastjar/compress.c
Number of warning types:
90 pointer targets in initialization differ in signedness
80 pointer targets in passing arg ??? of pointer to function differ in signedness
21 signed and unsigned type in conditional expression
20 traditional C rejects ISO C style function definitions
20 passing arg ??? of '_gfortran_size0' from incompatible pointer type
12 suggest parentheses around + or - inside shift
9 this decimal constant is unsigned only in ISO C90
8 pointer targets in passing arg ??? of 'objc_write_string' differ in signedness
6 pointer targets in passing arg ??? of 'objc_write_string_atomic' differ in signedness
6 pointer targets in passing arg ??? of `???' differ in signedness
6 comparison between signed and unsigned integer expressions
6 bit-field `???' type invalid in ISO C
4 variable 'out' might be clobbered by 'longjmp' or 'vfork'
4 unused variable `???'
4 this is the location of the previous definition
4 suggest parentheses around assignment used as truth value
4 'noreturn' function does return
4 ISO C90 does not support 'static' or type qualifiers in parameter array declarators
4 ISO C90 does not support `static' or type qualifiers in parameter array declarators
4 initialization discards qualifiers from pointer target type
4 format '%06lu' expects type 'long unsigned int', but argument 6 has type '__suseconds_t'
4 format '%06lu' expects type 'long unsigned int', but argument 4 has type '__suseconds_t'
4 format '%06lu' expects type 'long unsigned int', but argument 15 has type '__suseconds_t'
4 cast from pointer to integer of different size
3 suggest parentheses around arithmetic in operand of |
2 'z' is used uninitialized in this function
2 'void __rt_sigreturn_stub()' defined but not used
2 'void byteReverse()' declared 'static' but never defined
2 unused parameter 'self'
2 unused parameter '_p'
2 't' may be used uninitialized in this function
2 string length `???' is greater than the length `???' ISO C89 compilers are required to support
2 'spec_case' may be used uninitialized in this function
2 `rtx' redefined
2 'lo' may be used uninitialized in this function
2 'k' may be used uninitialized in this function
2 'ilim' may be used uninitialized in this function
2 'ilim1' may be used uninitialized in this function
2 'hi' may be used uninitialized in this function
2 function returns address of local variable
2 'delta' may be used uninitialized in this function
2 `DEFAULT_USE_CXA_ATEXIT' redefined
2 'bs' may be used uninitialized in this function
2 'bd' may be used uninitialized in this function
2 'bb' may be used uninitialized in this function
1 unused variable 'struct_forward_array'
1 unused parameter `???'
1 'struct_forward_array' defined but not used
1 '__ret$field$3' may be used uninitialized in this function
1 '__ret$field$2' may be used uninitialized in this function
1 '__ret$field$1' may be used uninitialized in this function
1 '__ret$field$0' may be used uninitialized in this function
1 incompatible implicit declaration of built-in function 'fabsl'
1 implicit declaration of function `???'
1 assignment from incompatible pointer type
1 assignment discards qualifiers from pointer target type
Counting all warnings,
there are 10 warnings in stage3 of this bootstrap.
Number of warnings per file:
3 gcc/gcc.c
2 gcc/objc/lang-specs.h
2 gcc/libgcc2.c
2 gcc/config/sparc/sparc.md
1 gcc/java/jvspec.c
Number of warning types:
1 string length '844' is greater than the length '509' ISO C89 compilers are required to support
1 string length '819' is greater than the length '509' ISO C89 compilers are required to support
1 string length '783' is greater than the length '509' ISO C89 compilers are required to support
1 string length '709' is greater than the length '509' ISO C89 compilers are required to support
1 string length '608' is greater than the length '509' ISO C89 compilers are required to support
1 string length '603' is greater than the length '509' ISO C89 compilers are required to support
1 pointer targets in passing arg ??? of '__udivmodti4' differ in signedness
1 pointer targets in passing arg ??? of '__udivmoddi4' differ in signedness
1 operand 2 missing mode?
1 operand 0 missing mode?
Are there any of these warning that rings a bell for someone on this
list? Should I supply more detailed output, per source files, on what
the warnings are?
Cheers,
/ChJ
More information about the Gcc
mailing list