This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/23351] New: *cpp specs file options are sometimes ignored in Sun builds
- From: "bitti at iki dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Aug 2005 11:01:13 -0000
- Subject: [Bug preprocessor/23351] New: *cpp specs file options are sometimes ignored in Sun builds
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Consider the following additional specs file, test.specs:
*cpp:
+ -I testing
Using that to preprocess a trivial C++ file (containing just an empty main())
produces the following output (Note that "-I testing" is missing):
******************
[cppbug]$ cpp -v -specs=test.specs t.cc
Reading specs from
/share/local/lang/gcc401-sol8/bin/../lib/gcc/sparc-sun-solaris2.8/4.0.1/specs
Reading specs from test.specs
Target: sparc-sun-solaris2.8
Configured with: ../../gcc-4.0.1/configure --prefix=/usr/local/lang/gcc401-sol8
--enable-shared --with-local-prefix=/opt/local --enable-cpp
--enable-threads=posix --with-gnu-ld
--with-ld=/usr/local/lang/gcc401-sol8/bin/ld --with-gnu-as
--with-as=/usr/local/lang/gcc401-sol8/bin/as --disable-nls --disable-multilib
--enable-languages=c,c++ --enable-c99
Thread model: posix
gcc version 4.0.1
/share/local/lang/gcc401-sol8/bin/../libexec/gcc/sparc-sun-solaris2.8/4.0.1/cc1plus
-E -quiet -v -iprefix
/share/local/lang/gcc401-sol8/bin/../lib/gcc/sparc-sun-solaris2.8/4.0.1/ t.cc
-mcpu=v7
... (rest of output omitted)
*****************
For C preprocessing, the -I option is added properly (the last line):
*****************
[cppbug]$ cpp -v -specs=test.specs t.c
Reading specs from
/share/local/lang/gcc401-sol8/bin/../lib/gcc/sparc-sun-solaris2.8/4.0.1/specs
Reading specs from test.specs
Target: sparc-sun-solaris2.8
Configured with: ../../gcc-4.0.1/configure --prefix=/usr/local/lang/gcc401-sol8
--enable-shared --with-local-prefix=/opt/local --enable-cpp
--enable-threads=posix --with-gnu-ld
--with-ld=/usr/local/lang/gcc401-sol8/bin/ld --with-gnu-as
--with-as=/usr/local/lang/gcc401-sol8/bin/as --disable-nls --disable-multilib
--enable-languages=c,c++ --enable-c99
Thread model: posix
gcc version 4.0.1
/share/local/lang/gcc401-sol8/bin/../libexec/gcc/sparc-sun-solaris2.8/4.0.1/cc1
-E -quiet -v -iprefix
/share/local/lang/gcc401-sol8/bin/../lib/gcc/sparc-sun-solaris2.8/4.0.1/
-idirafter /opt/local/include -I testing t.c -mcpu=v7
****************
My linux (i686-pc-linux-gnu) build properly addes the options from *cpp in both
cases.
This bug does not only affect the cpp command but also normal C ja C++
compilations in the sun environment.
--
Summary: *cpp specs file options are sometimes ignored in Sun
builds
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bitti at iki dot fi
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23351