From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 81C8B3857707; Thu, 7 Mar 2024 14:20:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 81C8B3857707 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709821247; bh=VwUYWcU6txML0J5LE3GHLsSqMt691d64ji2Ny5WqiGw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aOEeYohbtG2WczmcJ1RBF0UnWRgi4Cb/6yBjgclEkY2H5Q4+GcEVh86N47/9mqtsL xmlkRC9D2DhGcHrdJh60QkuWw3Pm9WDI/kH3rOWExiYq9theYMoyJT45x0Tevty5Wd UKLB6GaycBjkVhaQp0f9+sfWuGuktPuLFSTdYSRg= From: "fxcoudert at gcc dot gnu.org" 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: Thu, 07 Mar 2024 14:20:46 +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: link-failure, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: fxcoudert at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED 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 #25 from Francois-Xavier Coudert = --- Yes, that test in check_effective_target_shared actually works with C, but = not with C++, because: Undefined symbols for architecture arm64: "__Z3foov", referenced from: __Z3bazv in ccCj5plO.o Why have we not seen it before? Because most of the use of that check is in= { dg-require-effective-target shared } so we're effectively skipping tests, a= nd that is silent. As far as I can tell, your addition is the first time { target shared } is = used as a conditional in something like { dg-additional-options } in the C++ testsuite. Thanks for helping me figuring it out, that's definitely at least a darwin issue, which I'll take care of.=