[Bug ada/21959] [4.1 Regression] Ada depends on signed overflow

schwab at suse dot de gcc-bugzilla@gcc.gnu.org
Fri Jun 10 17:00:00 GMT 2005


------- Additional Comments From schwab at suse dot de  2005-06-10 16:59 -------
> hmm, I can't test the 4.1 bootstrap with -fwrapv due to xgcc error.

Try this to enable -fwrapv by default:

--- misc.c	01 Jun 2005 10:00:47 +0200	1.102
+++ misc.c	08 Jun 2005 14:58:25 +0200	
@@ -339,6 +339,8 @@ gnat_init_options (unsigned int argc, co
   /* Uninitialized really means uninitialized in Ada.  */
   flag_zero_initialized_in_bss = 0;
 
+  flag_wrapv = 1;
+
   return CL_Ada;
 }
 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21959



More information about the Gcc-bugs mailing list