This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Putting C++ code into gcc front end
- From: Michael Matz <matz at suse dot de>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Nathan Sidwell <nathan at codesourcery dot com>,"Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, <galibert at pobox dot com>,<gcc at gcc dot gnu dot org>
- Date: Tue, 4 Mar 2003 22:38:52 +0100 (CET)
- Subject: Re: Putting C++ code into gcc front end
Hi,
On Tue, 4 Mar 2003, Zack Weinberg wrote:
> > How practical would it be to have '-ansi -pedantic' supplied at stage2?
> > Could we do it on a per front end basis? I suspect all but one of cp's
> > gnuisms is by accident.
>
> In principle you can just change the line setting "cp-warn" in
> cp/Make-lang.in to apply whichever options you want: probably
> -pedantic -Wno-long-long. (-ansi is a bad idea, it causes system
> headers to change their definition set.)
I am strictly against compiling stage2 with different flags than stage3.
(substitute stage2 and stage3 with the last two to-be-compared stages in
case we go to n-stage boostrap). Even if those flags should not make the
code different, they might.
Ciao,
Michael.