summaryrefslogtreecommitdiff
path: root/gnulib/update-gnulib.sh
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2022-11-20 14:55:52 +0100
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2022-11-20 14:55:52 +0100
commit10a63f80ae9a440fe38271be91193b0192215fb6 (patch)
tree6c10d7383ad9d05b688ec7dcf0df16bbfefc9107 /gnulib/update-gnulib.sh
parentf1a8d786c37bbe40d0bc2fec618d0e875d043811 (diff)
downloadbinutils-gdb-10a63f80ae9a440fe38271be91193b0192215fb6.tar.gz
[PR build/29791] gnulib: Disable _GL_ATTRIBUTE_DEALLOC on Solaris
gdbsupport compilation badly fails with GCC 12 on Solaris, with errors like ../gnulib/config.h:1693:72: error: ‘malloc’ attribute argument 1 is ambiguous 1693 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) | ^ ../gnulib/config.h:1693:72: note: use a cast to the expected type to disambiguate We've not yet been able to determine where the ambiguity actually lies, so this patch works around the issue by disabling _GL_ATTRIBUTE_DEALLOC on Solaris, at least as a workaround for GDB 13. As Tom suggested in the PR, this is done using our infrastructure for local gnulib patches. Tested on sparcv9-sun-solaris2.11, amd64-pc-solaris2.11, and x86_64-pc-linux-gnu. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gnulib/update-gnulib.sh')
-rwxr-xr-xgnulib/update-gnulib.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnulib/update-gnulib.sh b/gnulib/update-gnulib.sh
index 80aa3fafbf8..f82b08b5ebc 100755
--- a/gnulib/update-gnulib.sh
+++ b/gnulib/update-gnulib.sh
@@ -188,6 +188,7 @@ apply_patches ()
}
apply_patches "patches/0001-use-windows-stat"
+apply_patches "patches/0002-no-solaris-_gl_attribute_dealloc"
# Regenerate all necessary files...
aclocal &&