[Bug bootstrap/53343] [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' breaks bootstrap
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 15 12:22:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53343
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-05-15 12:05:16 UTC ---
This is the successful compilation line in x86_64-unknown-linux-gnu:
/home/manuel/test2/187462M/build/./prev-gcc/g++
-B/home/manuel/test2/187462M/build/./prev-gcc/
-B/home/manuel/test2/./187462M/install/x86_64-unknown-linux-gnu/bin/
-nostdinc++
-B/home/manuel/test2/187462M/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/home/manuel/test2/187462M/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/home/manuel/test2/187462M/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/home/manuel/test2/187462M/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/home/manuel/test2/src/libstdc++-v3/libsupc++
-L/home/manuel/test2/187462M/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/manuel/test2/187462M/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-c -g -O2 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -W -Wall
-Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common
-DHAVE_CONFIG_H -I. -I. -I/home/manuel/test2/src/gcc
-I/home/manuel/test2/src/gcc/. -I/home/manuel/test2/src/gcc/../include
-I/home/manuel/test2/src/gcc/../libcpp/include -I/opt/cfarm/mpfr-2.4.1//include
-I/opt/cfarm/mpc-0.8/include -I/home/manuel/test2/src/gcc/../libdecnumber
-I/home/manuel/test2/src/gcc/../libdecnumber/bid -I../libdecnumber options.c
-o options.o
So g++ is missing -Wmissing-prototypes (actually, -Wmissing-declarations). see
PR 50134.
Not sure what is the best way to fix this.
Declare also the functions in options.c?
Including options.h in options.c is maybe problematic.
More information about the Gcc-bugs
mailing list