[binutils-gdb] ld: fix -std=gnu23 compatibility wrt _Bool
Sam James
sjames@sourceware.org
Mon Nov 18 03:09:50 GMT 2024
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bf447eec6d7b69cba652127e2f38f102de38de39
commit bf447eec6d7b69cba652127e2f38f102de38de39
Author: Sam James <sam@gentoo.org>
Date: Sat Nov 16 07:07:02 2024 +0000
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.
Diff:
---
ld/pdb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ld/pdb.c b/ld/pdb.c
index 5fd55fbb063..82c57f9362e 100644
--- a/ld/pdb.c
+++ b/ld/pdb.c
@@ -178,7 +178,7 @@ add_stream (bfd *pdb, const char *name, uint16_t *stream_num)
if (!bfd_make_writable (stream))
{
bfd_close (stream);
- return false;
+ return NULL;
}
if (!pdb->archive_head)
More information about the Binutils-cvs
mailing list