Commit 955f5a07 by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/48766 (Infinite recursion in fold_binary_loc())

	PR tree-optimization/48766
	* opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
	-ftrapv disable -fwrapv.

From-SVN: r195186
parent feb6eab0
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> 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
PR target/55974 PR target/55974
......
...@@ -1755,6 +1755,16 @@ common_handle_option (struct gcc_options *opts, ...@@ -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.*/ /* No-op. Used by the driver and passed to us because it starts with f.*/
break; break;
case OPT_fwrapv:
if (value)
opts->x_flag_trapv = 0;
break;
case OPT_ftrapv:
if (value)
opts->x_flag_wrapv = 0;
break;
default: default:
/* If the flag was handled in a standard way, assume the lack of /* If the flag was handled in a standard way, assume the lack of
processing here is intentional. */ processing here is intentional. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment