diff options
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r-- | sysdeps/powerpc/nofpu/Dist | 2 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc32/atomicity.h | 16 | ||||
-rw-r--r-- | sysdeps/powerpc/soft-fp/Dist | 2 |
3 files changed, 7 insertions, 13 deletions
diff --git a/sysdeps/powerpc/nofpu/Dist b/sysdeps/powerpc/nofpu/Dist new file mode 100644 index 0000000000..cd155fdf5a --- /dev/null +++ b/sysdeps/powerpc/nofpu/Dist @@ -0,0 +1,2 @@ +sim-full.c +fenv_const.c diff --git a/sysdeps/powerpc/powerpc32/atomicity.h b/sysdeps/powerpc/powerpc32/atomicity.h index a3f672e5ec..253bd32673 100644 --- a/sysdeps/powerpc/powerpc32/atomicity.h +++ b/sysdeps/powerpc/powerpc32/atomicity.h @@ -22,13 +22,7 @@ #include <inttypes.h> -#if BROKEN_PPC_ASM_CR0 -# define __ATOMICITY_INLINE /* nothing */ -#else -# define __ATOMICITY_INLINE inline -#endif - -static __ATOMICITY_INLINE int +static inline int __attribute__ ((unused)) exchange_and_add (volatile uint32_t *mem, int val) { @@ -42,7 +36,7 @@ exchange_and_add (volatile uint32_t *mem, int val) return result; } -static __ATOMICITY_INLINE void +static inline void __attribute__ ((unused)) atomic_add (volatile uint32_t *mem, int val) { @@ -55,7 +49,7 @@ atomic_add (volatile uint32_t *mem, int val) " : "=&b"(tmp) : "r" (mem), "Ir"(val) : "cr0", "memory"); } -static __ATOMICITY_INLINE int +static inline int __attribute__ ((unused)) compare_and_swap (volatile long int *p, long int oldval, long int newval) { @@ -72,7 +66,7 @@ compare_and_swap (volatile long int *p, long int oldval, long int newval) return result >> 5; } -static __ATOMICITY_INLINE long int +static inline long int __attribute__ ((unused)) always_swap (volatile long int *p, long int newval) { @@ -85,7 +79,7 @@ always_swap (volatile long int *p, long int newval) return result; } -static __ATOMICITY_INLINE int +static inline int __attribute__ ((unused)) test_and_set (volatile long int *p, long int newval) { diff --git a/sysdeps/powerpc/soft-fp/Dist b/sysdeps/powerpc/soft-fp/Dist index 9e4152a77f..a917524129 100644 --- a/sysdeps/powerpc/soft-fp/Dist +++ b/sysdeps/powerpc/soft-fp/Dist @@ -25,6 +25,4 @@ q_sub.c q_ulltoq.c q_util.c q_utoq.c -sim-full.c -fenv_const.c sfp-machine.h |