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-19 06:40:54 +0000
commit74401db8de037bd109f06ddd93155c0d081f092e (patch)
tree15fbd0130c972c8be90010a30455a9820dcb097a
parent3a88870559ff297dd3d11abacbfc2b5a1bda5f3e (diff)
downloadgdb-74401db8de037bd109f06ddd93155c0d081f092e.zip
gdb-74401db8de037bd109f06ddd93155c0d081f092e.tar.gz
gdb-74401db8de037bd109f06ddd93155c0d081f092e.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. (cherry picked from commit eeff15bc88b89abed1cdb4d3b1b2cc7b4cec6fe7)
-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;
}