[gambit-list] configure must use -fwrapv as a gcc option for building gambit

Bradley Lucier lucier at math.purdue.edu
Fri Jun 3 15:50:28 EDT 2005


Here's the documentation for -fwrapv in gcc-4.0 in

http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Code-Gen-Options.html#Code- 
Gen-Options

-fwrapv
     This option instructs the compiler to assume that signed arithmetic  
overflow of addition, subtraction and multiplication wraps around using  
twos-complement representation. This flag enables some optimizations  
and disables other. This option is enabled by default for the Java  
front-end, as required by the Java language specification.


Since we assume this of all processors, we need to enable this flag.

Brad




More information about the Gambit-list mailing list