public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/23351] New: *cpp specs file options are sometimes ignored in Sun builds
@ 2005-08-12 11:01 bitti at iki dot fi
  2005-08-12 13:32 ` [Bug driver/23351] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bitti at iki dot fi @ 2005-08-12 11:01 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-08-23 12:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-12 11:01 [Bug preprocessor/23351] New: *cpp specs file options are sometimes ignored in Sun builds bitti at iki dot fi
2005-08-12 13:32 ` [Bug driver/23351] " pinskia at gcc dot gnu dot org
2005-08-12 13:40 ` matti dot rintala at iki dot fi
2005-08-12 17:04 ` ebotcazou at gcc dot gnu dot org
2005-08-12 22:33 ` pinskia at gcc dot gnu dot org
2005-08-23 12:49 ` matti dot rintala at iki dot fi
2005-08-23 13:16 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).