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
* [Bug driver/23351] *cpp specs file options are sometimes ignored in Sun builds 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 ` pinskia at gcc dot gnu dot org 2005-08-12 13:40 ` matti dot rintala at iki dot fi ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-08-12 13:32 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-12 13:31 ------- SPECs are really internal to GCC. -- What |Removed |Added ---------------------------------------------------------------------------- Component|preprocessor |driver http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23351 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug driver/23351] *cpp specs file options are sometimes ignored in Sun builds 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 ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: matti dot rintala at iki dot fi @ 2005-08-12 13:40 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From matti dot rintala at iki dot fi 2005-08-12 13:39 ------- Subject: Re: *cpp specs file options are sometimes ignored in Sun builds pinskia at gcc dot gnu dot org wrote: >------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-12 13:31 ------- >SPECs are really internal to GCC. > > > ? I am not sure I understand you reply. We have to provide additional system-wide compiler flags for gcc (-I include paths, linker options etc.). We are using the specs file for that purpose, and I understood from the documentation that this is still possible in 4.0.1 by using the -dumpspecs option to get a copy of the internal specs file, and then modify that. Is there something wrong with this approach? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23351 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug driver/23351] *cpp specs file options are sometimes ignored in Sun builds 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 ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: ebotcazou at gcc dot gnu dot org @ 2005-08-12 17:04 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23351 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug driver/23351] *cpp specs file options are sometimes ignored in Sun builds 2005-08-12 11:01 [Bug preprocessor/23351] New: *cpp specs file options are sometimes ignored in Sun builds bitti at iki dot fi ` (2 preceding siblings ...) 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 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-08-12 22:33 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-12 22:33 ------- You can set env variables per user. See <http://gcc.gnu.org/onlinedocs/gcc-4.0.1/gcc/Environment-Variables.html#Environment- Variables> -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23351 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug driver/23351] *cpp specs file options are sometimes ignored in Sun builds 2005-08-12 11:01 [Bug preprocessor/23351] New: *cpp specs file options are sometimes ignored in Sun builds bitti at iki dot fi ` (3 preceding siblings ...) 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 5 siblings, 0 replies; 7+ messages in thread From: matti dot rintala at iki dot fi @ 2005-08-23 12:49 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From matti dot rintala at iki dot fi 2005-08-23 12:47 ------- (In reply to comment #3) > You can set env variables per user. Are you saying that specs files and specs options are not supported in current gcc and that they should not be used for any purpose? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23351 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug driver/23351] *cpp specs file options are sometimes ignored in Sun builds 2005-08-12 11:01 [Bug preprocessor/23351] New: *cpp specs file options are sometimes ignored in Sun builds bitti at iki dot fi ` (4 preceding siblings ...) 2005-08-23 12:49 ` matti dot rintala at iki dot fi @ 2005-08-23 13:16 ` pinskia at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-08-23 13:16 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-23 12:49 ------- (In reply to comment #4) > (In reply to comment #3) > > You can set env variables per user. > > Are you saying that specs files and specs options are not supported in current > gcc and that they should not be used for any purpose? No what I am saying is that they are not designed for what you are doing. -- 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).