From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D2BFF3858402; Sun, 19 Nov 2023 21:16:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2BFF3858402 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700428577; bh=HZ1r0r7fcN6k/LWXZaegV1M9k+4kXa7s8T/J7+PYzsQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ya2gmU18/K2s9XNfShiByQo0Ko9G9Au7A2HKj2X9K+2L41dEnaP6R4V3sWIEM9sfF 8nalDRqkqFp/7tMjF9RC5VpAkuiRvJNA/eSxPzrZSyJTcT6dyHUgKA3X0LXBXS3Liw hVZVow+xoe70+23xfWWiw9SAWXnHYMTgqdSvhczo= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/112563] [14 regression] libsanitizer doesn't assemble with Solaris/sparc as Date: Sun, 19 Nov 2023 21:16:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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=3D112563 --- Comment #1 from Jakub Jelinek --- So, what is the Solaris/sparc native as syntax for something similar? Strangely, non-weak aliases in config/sparc/sysv4.h use the x =3D y syntax rather than .set x, y that is used on most targets. Would using extern "C" void *memcpy (void *, const void *, decltype (sizeof 0)) __asm ("__sanitizer_internal_memcpy"); extern "C" void *memmove (void *, const void *, decltype (sizeof 0)) __asm ("__sanitizer_internal_memmove"); extern "C" void *memset (void *, int, decltype (sizeof 0)) __asm ("__sanitizer_internal_memset"); extern "C" void *__builtin_memcpy (void *, const void *, decltype (sizeof 0= )) __asm ("__sanitizer_internal_memcpy"); extern "C" void *__builtin_memmove (void *, const void *, decltype (sizeof = 0)) __asm ("__sanitizer_internal_memmove"); extern "C" void *__builtin_memset (void *, int, decltype (sizeof 0)) __asm ("__sanitizer_internal_memset"); instead work there? At least on x86_64-linux, I get the same effects when using e.g. void foo (void *r, void *s, void *t, void *u) { memcpy (r, s, 512); __builtin_memcpy (t, u, 512); } with -O2 -mstringop-strategy=3Dlibcall=