From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A6DCC3858438; Thu, 16 Mar 2023 23:29:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6DCC3858438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679009378; bh=HJpb3JKUI+NJQndrEUdsWGO3KE4zT/b+vV4vesyOZxg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tIg3z9UHHdg23FTZc07jCDqphIiQCj7mdwIfftzElscJ75vSQ/yLgoSLJjhqCmJo3 +pNG6dPXc7hJjMKLtGpZbk5Wp5pKgSo6yPj9G3Q2bR7ImYMQo+ZupBfVQ9uL8iSJ24 Yky4vSs9x+1RWXh6tJzhrXxq4G+jpwIT0Z1HjrTU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109164] thread_local initialization error with -ftree-pre Date: Thu, 16 Mar 2023 23:29:38 +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: 12.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed 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=3D109164 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2023-03-16 Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski --- The bug has been in around since thread_local was added it seems back in GCC 4.8.0. Confirmed. Note the wrong code can be reproduced on x86 too.=