diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2010-05-20 12:45:36 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2010-05-20 12:45:36 +0000 |
commit | ac90cb68704e09d3e4419460fbedc52094c2d6bf (patch) | |
tree | 47d269bb56ad61d7958040a93b5daa58123f2b3f /gnu | |
parent | 9fd73ea81d815738f4d61137622b5be4a3b56fb0 (diff) |
turn off strict overflow for all optimizations on OpenBSD, also disable wrapv.
ok kettenis@ robert@, tested by marco@, kevlo@ myself
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/gcc/gcc/common.opt | 2 | ||||
-rw-r--r-- | gnu/gcc/gcc/opts.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gnu/gcc/gcc/common.opt b/gnu/gcc/gcc/common.opt index 99fb4438d4d..4fcd7f475f4 100644 --- a/gnu/gcc/gcc/common.opt +++ b/gnu/gcc/gcc/common.opt @@ -1092,7 +1092,7 @@ Common Report Var(flag_whole_program) Init(0) Perform whole program optimizations fwrapv -Common Report Var(flag_wrapv) Init(1) +Common Report Var(flag_wrapv) Assume signed arithmetic overflow wraps around fzero-initialized-in-bss diff --git a/gnu/gcc/gcc/opts.c b/gnu/gcc/gcc/opts.c index 98e25a4e1bf..c8e32cfb4e1 100644 --- a/gnu/gcc/gcc/opts.c +++ b/gnu/gcc/gcc/opts.c @@ -497,8 +497,8 @@ decode_options (unsigned int argc, const char **argv) flag_schedule_insns_after_reload = 1; #endif flag_regmove = 1; - flag_strict_overflow = 1; #if !defined(OPENBSD_NATIVE) && !defined(OPENBSD_CROSS) + flag_strict_overflow = 1; flag_delete_null_pointer_checks = 1; #endif flag_reorder_blocks = 1; |