From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 490A13858D33; Tue, 27 Jun 2023 10:48:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 490A13858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687862936; bh=/+qT6i0yHTg21/mEzPtcxKb8SlsLSCOUgnW/QhCCy3A=; h=From:To:Subject:Date:From; b=d+WQeN8YHMWBHF91yfAbOR/ZAivipFjAit/Lh4zxOU+aKN+JWFmNEyeBFtHUjxMu7 SXWAA0vGEUuevetKw++jyQiMLNzGh2Wi5gBjcFkslf0IYYcjCYKAu1WkuqeCj8txBG 5LhzFJrTeyTs02lApYfXJeiin5A0NgjUqSKr6CFM= From: "kristerw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110434] New: tree-nrv introduces incorrect CLOBBER(eol) Date: Tue, 27 Jun 2023 10:48:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kristerw at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D110434 Bug ID: 110434 Summary: tree-nrv introduces incorrect CLOBBER(eol) Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: kristerw at gcc dot gnu.org Target Milestone: --- The tree-nrv pass may introduce incorrect CLOBBER(eol) of the form =3D{v} {CLOBBER(eol)}; return ; One example of this can be seen by compiling gcc.c-torture/execute/921204-1= .c for x86 using the flags "-O -m32", where it changes the IR union bu o; ... o =3D i; MEM[(union *)&o].b18 =3D _11; MEM[(union *)&o].b20 =3D _11; =3D o; o =3D{v} {CLOBBER(eol)}; return ; to just use instead of o union bu o [value-expr: ]; ... =3D i; MEM[(union *)&].b18 =3D _11; MEM[(union *)&].b20 =3D _11; =3D{v} {CLOBBER(eol)}; return ; so the CLOBBER(eol) now refers to .=