This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: enabling -O2 with gcc 2.96 and later
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Re: enabling -O2 with gcc 2.96 and later
- From: fche at cygnus dot com (Frank Ch. Eigler)
- Date: 17 Dec 1999 13:31:54 -0500
- Newsgroups: cygnus.g++.libstdc++
- Organization: Cygnus Solutions
- References: <199912171814.NAA05999@jaj.com>
Phil Edwards <pedwards@jaj.com> writes:
> [...]
> Index: src/Makefile.am
> [...]
> CXXFLAGS = -g
> -AM_CXXFLAGS = -O2 -D_GNU_SOURCE -fno-implicit-templates \
> +AM_CXXFLAGS = @OPTLEVEL@ -D_GNU_SOURCE -fno-implicit-templates \
> -Wall -Wno-format -W -Wwrite-strings -Winline $(WERROR) \
> $(OTHER_CXXFLAGS)
Sorry to jump in again, but optimization would still be nice to
include in the "CXXFLAGS" set, not the AM_CXXFLAGS where it's out of
the user's hands. Please consider instead:
CXXFLAGS = -g @OPTLEVEL@
AM_CXXFLAGS = -D_GNU_SOURCE -fno-implicit-templates \
-Wall -Wno-format -W -Wwrite-strings -Winline $(WERROR) \
$(OTHER_CXXFLAGS)
- FChE