This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Merge C++ conversion into trunk (0/6 - Overview)
- From: Mike Stump <mikestump at comcast dot net>
- To: Diego Novillo <dnovillo at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Lawrence Crowl <crowl at google dot com>, bonzini at gnu dot org, dj at redhat dot com, rguenther at suse dot de, tromey at redhat dot com, laurynas dot biveinis at gmail dot com
- Date: Thu, 23 Aug 2012 13:54:38 -0700
- Subject: Re: Merge C++ conversion into trunk (0/6 - Overview)
- References: <20120812200427.GA12561@google.com>
On Aug 12, 2012, at 1:04 PM, Diego Novillo wrote:
> Other than the bootstrap change, the patches make no functional
> changes to the compiler. Everything should build as it does now
> in trunk.
In my gcc/Makefile, I see:
CFLAGS = -g
CXXFLAGS = -g -O2
This makes builds in the gcc directory default to -O2, before they were -O0. -O0 aides in debugging for people that develop the compiler. Do you see this?
I think:
# Remove the -O2: for historical reasons, unless bootstrapping we prefer
# optimizations to be activated explicitly by the toplevel.
case "$CC" in
*/prev-gcc/xgcc*) ;;
*) CFLAGS=`echo $CFLAGS | sed "s/-O[[s0-9]]* *//" ` ;;
esac
AC_SUBST(CFLAGS)
in configure.ac does this. I think if CXXFLAGS is also so done, we'd gain parity.