emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 7166737b5c9 06/16: Work around GCC bug 109577


From: Paul Eggert
Subject: master 7166737b5c9 06/16: Work around GCC bug 109577
Date: Sun, 14 May 2023 22:28:24 -0400 (EDT)

branch: master
commit 7166737b5c928c82aedaa4946d6fb9cc50fae336
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>

    Work around GCC bug 109577
    
    * src/lisp.h (SAFE_ALLOCA_LISP_EXTRA):
    Ignore -Wanalyzer-allocation-size, as it generates many
    false alarms in GCC 13.
---
 src/lisp.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/lisp.h b/src/lisp.h
index 72d2c1a8f91..8f7d44bfb0d 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -5399,6 +5399,14 @@ safe_free_unbind_to (specpdl_ref count, specpdl_ref 
sa_count, Lisp_Object val)
   return unbind_to (count, val);
 }
 
+/* Work around GCC bug 109577
+   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109577
+   which causes GCC to mistakenly complain about the
+   memory allocation in SAFE_ALLOCA_LISP_EXTRA.  */
+#if GNUC_PREREQ (13, 0, 0)
+# pragma GCC diagnostic ignored "-Wanalyzer-allocation-size"
+#endif
+
 /* Set BUF to point to an allocated array of NELT Lisp_Objects,
    immediately followed by EXTRA spare bytes.  */
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]