From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 930B23882AE0; Tue, 18 Jun 2024 14:40:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 930B23882AE0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1718721657; bh=NkC5jUAQzH8ULyHsPK62gHux75D0ECS7cg8Tiw04EK8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CMY/aoEuwxweY/3Hu19u/DgWYvj8SbqpafldQB9lGYsURQn1ZyZHipTvusd04czJk t9rlFMJsT+lB2EkrAOPxpg2kz/GXQmwWYq2CbtV4JCwuZ0+u5IAz9xqW4GDe00hOsP 4zMXZp4rFuWlcS2z4yolMKZ47H7D5/3ZOXOL1dRQ= From: "qinzhao at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/115527] -ftrivial-auto-var-init appears to clobber explicit initializer Date: Tue, 18 Jun 2024 14:40:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: qinzhao 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: cc 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=3D115527 qinzhao at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |qinzhao at gcc dot gnu.org --- Comment #2 from qinzhao at gcc dot gnu.org --- (In reply to Andrew Pinski from comment #1) > Confirmed. It looks like the option is emitting the code afterwards rather > than before the initializer ... Yes, this is the case, will take a look on why this is happening.=