Re: gcc Build Warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 29, 2008 at 5:10 PM, Tom Browder <tom.browder@xxxxxxxxx> wrote:
> On Mon, Dec 29, 2008 at 4:05 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
>> "Tom Browder" <tom.browder@xxxxxxxxx> writes:
>>> I'll go back and redo my last build and look at the warnings, but I'm
>>> pretty sure I see mostly the usual warnings about comparison of signed
>>> versus unsigned and such that are probably due to developer
>>> optimizations, but they are bothersome.

I have attached a much-shortened list of the kinds of warnings I'm
talking about--all from stage 2 or later.  Shouldn't these be taken
care of by the developers (i.e., suppressed somehow)?

-Tom
# stage 2 and later
checking whether vasprintf is declared... ../../gcc-4.4-20081226/libiberty/cp-demangle.c: In function 'cplus_demangle_type':
../../gcc-4.4-20081226/libiberty/cp-demangle.c:1914: warning: 'ret' may be used uninitialized in this function
gengtype-lex.c: In function 'yy_get_next_buffer':
gengtype-lex.c:1661: warning: old-style function definition
gengtype-lex.c: In function 'yy_get_previous_state':
gengtype-lex.c:1793: warning: old-style function definition
gengtype-lex.c: In function 'input':
gengtype-lex.c:1906: warning: old-style function definition
../../gcc-4.4-20081226/gcc/gengtype-lex.l: At top level:
gengtype-lex.c:1906: warning: 'input' defined but not used
build/genrecog ../../gcc-4.4-20081226/gcc/config/i386/i386.md \
	  insn-conditions.md > tmp-recog.c
