public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Fangrui Song <maskray@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/google/grte/v5-2.27/master] Make asm-based constraints be gcc-only
Date: Sat, 28 Aug 2021 00:40:49 +0000 (GMT)	[thread overview]
Message-ID: <20210828004049.DC54F385843B@sourceware.org> (raw)

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>


                 reply	other threads:[~2021-08-28  0:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210828004049.DC54F385843B@sourceware.org \
    --to=maskray@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).