]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Make powerpc .machine directives be gcc-only
authorStan Shebs <stanshebs@google.com>
Fri, 27 Aug 2021 23:42:33 +0000 (16:42 -0700)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:23:14 +0000 (17:23 -0700)
sysdeps/powerpc/powerpc64/fpu/s_isnan.S
sysdeps/powerpc/sysdep.h
sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S

index 12d23969ee1cc6a46fec5b672e25edcbf0da942c..b7d9f0840f21419fc27dc8884282df930d196040 100644 (file)
 ENTRY_TOCLESS (__isnan, 4)
        CALL_MCOUNT 0
        mffs    fp0
+#if defined __clang__
+       mtfsb0  30 /* reset_fpscr_bit (FPSCR_VE) */
+#else
        mtfsb0  4*cr6+lt /* reset_fpscr_bit (FPSCR_VE) */
+#endif
        fcmpu   cr7,fp1,fp1
        mtfsf   255,fp0
        li      r3,0
@@ -53,4 +57,3 @@ compat_symbol (libc, __isnan, __isnanl, GLIBC_2_0);
 compat_symbol (libc, isnan, isnanl, GLIBC_2_0);
 # endif
 #endif
-
index 8a6d236caa44856824d5dcecaf1f984a45e1cbcc..40398645b1053b2ac1b9f5daaeacd25fd837468b 100644 (file)
 #define ALIGNARG(log2) log2
 #define ASM_SIZE_DIRECTIVE(name) .size name,.-name
 
+#if defined __clang__
+#define DOT_MACHINE(str)
+#else
+#define DOT_MACHINE(str) .machine str
+#endif
+
 #else
 
 /* Linux kernel powerpc documentation [1] states issuing a syscall inside a
index c95e3a14db29edc0cfa5fa5e1b81d0a046b9f933..239af286ce25734ef9ccd4dd2b5784b99893ed81 100644 (file)
@@ -503,7 +503,7 @@ L(error_exit):
      R1 pointing at the dummy frame) state.  We do have the ucontext
      address in R3, so simply copy R3 to R1 before the syscall.  */
 L(do_sigret):
-  mr   r1,r3,
+  mr   r1,r3
   li   r0,SYS_ify(rt_sigreturn)
   sc
   /* No return.  */
index 50f72330805577179c798533c8d5d8a27f1722b6..4caa76b6a3c6e5841e0d0e28cf7abe3616b32f4b 100644 (file)
@@ -787,7 +787,7 @@ L(error_exit):
      R1 pointing at the dummy frame) state.  We do have the ucontext
      address in R3, so simply copy R3 to R1 before the syscall.  */
 L(do_sigret):
-  mr   r1,r3,
+  mr   r1,r3
   li   r0,SYS_ify(rt_sigreturn)
   sc
   /* No return.  */