From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DC0A83858C20; Fri, 26 Jan 2024 14:39:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC0A83858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706279984; bh=Hw+vmz3IxpuHfhXftVCzB/pL53CRswZARCODl5ugFn4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=c74FcjIpCvAIHFftKBPEkH1AowFfjpXNYSx+XM+C8YPw9vCW/57z7DOYd9mkHJqht IkviCmZqNcJ7fNtgZwnG1ntfNgQ3IDszFSwudB8n3aHKw5KTyz2c+5SgNSIqrMqGwk qwm19JzEgD73CAJJEfJQXxanVmFqp+bWJZZWOn2g= From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/113617] [14 Regression] Symbol ... referenced in section `.data.rel.ro.local' of ...: defined in discarded section ... since r14-4944 Date: Fri, 26 Jan 2024 14:39:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D113617 --- Comment #5 from H.J. Lu --- (In reply to Jakub Jelinek from comment #4) > (In reply to H.J. Lu from comment #3) > > LEA is changed to load through an indirection. Isn't it a regression? >=20 > LEA + moving a GPR register to SSE register. > So bet it depends on how costly the moving from GPR to SSE register is (a= nd > how costly we represent it in costs). This makes senses. In any case, we shouldn't reference a symbol defined a different comdat group.=