This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -no-integrated-cpp flag (patches for gcc3.3)
- From: "Ashif S. Harji" <asharji at plg2 dot math dot uwaterloo dot ca>
- To: Neil Booth <neil at daikokuya dot co dot uk>
- Cc: gcc at gcc dot gnu dot org, Ashif Harji <asharji at uwaterloo dot ca>, "Peter A. Buhr" <pabuhr at plg2 dot math dot uwaterloo dot ca>
- Date: Sat, 1 Mar 2003 18:56:39 -0500 (EST)
- Subject: Re: -no-integrated-cpp flag (patches for gcc3.3)
The patch passed bootstrap and testing.
Bootstrapping and Testing:
On i686-pc-linux-gnu:
- bootstrap was successful
- no changes in testsuite results when compared to original (gcc-20030224 snapshot)
On Sat, 1 Mar 2003, Ashif S. Harji wrote:
>
> > > Apparently, the -traditional-cpp flag with gcc generates and saves the
> > > basename.i file. I have maintained this behaviour with my patches, but it
> > > seemed unusual to me and it is different from the behaviour of gcc-3.2.
> >
> > It should be generated, but I guess it should be deleted afterwards too.
>
> In that case, consider the patch below for gcc.c instead. I am running
> the tests at the moment.
>
> 1>@awk[182]% diff -c3p gcc-20030224/gcc/gcc.c test/gcc-20030224/gcc/gcc.c
> *** gcc-20030224/gcc/gcc.c Thu Dec 12 19:17:19 2002
> --- test/gcc-20030224/gcc/gcc.c Wed Feb 26 16:36:28 2003
> *************** static const struct compiler default_com
> *** 857,867 ****
> %{!E:%{!M:%{!MM:\
> %{traditional|ftraditional:\
> %eGNU C no longer supports -traditional without -E}\
> ! %{save-temps|traditional-cpp:%(trad_capable_cpp) \
> ! %(cpp_options) %b.i \n\
> ! cc1 -fpreprocessed %b.i %(cc1_options)}\
> ! %{!save-temps:%{!traditional-cpp:\
> ! cc1 %(cpp_unique_options) %(cc1_options)}}\
> %{!fsyntax-only:%(invoke_as)}}}}", 0},
> {"-",
> "%{!E:%e-E required when input is from standard input}\
> --- 857,867 ----
> %{!E:%{!M:%{!MM:\
> %{traditional|ftraditional:\
> %eGNU C no longer supports -traditional without -E}\
> ! %{save-temps|traditional-cpp|no-integrated-cpp:%(trad_capable_cpp) \
> ! %(cpp_options) %{save-temps:%b.i} %{!save-temps:%g.i} \n\
> ! cc1 -fpreprocessed %{save-temps:%b.i} %{!save-temps:%g.i} %(cc1_options)}\
> ! %{!save-temps:%{!traditional-cpp:%{!no-integrated-cpp:\
> ! cc1 %(cpp_unique_options) %(cc1_options)}}}\
> %{!fsyntax-only:%(invoke_as)}}}}", 0},
> {"-",
> "%{!E:%e-E required when input is from standard input}\
> *************** static const struct option_map option_ma
> *** 965,970 ****
> --- 965,971 ----
> {"--library-directory", "-L", "a"},
> {"--machine", "-m", "aj"},
> {"--machine-", "-m", "*j"},
> + {"--no-integrated-cpp", "-no-integrated-cpp", 0},
> {"--no-line-commands", "-P", 0},
> {"--no-precompiled-includes", "-noprecomp", 0},
> {"--no-standard-includes", "-nostdinc", 0},
>
>
>
>
>
>