]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
binutils: fix -std=gnu23 compatibility wrt _Bool
authorSam James <sam@gentoo.org>
Sat, 16 Nov 2024 05:12:51 +0000 (05:12 +0000)
committerSam James <sam@gentoo.org>
Mon, 18 Nov 2024 03:09:15 +0000 (03:09 +0000)
commiteeff15bc88b89abed1cdb4d3b1b2cc7b4cec6fe7
tree150f4487db1d39e9978de16e6a4f052b27d90b48
parent8ebe62f3f0d27806b1bf69f301f5e188b4acd2b4
binutils: fix -std=gnu23 compatibility wrt _Bool

GCC trunk now defaults to -std=gnu23. We return false in a few places
which can't work when true/false are a proper type (_Bool). Return NULL
where appropriate instead of false. All callers handle this appropriately.

ChangeLog:
PR ld/32372

* prdbg.c (visibility_name): Return NULL.
binutils/prdbg.c