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


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


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