This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: changing "configure" to default to "gcc -g -O2 -fwrapv ..."


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)


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