From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DE24A3858C52; Thu, 2 Feb 2023 17:09:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE24A3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675357742; bh=go7S9IvJqgoOKkdw2K7FeQ+WxcIQIrfaA2GzyjDW40c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=g8qHaQADxiJs4oUO5J89u8ZWgqQylN6TtdXohE/q2sNNwtHwA+LIPzha6Cvgk870/ g0CxVrHNROhsLDD8dF2TsvM4QnNEd7J0tnckYTjw8HyqlH2V7KImuQ6t3uHWwtY1xk o4+FIm/UQguMPm6cQ/l1goLh2pMjWwQlJcYA2UuQ= From: "david.spickett at linaro dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108642] ACLE function __arm_wsr missing for AArch64 Date: Thu, 02 Feb 2023 17:09:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: david.spickett at linaro dot 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: 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=3D108642 --- Comment #4 from David Spickett --- Of course, I was just looking at at assembly output in compiler explorer and then locally I didn't link the object. That's why it seemed to work. Compiling and linking I get: $ ./bin/aarch64-none-linux-gnu-gcc /tmp/test.c -o /tmp/test.o /tmp/test.c: In function =E2=80=98writeStatusWord=E2=80=99: /tmp/test.c:4:39: warning: implicit declaration of function =E2=80=98__arm_= wsr=E2=80=99 [-Wimplicit-function-declaration] 4 | void writeStatusWord(uint32_t fpsr) { __arm_wsr("fpsr", fpsr); } | ^~~~~~~~~ <...>aarch64-none-linux-gnu/bin/ld: /tmp/ccLie8Sh.o: in function `writeStatusWord': test.c:(.text+0x18): undefined reference to `__arm_wsr' collect2: error: ld returned 1 exit status Which makes more sense.=