From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A0A5238618E4; Fri, 10 Nov 2023 14:24:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0A5238618E4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699626254; bh=9X0cLmEVxl+cm+8ce3wSvwTjs/5N+1iZ2ApWLRlBso4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rzOeNmEqKMjDqr3JUzmyekNfQv6CsBEFM0C3gCIJ0iCPZqyzvxcemOsLYugcvMvAI avOyrng0jnSwrPaQutcV07st8r1fcvvl50F3J5FoY9Gxpqgzk31u1U8P2Wgx4Od2H3 pgwBmo9kMAxPnu9FCmxos2I/N1IBtshxXaRffN70= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111489] [12/13 Regression] Incorrect "-Wmaybe-uninitialized" warning from GCC 13.2.0 Date: Fri, 10 Nov 2023 14:24:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111489 --- Comment #7 from CVS Commits --- The releases/gcc-13 branch has been updated by Richard Biener : https://gcc.gnu.org/g:06ee3438a4fcf98031fccda8ea8ff592a41cf218 commit r13-8039-g06ee3438a4fcf98031fccda8ea8ff592a41cf218 Author: Richard Biener 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=3Duninit-max-chain-len=3D): New. (-param=3Duninit-max-num-chains=3D): 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. (cherry picked from commit b8a2a12464d25c45a51c14a025e8e2d3ca8ebeb0)=