From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C5CA93858D3C; Mon, 20 Nov 2023 19:38:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C5CA93858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700509082; bh=hBDTLkIO3MDMUXkP10QnWl6bGY2XX9NfYXUJGS0Wbb4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DsM18petPS5dR1WHK43DcMOK/mUkKTPqbw2jjHdF4+JQuT1crS6NIL38Tpq/JqtQy JIZ3dzRdB/OYBXW2ARZaeypMi+0lF8aqe5RMRGXEvG9HP+80wQJEvMC1QZP4fTXvCW pT0GYrIuB0jJNb1Ytivz1YRUfTQRDOyhmT9oDWQA= 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: Mon, 20 Nov 2023 19:38:02 +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 #6 from Jakub Jelinek --- Maybe extern "C" { static void *memcpy (void *, const void *, decltype (sizeof 0)) __attribu= te__ ((weakref ("__sanitizer_internal_memcpy"))); static void *memmove (void *, const void *, decltype (sizeof 0)) __attribute__ ((weakref ("__sanitizer_internal_memmove"))); static void *memset (void *, int, decltype (sizeof 0)) __attribute__ ((weakref ("__sanitizer_internal_memset"))); } struct S { char s[512]; }; void foo (S *p, S *q) { *p =3D *q; } void bar (int, void *r, void *s) { memcpy (r, s, 512); } void baz (int, int, void *t, void *u) { __builtin_memcpy (t, u, 512); } works instead. But in any case, I'd use it only when what is in doesn't really work.=