diff mbox

Fix PR79576

Message ID alpine.LSU.2.20.1702171433440.8538@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Biener Feb. 17, 2017, 1:35 p.m. UTC
The following fixes too deep recursion with insane
--param max-ssa-name-query-depth by limiting the param appropriately.
Given the search is not width limited it can be highly exponential
in complexity thus I limited it fairly low (10).

Committed as obvious.

Richard.

2017-02-17  Richard Biener  <rguenther@suse.de>

	PR middle-end/79576
	* params.def (max-ssa-name-query-depth): Limit to 10.
diff mbox

Patch

Index: gcc/params.def
===================================================================
--- gcc/params.def	(revision 245501)
+++ gcc/params.def	(working copy)
@@ -1237,7 +1237,7 @@  DEFPARAM (PARAM_MAX_SSA_NAME_QUERY_DEPTH
 	  "max-ssa-name-query-depth",
 	  "Maximum recursion depth allowed when querying a property of an"
 	  " SSA name.",
-	  3, 1, 0)
+	  3, 1, 10)
 
 DEFPARAM (PARAM_MAX_RTL_IF_CONVERSION_INSNS,
 	  "max-rtl-if-conversion-insns",