diff options
author | Sam James <sam@gentoo.org> | 2024-11-16 07:07:02 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-11-18 03:09:16 +0000 |
commit | bf447eec6d7b69cba652127e2f38f102de38de39 (patch) | |
tree | cd1e9335334d646a20c324a6ef3af0eca1caf440 | |
parent | eeff15bc88b89abed1cdb4d3b1b2cc7b4cec6fe7 (diff) | |
download | binutils-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |