]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix more c23 bool fallout
authorJeff Law <jlaw@ventanamicro.com>
Mon, 18 Nov 2024 17:11:01 +0000 (10:11 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 18 Nov 2024 17:11:01 +0000 (10:11 -0700)
While these haven't shown up in my tester (not configs I test) and I think
we're likely going to be deprecating the nds32 target. we might as well go
ahead and fix them.

I'm going to include this under the pr117628 umbrella.

PR target/117628

libgcc/
* config/arm/freebsd-atomic.c (bool): Remove unnecessary typedef.
* config/arm/linux-atomic-64bit.c: Likewise.
* config/arm/linux-atomic.c: Likewise.
* config/nds32/linux-atomic.c: Likewise.
* config/nios2/linux-atomic.c: Likewise.

libgcc/config/arm/freebsd-atomic.c
libgcc/config/arm/linux-atomic-64bit.c
libgcc/config/arm/linux-atomic.c
libgcc/config/nds32/linux-atomic.c
libgcc/config/nios2/linux-atomic.c

index 7cf00b1e75d4759b983401797f0224764a2ce82d..b39706daa25959a20ac66eb4e8cafb54f63f833d 100644 (file)
@@ -127,8 +127,6 @@ __sync_val_compare_and_swap_##N (TYPE *mem, TYPE expected,          \
         return (old);                                                  \
 }
 
-typedef unsigned char bool;
-
 #define SYNC_BOOL_CAS_N(N, TYPE)                                        \
 bool HIDDEN                                                            \
 __sync_bool_compare_and_swap_##N (TYPE *ptr, TYPE oldval,              \
index b35dcec0fb7b82a53715ddd99e264f3c5ef7068f..45286a50cfb53042829ee14304d1e1564d03545a 100644 (file)
@@ -141,8 +141,6 @@ __sync_val_compare_and_swap_8 (long long *ptr, long long oldval,
     }
 }
 
-typedef unsigned char bool;
-
 bool HIDDEN
 __sync_bool_compare_and_swap_8 (long long *ptr, long long oldval,
                                 long long newval)
index 2ad68ead502d1f3177716bcb57a8fe2a61ec2291..e1f6d27519fa7ff55472f824fa56ac1ac4e24d87 100644 (file)
@@ -249,8 +249,6 @@ __sync_val_compare_and_swap_4 (int *ptr, int oldval, int newval)
 SUBWORD_VAL_CAS (short,       2)
 SUBWORD_VAL_CAS (signed char, 1)
 
-typedef unsigned char bool;
-
 bool HIDDEN
 __sync_bool_compare_and_swap_4 (int *ptr, int oldval, int newval)
 {
index ef869e05f03be8ff67b75559e80fa1d88ccca8ee..5a5e7c0184aadcd2d4cdf284143fc59e230762b8 100644 (file)
@@ -208,8 +208,6 @@ __sync_val_compare_and_swap_4 (int *ptr, int oldval, int newval)
 SUBWORD_VAL_CAS (unsigned short, 2)
 SUBWORD_VAL_CAS (unsigned char,  1)
 
-typedef unsigned char bool;
-
 bool HIDDEN
 __sync_bool_compare_and_swap_4 (int *ptr, int oldval, int newval)
 {
index 9bb25575fbc6ae63ee19a68897c7cb506c7b7c02..1cad60b8e4fadef169b39f77c54c346b2c01487b 100644 (file)
@@ -207,8 +207,6 @@ __sync_val_compare_and_swap_4 (int *ptr, int oldval, int newval)
 SUBWORD_VAL_CAS (unsigned short, 2)
 SUBWORD_VAL_CAS (unsigned char,  1)
 
-typedef unsigned char bool;
-
 bool HIDDEN
 __sync_bool_compare_and_swap_4 (int *ptr, int oldval, int newval)
 {