public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/google/grte/v5-2.27/master] Work around clang assembler error with bnd by itself on a line
@ 2021-08-28  0:38 Fangrui Song
  0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-28  0:38 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=edeaa900586bf18ca0a049188db9294a4a2e22c4

commit edeaa900586bf18ca0a049188db9294a4a2e22c4
Author: Stan Shebs <stanshebs@google.com>
Date:   Wed Feb 7 12:55:59 2018 -0800

    Work around clang assembler error with bnd by itself on a line

Diff:
---
 sysdeps/x86_64/dl-trampoline.S | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sysdeps/x86_64/dl-trampoline.S b/sysdeps/x86_64/dl-trampoline.S
index ef1425cbb9..a32916211b 100644
--- a/sysdeps/x86_64/dl-trampoline.S
+++ b/sysdeps/x86_64/dl-trampoline.S
@@ -45,7 +45,8 @@
 #ifdef __ILP32__
 # define PRESERVE_BND_REGS_PREFIX
 #else
-# ifdef HAVE_MPX_SUPPORT
+/* clang integrated assembler does not like "bnd" by itself on a line. */
+# if defined(HAVE_MPX_SUPPORT) && !defined(__clang__)
 #  define PRESERVE_BND_REGS_PREFIX bnd
 # else
 #  define PRESERVE_BND_REGS_PREFIX .byte 0xf2


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-28  0:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28  0:38 [glibc/google/grte/v5-2.27/master] Work around clang assembler error with bnd by itself on a line Fangrui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).