]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ld: fix -std=gnu23 compatibility wrt _Bool
authorSam James <sam@gentoo.org>
Sat, 16 Nov 2024 07:07:02 +0000 (07:07 +0000)
committerSam James <sam@gentoo.org>
Mon, 18 Nov 2024 03:09:16 +0000 (03:09 +0000)
commitbf447eec6d7b69cba652127e2f38f102de38de39
treecd1e9335334d646a20c324a6ef3af0eca1caf440
parenteeff15bc88b89abed1cdb4d3b1b2cc7b4cec6fe7
ld: 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

* pdb.c (add_stream): Return NULL.
ld/pdb.c