This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix PR79576


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.

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",


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]