public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Fix a proble building the libiberty library with gcc-12.
@ 2022-01-24 17:57 Nick Clifton
0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2022-01-24 17:57 UTC (permalink / raw)
To: bfd-cvs, gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2f279a64a27bca5be4393e84cbb579e18ef4a4ad
commit 2f279a64a27bca5be4393e84cbb579e18ef4a4ad
Author: Martin Sebor <msebor@redhat.com>
Date: Mon Jan 24 17:56:23 2022 +0000
Fix a proble building the libiberty library with gcc-12.
PR 28779
* regex.c: Suppress -Wuse-after-free.
Diff:
---
libiberty/ChangeLog | 4 ++++
libiberty/regex.c | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 04c9e90a45b..40611e56ff4 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,7 @@
+2022-01-15 Martin Sebor <msebor@redhat.com>
+
+ * regex.c: Suppress -Wuse-after-free.
+
2022-01-22 Nick Clifton <nickc@redhat.com>
* 2.38 release branch created.
diff --git a/libiberty/regex.c b/libiberty/regex.c
index cc5a4605ced..84af5276ae8 100644
--- a/libiberty/regex.c
+++ b/libiberty/regex.c
@@ -30,6 +30,10 @@
#pragma alloca
#endif
+#if __GNUC__ >= 12
+# pragma GCC diagnostic ignored "-Wuse-after-free"
+#endif
+
#undef _GNU_SOURCE
#define _GNU_SOURCE
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-24 17:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-24 17:57 [binutils-gdb] Fix a proble building the libiberty library with gcc-12 Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).