This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: changing "configure" to default to "gcc -g -O2 -fwrapv ..."
- From: Vincent Lefevre <vincent+gcc at vinc17 dot org>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 30 Dec 2006 19:05:57 +0100
- Subject: Re: changing "configure" to default to "gcc -g -O2 -fwrapv ..."
- References: <87fybbyq27.fsf@penguin.cs.ucla.edu> <20061220123349.GE7947@iam.uni-bonn.de> <emc3jc$eap$1@sea.gmane.org> <87mz57xjlf.fsf@penguin.cs.ucla.edu>
On 2006-12-28 23:11:08 -0800, Paul Eggert wrote:
> 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
>
> * NEWS: AC_PROG_CC, AC_PROG_CXX, and AC_PROG_OBJC now take an
> optional second argument specifying the default optimization
> options for GCC. These optimizations now default to "-O2 -fwrapv"
> instead of to "-O2". This partly attacks the problem reported by
[...]
IMHO, you should add -ffloat-store too (when need be, e.g. under
Linux/86 when SSE2 instructions are not used). And this has even
nothing to do with badly-written programs here.
--
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)