From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7814) id DC54F385843B; Sat, 28 Aug 2021 00:40:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC54F385843B Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Fangrui Song To: glibc-cvs@sourceware.org Subject: [glibc/google/grte/v5-2.27/master] Make asm-based constraints be gcc-only X-Act-Checkin: glibc X-Git-Author: Stan Shebs X-Git-Refname: refs/heads/google/grte/v5-2.27/master X-Git-Oldrev: 4b86f820b82dc9e55c689c4374d7f5a73cd5305c X-Git-Newrev: 452fe68a53daf8e3dadf13d64bd262ff8e2a397e Message-Id: <20210828004049.DC54F385843B@sourceware.org> Date: Sat, 28 Aug 2021 00:40:49 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2021 00:40:50 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=452fe68a53daf8e3dadf13d64bd262ff8e2a397e commit 452fe68a53daf8e3dadf13d64bd262ff8e2a397e Author: Stan Shebs 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 #include +#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