]> Git Repo - binutils.git/blob - gnulib/patches/0002-no-solaris-_gl_attribute_dealloc
Automatic date update in version.in
[binutils.git] / gnulib / patches / 0002-no-solaris-_gl_attribute_dealloc
1 diff --git a/gnulib/import/m4/gnulib-common.m4 b/gnulib/import/m4/gnulib-common.m4
2 --- a/gnulib/import/m4/gnulib-common.m4
3 +++ b/gnulib/import/m4/gnulib-common.m4
4 @@ -182,7 +182,8 @@ AC_DEFUN([gl_COMMON_BODY], [
5     _GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that
6     can be freed via 'free'; it can be used only after declaring 'free'.  */
7  /* Applies to: functions.  Cannot be used on inline functions.  */
8 -#if _GL_GNUC_PREREQ (11, 0)
9 +/* Disable on Solaris to avoid GDB PR build/29791.  */
10 +#if _GL_GNUC_PREREQ (11, 0) && !(defined(__sun__) && defined(__svr4__))
11  # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i)))
12  #else
13  # define _GL_ATTRIBUTE_DEALLOC(f, i)
This page took 0.026178 seconds and 4 git commands to generate.