public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/google/grte/v5-2.27/master] Make asm-based constraints be gcc-only
@ 2021-08-28  0:40 Fangrui Song
  0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-28  0:40 UTC (permalink / raw)
  To: glibc-cvs

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

commit 452fe68a53daf8e3dadf13d64bd262ff8e2a397e
Author: Stan Shebs <stanshebs@google.com>
Date:   Wed Sep 26 14:16:30 2018 -0700

    Make asm-based constraints be gcc-only

Diff:
---
 sysdeps/powerpc/fpu/math_private.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sysdeps/powerpc/fpu/math_private.h b/sysdeps/powerpc/fpu/math_private.h
index 4d1e571f84..92ed872af0 100644
--- a/sysdeps/powerpc/fpu/math_private.h
+++ b/sysdeps/powerpc/fpu/math_private.h
@@ -24,11 +24,13 @@
 #include <dl-procinfo.h>
 #include <fenv_private.h>
 
+#if !defined __clang__  /* clang being confused by these constraints */
 /* Avoid putting floating point values in memory.  */
 # define math_opt_barrier(x)					\
   ({ __typeof (x) __x = (x); __asm ("" : "+dwa" (__x)); __x; })
 # define math_force_eval(x)						\
   ({ __typeof (x) __x = (x); __asm __volatile__ ("" : : "dwa" (__x)); })
+#endif /* clang */
 
 #include_next <math_private.h>


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

only message in thread, other threads:[~2021-08-28  0:40 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:40 [glibc/google/grte/v5-2.27/master] Make asm-based constraints be gcc-only 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).