Bug 18875

Summary: [4.0 Regression] Cannot build libcpp due to -Wno-long-long flag
Product: gcc Reporter: Arnaud Charlet <charlet>
Component: preprocessorAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED WORKSFORME    
Severity: normal CC: gcc-bugs, zack+srcbugz
Priority: P2 Keywords: build
Version: 4.0.0   
Target Milestone: 4.0.0   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed:

Description Arnaud Charlet 2004-12-07 17:14:56 UTC
When using a version of GCC that does not support -Wno-long-long as the
bootstrap compiler (such as GCC 2.8.1), it is not possible to build GCC 4.0:

gcc  -I../../gcc-head/libcpp -I. -I../../gcc-head/libcpp/../include
-I../../gcc-head/libcpp/include  -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long 
-I../../gcc-head/libcpp -I. -I../../gcc-head/libcpp/../include
-I../../gcc-head/libcpp/include  -c ../../gcc-head/libcpp/charset.c
cc1: Invalid option `-Wno-long-long'
make[1]: *** [charset.o] Error 1
make[1]: Leaving directory `/home/charlet/cvs/gcc-obj/libcpp'
make: *** [all-libcpp] Error 2
Comment 1 Andrew Pinski 2004-12-07 18:19:40 UTC
Can you attach the config.log for libcpp?
Because we do check for -Wno-long-long in configure:
ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long])


Did you change CC after configuring?
Comment 2 Andrew Pinski 2004-12-26 15:37:22 UTC
This works for me, you had to have changed compilers between configuring and building.