From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 030B43858408; Tue, 11 Jun 2024 10:21:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 030B43858408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1718101262; bh=WqivTjZCZvt4CCjEoJYfaC+Buodn+5rFNhFGG5jFf1M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PSxUtgx5RrzaYJHh+Xm6rP+yuihxCZOW3d+TaWNY2errRswNZKjRnjdu8DhZBVAGL fsjKF4dJEX1Fy769AA4XUuyRyuoHtOq4lT2p645RutiGGUNlXR4dsiYmn7EGlv72Ow gnr9PUdXPnxP97wleIXlGeKX9G1+1NfsBNOL0pDo= From: "Eric.Diaz.Fernandez at eurid dot eu" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/80379] Redundant note: code may be misoptimized unless -fno-strict-aliasing is used Date: Tue, 11 Jun 2024 10:21:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 6.1.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: Eric.Diaz.Fernandez at eurid dot eu X-Bugzilla-Status: WAITING 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=3D80379 Eric Diaz Fernandez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Eric.Diaz.Fernandez at eur= id dot e | |u --- Comment #4 from Eric Diaz Fernandez --- I believe I've hit that bug. I was about to post a report it when I found t= his one. When building one of my programs with -flto but without -fno-strict-aliasing the resulting assembly misses the call to an initialization function. The current workaround suggested to the maintainer is to not use -flto Is there anything I can add to help fixing the issue?=