diff options
author | Sam James <sam@gentoo.org> | 2024-11-16 07:07:02 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-11-19 06:41:06 +0000 |
commit | 059f36543368d24075018354eb8454a952aff96b (patch) | |
tree | 4f436b3924f7f0cb3e92c2c008024e07d65e3b5e | |
parent | 74401db8de037bd109f06ddd93155c0d081f092e (diff) | |
download | gdb-059f36543368d24075018354eb8454a952aff96b.zip gdb-059f36543368d24075018354eb8454a952aff96b.tar.gz gdb-059f36543368d24075018354eb8454a952aff96b.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.
(cherry picked from commit bf447eec6d7b69cba652127e2f38f102de38de39)
-rw-r--r-- | ld/pdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -175,7 +175,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) |