re PR tree-optimization/48766 (Infinite recursion in fold_binary_loc())
authorJakub Jelinek <jakub@redhat.com>
Tue, 15 Jan 2013 08:16:56 +0000 (09:16 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 15 Jan 2013 08:16:56 +0000 (09:16 +0100)
PR tree-optimization/48766
* opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
-ftrapv disable -fwrapv.

From-SVN: r195186

gcc/ChangeLog
gcc/opts.c

index 975b878ae7a5cd8e09ea498e80339a3dc5f233b4..6b4f1d45fcf4f4523ec23bbd91d8b0e8a1314847 100644 (file)
@@ -1,3 +1,9 @@
+2013-01-15  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/48766
+       * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
+       -ftrapv disable -fwrapv.
+
 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
 
        PR target/55974
index 245e191dae369ffc587c496e6bfe47a4e984682e..bd1b2dcfd35277dae9abf62065e910fef0ba8973 100644 (file)
@@ -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.  */