summaryrefslogtreecommitdiff
path: root/gcc/params.def
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-21 09:53:56 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-21 09:53:56 +0000
commit13e8ebe80fb878bade776131e738d5772aa0ad1b (patch)
treefd719ad6495d65560c713ce1fb75c59e15ca32e8 /gcc/params.def
parentb12563e00026b48b817fd3532fc3df2db2a0f460 (diff)
downloadgcc-13e8ebe80fb878bade776131e738d5772aa0ad1b.tar.gz
PR tree-optimization/56490
* params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param. * tree-ssa-uninit.c: Include params.h. (compute_control_dep_chain): Add num_calls argument, return false if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass num_calls to recursive call. (find_predicates): Change dep_chain into normal array, cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls variable and adjust compute_control_dep_chain caller. (find_def_preds): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207988 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/params.def')
-rw-r--r--gcc/params.def6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/params.def b/gcc/params.def
index abfda73ca87..ad63a37a76f 100644
--- a/gcc/params.def
+++ b/gcc/params.def
@@ -1078,6 +1078,12 @@ DEFPARAM (PARAM_ASAN_USE_AFTER_RETURN,
"asan-use-after-return",
"Enable asan builtin functions protection",
1, 0, 1)
+
+DEFPARAM (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS,
+ "uninit-control-dep-attempts",
+ "Maximum number of nested calls to search for control dependencies "
+ "during uninitialized variable analysis",
+ 1000, 1, 0)
/*
Local variables: