summaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-15 08:16:56 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-15 08:16:56 +0000
commit8365f6c8309554c056301464f9d94ea161c688a4 (patch)
treea5487c95e5d2112792adad4496edbb4df0e8872a /gcc/opts.c
parent210d1d7e4fbcd7213e31c704429a34ed7292365d (diff)
downloadgcc-8365f6c8309554c056301464f9d94ea161c688a4.tar.gz
PR tree-optimization/48766
* opts.c (common_handle_option): For -fwrapv disable -ftrapv, for -ftrapv disable -fwrapv. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195186 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 245e191dae3..bd1b2dcfd35 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1755,6 +1755,16 @@ common_handle_option (struct gcc_options *opts,
/* No-op. Used by the driver and passed to us because it starts with f.*/
break;
+ case OPT_fwrapv:
+ if (value)
+ opts->x_flag_trapv = 0;
+ break;
+
+ case OPT_ftrapv:
+ if (value)
+ opts->x_flag_wrapv = 0;
+ break;
+
default:
/* If the flag was handled in a standard way, assume the lack of
processing here is intentional. */