]> 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>
Tue, 19 Nov 2024 06:40:54 +0000 (06:40 +0000)
commit74401db8de037bd109f06ddd93155c0d081f092e
tree15fbd0130c972c8be90010a30455a9820dcb097a
parent3a88870559ff297dd3d11abacbfc2b5a1bda5f3e
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.

(cherry picked from commit eeff15bc88b89abed1cdb4d3b1b2cc7b4cec6fe7)
binutils/prdbg.c