On Tue, 6 May 2025, SAKSHAM JOSHI wrote: > I am submitting a patch for the GCC compiler's "stdbool.h" to optimize the > size of the true and false macros in the C programming language. Currently, > the size of the true and false macros is 4 bytes, whereas the _Bool > datatype is 1 byte in size. This patch proposes a change that will set the > size of the true and false macros to 1 byte, aligning them more closely > with the _Bool datatype.
If you want the macros to have type bool, use C23 mode, which is the default. Older standards require the macros to expand exactly to particular integer constants. -- Joseph S. Myers josmy...@redhat.com