https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111489
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:b8a2a12464d25c45a51c14a025e8e2d3ca8ebeb0 commit r14-4170-gb8a2a12464d25c45a51c14a025e8e2d3ca8ebeb0 Author: Richard Biener <rguent...@suse.de> Date: Wed Sep 20 08:40:34 2023 +0200 tree-optimization/111489 - turn uninit limits to params The following turns MAX_NUM_CHAINS and MAX_CHAIN_LEN to params which allows to experiment with raising them. For the testcase in PR111489 raising MAX_CHAIN_LEN from 5 to 8 avoids the bogus diagnostics at -O2, at -O3 we need a MAX_CHAIN_LEN of 6. PR tree-optimization/111489 * doc/invoke.texi (--param uninit-max-chain-len): Document. (--param uninit-max-num-chains): Likewise. * params.opt (-param=uninit-max-chain-len=): New. (-param=uninit-max-num-chains=): Likewise. * gimple-predicate-analysis.cc (MAX_NUM_CHAINS): Define to param_uninit_max_num_chains. (MAX_CHAIN_LEN): Define to param_uninit_max_chain_len. (uninit_analysis::init_use_preds): Avoid VLA. (uninit_analysis::init_from_phi_def): Likewise. (compute_control_dep_chain): Avoid using MAX_CHAIN_LEN in template parameter. --- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:daf175e8170c18f59cc42c916005698437446272 commit r14-4171-gdaf175e8170c18f59cc42c916005698437446272 Author: Richard Biener <rguent...@suse.de> Date: Wed Sep 20 08:44:43 2023 +0200 tree-optimization/111489 - raise --param uninit-max-chain-len to 8 This raises --param uninit-max-chain-len to avoid a bogus diagnostic for the large testcase in PR111489. PR tree-optimization/111489 * params.opt (-param uninit-max-chain-len=): Raise default to 8. * gcc.dg/uninit-pr111489.c: New testcase.