aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-11-16 05:12:51 +0000
committerSam James <sam@gentoo.org>2024-11-18 03:09:15 +0000
commiteeff15bc88b89abed1cdb4d3b1b2cc7b4cec6fe7 (patch)
tree150f4487db1d39e9978de16e6a4f052b27d90b48
parent8ebe62f3f0d27806b1bf69f301f5e188b4acd2b4 (diff)
downloadbinutils-eeff15bc88b89abed1cdb4d3b1b2cc7b4cec6fe7.zip
binutils-eeff15bc88b89abed1cdb4d3b1b2cc7b4cec6fe7.tar.gz
binutils-eeff15bc88b89abed1cdb4d3b1b2cc7b4cec6fe7.tar.bz2
binutils: 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 * prdbg.c (visibility_name): Return NULL.
-rw-r--r--binutils/prdbg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/prdbg.c b/binutils/prdbg.c
index 3941d6e..d6e828e 100644
--- a/binutils/prdbg.c
+++ b/binutils/prdbg.c
@@ -2818,7 +2818,7 @@ visibility_name (enum debug_visibility visibility)
break;
default:
abort ();
- return false;
+ return NULL;
}
return s;
}