Fix more c23 bool fallout
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.
This commit is contained in:
parent
39a39d1f38
commit
1100c0576b
5 changed files with 0 additions and 10 deletions
|
@ -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, \
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue