This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
cc1 warning when building gcc-3.1
- From: Christian Jönsson <c dot christian dot joensson at telia dot com>
- To: Gcc bugs <gcc-bugs at gcc dot gnu dot org>
- Date: Tue, 16 Apr 2002 07:47:52 +0200
- Subject: cc1 warning when building gcc-3.1
Recently, when building the gcc-3.1 sources, I've been getting warnings
from gcc-3.1's cc1:
Counting all warnings,
there are 221 warnings in stage0 of this bootstrap.
Number of warnings per file:
<snip>
4 cc1
<snip>
Number of warning types:
<snip>
2 ignoring command line option '-fno-implicit-templates'
<snip>
2 (it is valid for C++ but not the selected language)
<snip>
as can be seen here:
/share2/gcc-rel/objdir/gcc/xgcc -B/share2/gcc-rel/objdir/gcc/ -B/usr/sparc-linux/bin/ -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -L/share2/gcc-rel/objdir/ld -I/share2/gcc-rel/gcc/libstdc++-v3/../gcc -I/share2/gcc-rel/gcc/libstdc++-v3/../include -I/share2/gcc-rel/objdir/sparc-linux/libstdc++-v3/include/sparc-linux -I/share2/gcc-rel/objdir/sparc-linux/libstdc++-v3/include -I/share2/gcc-rel/gcc/libstdc++-v3/libsupc++ -g -O2 -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -DIN_GLIBCPP_V3 -Wno-error -c cxa_demangle.c -fPIC -DPIC -o cxa_demangle.o
cc1: warning: ignoring command line option '-fno-implicit-templates'
cc1: warning: (it is valid for C++ but not the selected language)
and here:
/share2/gcc-rel/objdir/gcc/xgcc -B/share2/gcc-rel/objdir/gcc/ -B/usr/sparc-linux/bin/ -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -L/share2/gcc-rel/objdir/ld -I/share2/gcc-rel/gcc/libstdc++-v3/../gcc -I/share2/gcc-rel/gcc/libstdc++-v3/../include -I/share2/gcc-rel/objdir/sparc-linux/libstdc++-v3/include/sparc-linux -I/share2/gcc-rel/objdir/sparc-linux/libstdc++-v3/include -I/share2/gcc-rel/gcc/libstdc++-v3/libsupc++ -g -O2 -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -DIN_GLIBCPP_V3 -Wno-error -c dyn-string.c -fPIC -DPIC -o dyn-string.o
cc1: warning: ignoring command line option '-fno-implicit-templates'
cc1: warning: (it is valid for C++ but not the selected language)
Now, something's wrong here, right? But what is it?
Cheers,
/ChJ