From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 396B538DC2FC; Fri, 7 Jun 2024 06:18:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 396B538DC2FC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1717741095; bh=bO3Ir5sTryCRiu4VqVGnVMXGsdn82Nz0E3ZOo7zJZQg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=G2dxoGn8nAPYKz0ta15cOQi0OIHMQQkG5LD6i9ROe8KNxZifwNnGk0faMExl2+udY 4hMq4hXuGAD5AyCq8/SrJZFxORAUR7d9Q/skdqgrAhKf1JzMXO80zliMU9K8dqCw8J ZTAP6LRsHCZLZ/rwYLvTT2l4oA9x2QiMi3JZzUFc= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/115381] Missed deoptimization opportunity when comparing two different linker symbols Date: Fri, 07 Jun 2024 06:18:14 +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: 15.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: cf_reconfirmed_on bug_status everconfirmed 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=3D115381 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-06-07 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 CC| |hubicka at gcc dot gnu.org --- Comment #2 from Richard Biener --- Doesn't seem to help here. Related testcase: extern int x; extern int y; int z(){ return &x =3D=3D &y; } possibly -fno-semantic-interposition doesn't cover the definitions being aliases of each other. Defining TU: int x(){} int __attribute__((alias("x"))) y(); I believe this is wrong-code from clang.=