aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-11-16 07:07:02 +0000
committerSam James <sam@gentoo.org>2024-11-18 03:09:16 +0000
commitbf447eec6d7b69cba652127e2f38f102de38de39 (patch)
treecd1e9335334d646a20c324a6ef3af0eca1caf440
parenteeff15bc88b89abed1cdb4d3b1b2cc7b4cec6fe7 (diff)
downloadbinutils-bf447eec6d7b69cba652127e2f38f102de38de39.zip
binutils-bf447eec6d7b69cba652127e2f38f102de38de39.tar.gz
binutils-bf447eec6d7b69cba652127e2f38f102de38de39.tar.bz2
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.
-rw-r--r--ld/pdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/pdb.c b/ld/pdb.c
index 5fd55fb..82c57f9 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)