../../gcc-4.4-20081226/gcc/config/i386/i386.md:19694: warning: operand 1 missing mode?
# etc.
/usr/local/src/gcc_projects/gccsnapshots/build/./prev-gcc/xgcc -B/usr/local/src/gcc_projects/gccsnapshots/build/./prev-gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -c  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -Wno-error -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.4-20081226/gcc -I../../gcc-4.4-20081226/gcc/. -I../../gcc-4.4-20081226/gcc/../include -I../../gcc-4.4-20081226/gcc/../libcpp/include -I/usr/local/include -I../../gcc-4.4-20081226/gcc/../libdecnumber -I../../gcc-4.4-20081226/gcc/../libdecnumber/bid -I../libdecnumber    ../../gcc-4.4-20081226/gcc/bitmap.c -o bitmap.o
../../gcc-4.4-20081226/gcc/bitmap.c: In function 'bitmap_obstack_alloc_stat':
../../gcc-4.4-20081226/gcc/bitmap.c:359: warning: request for implicit conversion from 'void *' to 'struct bitmap_head_def *' not permitted in C++
../../gcc-4.4-20081226/gcc/bitmap.c: In function 'bitmap_obstack_free':
../../gcc-4.4-20081226/gcc/bitmap.c:394: warning: request for implicit conversion from 'void *' to 'struct bitmap_element *' not permitted in C++
/usr/local/src/gcc_projects/gccsnapshots/build/./prev-gcc/xgcc -B/usr/local/src/gcc_projects/gccsnapshots/build/./prev-gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -c  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.4-20081226/gcc -I../../gcc-4.4-20081226/gcc/. -I../../gcc-4.4-20081226/gcc/../include -I../../gcc-4.4-20081226/gcc/../libcpp/include -I/usr/local/include -I../../gcc-4.4-20081226/gcc/../libdecnumber -I../../gcc-4.4-20081226/gcc/../libdecnumber/bid -I../libdecnumber    ../../gcc-4.4-20081226/gcc/diagnostic.c -o diagnostic.o
../../gcc-4.4-20081226/gcc/dfp.c: In function 'encode_decimal32':
../../gcc-4.4-20081226/gcc/dfp.c:142: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../gcc-4.4-20081226/gcc/dfp.c: In function 'decode_decimal32':
# etc.
../../gcc-4.4-20081226/gcc/dfp.c:274: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../gcc-4.4-20081226/gcc/dfp.c:267: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules
../../gcc-4.4-20081226/gcc/dfp.c:267: note: initialized from here
# etc.
/usr/local/src/gcc_projects/gccsnapshots/build/./prev-gcc/xgcc -B/usr/local/src/gcc_projects/gccsnapshots/build/./prev-gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -c  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -Wno-error -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.4-20081226/gcc -I../../gcc-4.4-20081226/gcc/. -I../../gcc-4.4-20081226/gcc/../include -I../../gcc-4.4-20081226/gcc/../libcpp/include -I/usr/local/include -I../../gcc-4.4-20081226/gcc/../libdecnumber -I../../gcc-4.4-20081226/gcc/../libdecnumber/bid -I../libdecnumber    ../../gcc-4.4-20081226/gcc/dominance.c -o dominance.o
../../gcc-4.4-20081226/gcc/dominance.c: In function 'iterate_fix_dominators':
../../gcc-4.4-20081226/gcc/dominance.c:1324: warning: request for implicit conversion from 'void *' to 'bitmap' not permitted in C++
/usr/local/src/gcc_projects/gccsnapshots/build/./gcc/xgcc -B/usr/local/src/gcc_projects/gccsnapshots/build/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -g -O2 -m32 -O2  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I../../.././gcc -I../../../../gcc-4.4-20081226/libgcc -I../../../../gcc-4.4-20081226/libgcc/. -I../../../../gcc-4.4-20081226/libgcc/../gcc -I../../../../gcc-4.4-20081226/libgcc/../include -I../../../../gcc-4.4-20081226/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o addtf3.o -MT addtf3.o -MD -MP -MF addtf3.dep -fexceptions -c ../../../../gcc-4.4-20081226/libgcc/../gcc/config/soft-fp/addtf3.c -fvisibility=hidden -DHIDE_EXPORTS
../../../../gcc-4.4-20081226/libgcc/../gcc/config/soft-fp/addtf3.c:35: warning: no previous prototype for '__addtf3'
/usr/local/src/gcc_projects/gccsnapshots/build/./gcc/xgcc -B/usr/local/src/gcc_projects/gccsnapshots/build/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -g -O2 -m32 -O2  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I../../.././gcc -I../../../../gcc-4.4-20081226/libgcc -I../../../../gcc-4.4-20081226/libgcc/. -I../../../../gcc-4.4-20081226/libgcc/../gcc -I../../../../gcc-4.4-20081226/libgcc/../include -I../../../../gcc-4.4-20081226/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o divtf3.o -MT divtf3.o -MD -MP -MF divtf3.dep -fexceptions -c ../../../../gcc-4.4-20081226/libgcc/../gcc/config/soft-fp/divtf3.c -fvisibility=hidden -DHIDE_EXPORTS
../../../../gcc-4.4-20081226/libgcc/../gcc/config/soft-fp/divtf3.c:35: warning: no previous prototype for '__divtf3'
../../../../gcc-4.4-20081226/libgcc/../gcc/config/soft-fp/divtf3.c: In function '__divtf3':
../../../../gcc-4.4-20081226/libgcc/../gcc/config/soft-fp/divtf3.c:38: warning: 'R_e' may be used uninitialized in this function
/usr/local/src/gcc_projects/gccsnapshots/build/./gcc/xgcc -B/usr/local/src/gcc_projects/gccsnapshots/build/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -g -O2 -O2  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I../.././gcc -I../../../gcc-4.4-20081226/libgcc -I../../../gcc-4.4-20081226/libgcc/. -I../../../gcc-4.4-20081226/libgcc/../gcc -I../../../gcc-4.4-20081226/libgcc/../include -I../../../gcc-4.4-20081226/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o bid64_compare.o -MT bid64_compare.o -MD -MP -MF bid64_compare.dep -c ../../../gcc-4.4-20081226/libgcc/config/libbid/bid64_compare.c
../../../../gcc-4.4-20081226/libgcc/../gcc/config/soft-fp/fixtfsi.c:35: warning: no previous prototype for '__fixtfsi'
../../../../gcc-4.4-20081226/libgcc/../gcc/config/soft-fp/fixtfsi.c: In function '__fixtfsi':
../../../../gcc-4.4-20081226/libgcc/../gcc/config/soft-fp/fixtfsi.c:42: warning: left shift count >= width of type

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux