Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH 4/7] [gnulib, stable-202607] Update 0002-no-solaris-_gl_attribute_dealloc
Date: Tue, 17 Nov 2026 18:25:49 +0100	[thread overview]
Message-ID: <20261117172552.3083331-5-tdevries@suse.de> (raw)
In-Reply-To: <20261117172552.3083331-1-tdevries@suse.de>

Update gnulib/patches/0002-no-solaris-_gl_attribute_dealloc to apply to
stable-202607.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=35004
---
 .../patches/0002-no-solaris-_gl_attribute_dealloc  | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/gnulib/patches/0002-no-solaris-_gl_attribute_dealloc b/gnulib/patches/0002-no-solaris-_gl_attribute_dealloc
index 85dbc4b79b7..2b1c5dcf1cb 100644
--- a/gnulib/patches/0002-no-solaris-_gl_attribute_dealloc
+++ b/gnulib/patches/0002-no-solaris-_gl_attribute_dealloc
@@ -1,13 +1,15 @@
 diff --git a/gnulib/import/m4/gnulib-common.m4 b/gnulib/import/m4/gnulib-common.m4
+index 12b0836e2a0..85410c345cb 100644
 --- a/gnulib/import/m4/gnulib-common.m4
 +++ b/gnulib/import/m4/gnulib-common.m4
-@@ -182,7 +182,8 @@ AC_DEFUN([gl_COMMON_BODY], [
+@@ -459,8 +459,9 @@ AC_DEFUN([gl_COMMON_BODY], [
     _GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that
     can be freed via 'free'; it can be used only after declaring 'free'.  */
  /* Applies to: functions.  Cannot be used on inline functions.  */
--#if _GL_GNUC_PREREQ (11, 0)
 +/* Disable on Solaris to avoid GDB PR build/29791.  */
-+#if _GL_GNUC_PREREQ (11, 0) && !(defined(__sun__) && defined(__svr4__))
- # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i)))
- #else
- # define _GL_ATTRIBUTE_DEALLOC(f, i)
+ #ifndef _GL_ATTRIBUTE_DEALLOC
+-# if _GL_GNUC_PREREQ (11, 0)
++# if _GL_GNUC_PREREQ (11, 0) && !(defined(__sun__) && defined(__svr4__))
+ #  define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i)))
+ # else
+ #  define _GL_ATTRIBUTE_DEALLOC(f, i)
-- 
2.51.0


  parent reply	other threads:[~2026-11-17 17:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17 17:25 [PATCH 0/7] [gnulib, stable-202607] Update to latest stable branch Tom de Vries
2026-11-17 17:25 ` [PATCH 1/7] [gdb] Handle overloaded strncasecmp in find_label_symbols_in_block Tom de Vries
2026-11-17 17:25 ` [PATCH 2/7] [sim] Include defs.h via command line Tom de Vries
2026-11-17 17:25 ` [PATCH 3/7] [gnulib, stable-202607] Update GNULIB_COMMIT_SHA1 Tom de Vries
2026-11-17 17:25 ` Tom de Vries [this message]
2026-11-17 17:25 ` [PATCH 5/7] [gnulib, stable-202607] Add streq to IMPORTED_GNULIB_MODULES Tom de Vries
2026-11-17 17:25 ` [PATCH 6/7] [gnulib, stable-202607] Call gnulib-tool with --avoid=pthread-once Tom de Vries
2026-11-17 17:25 ` [PATCH 7/7] [gnulib, stable-202607] Run update-gnulib.sh Tom de Vries

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261117172552.3083331-5-tdevries@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox