diff mbox series

[committed] hppa: Remove typedef for bool type

Message ID ZzpJwRSzJHErt1_K@mx3210.local
State New
Headers show
Series [committed] hppa: Remove typedef for bool type | expand

Commit Message

John David Anglin Nov. 17, 2024, 7:53 p.m. UTC
Tested on hppa-unknown-linux-gnu.  Committed to trunk.

Dave
---

hppa: Remove typedef for bool type

In C23, bool is now a keyword.  So, doing a typedef for it is invalid.

2024-11-17  John David Anglin  <danglin@gcc.gnu.org>

libgcc/ChangeLog:

	PR target/117627
	* config/pa/linux-atomic.c: Remove typedef for bool type.
diff mbox series

Patch

diff --git a/libgcc/config/pa/linux-atomic.c b/libgcc/config/pa/linux-atomic.c
index 03ebccfc070..6191f83ed1c 100644
--- a/libgcc/config/pa/linux-atomic.c
+++ b/libgcc/config/pa/linux-atomic.c
@@ -264,8 +264,6 @@  OP_AND_FETCH_WORD (and,   , &)
 OP_AND_FETCH_WORD (xor,   , ^)
 OP_AND_FETCH_WORD (nand, ~, &)
 
-typedef unsigned char bool;
-
 #define COMPARE_AND_SWAP_2(TYPE, WIDTH, INDEX)				\
   TYPE HIDDEN								\
   __sync_val_compare_and_swap_##WIDTH (volatile void *ptr, TYPE oldval,	\