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: Phil Edwards <pedwards at jaj dot com>
- Subject: Re: enabling -O2 with gcc 2.96 and later
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 17 Dec 1999 17:13:13 -0200
- Cc: libstdc++ at sourceware dot cygnus dot com
- References: <199912171814.NAA05999@jaj.com>
On Dec 17, 1999, Phil Edwards <pedwards@jaj.com> wrote:
> My first approach was wonderfully freakin' braindead.
No offense intended, but so is this second attempt, IMHO :-)
How about:
AC_EGREP_CPP([ok], [
#if (__GNUC__ == 2 && __GNUC_MINOR__ > 95) || __GNUC__ > 2
ok
#fi
], [OPTLEVEL='-O2'], [OPTLEVEL=])
AC_SUBST(OPTLEVEL)
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them