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
On Dec 17, 1999, Gabriel Dos Reis <gdr@sourceware.cygnus.com> wrote:
> "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de> writes:
> | I did not follow this closely, but I think checking version numbers in
> | autoconf is morally wrong.
> Please, can you expand on this?
Martin is right. The main principle of autoconf is testing for
*features*, not versions. For example, when I found out libgcj failed
to build with gcc-2.95 -g on Solaris/x86, I found a minimal testcase
that reproduced the failure, and used it to disable -g. This would
have fixed the problem not only on Solaris/x86, but also on any other
platforms that used DWARF as the default debugging format, which is
where the original GCC bug was.
--
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