This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: enabling -O2 with gcc 2.96 and later



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]