Fix assertion failure in libsanitizer when using glibc 2.31 and later. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92154 https://reviews.llvm.org/D69104 Adapted from these upstream revision: https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=277981 https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=279653 diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc index 069d8d557de..c49c28c6e07 100644 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc @@ -1130,8 +1130,9 @@ CHECK_SIZE_AND_OFFSET(ipc_perm, cgid); #ifndef __GLIBC_PREREQ #define __GLIBC_PREREQ(x, y) 0 #endif -#if !defined(__aarch64__) || !SANITIZER_LINUX || __GLIBC_PREREQ (2, 21) -/* On aarch64 glibc 2.20 and earlier provided incorrect mode field. */ +#if !SANITIZER_LINUX || __GLIBC_PREREQ (2, 31) +/* glibc 2.30 and earlier provided 16-bit mode field instead of 32-bit + on many architectures. */ CHECK_SIZE_AND_OFFSET(ipc_perm, mode); #endif diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h index 304d04e3935..6dee89c97e1 100644 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h @@ -207,20 +207,13 @@ namespace __sanitizer { unsigned long __unused1; unsigned long __unused2; #elif defined(__sparc__) -# if defined(__arch64__) unsigned mode; - unsigned short __pad1; -# else - unsigned short __pad1; - unsigned short mode; unsigned short __pad2; -# endif unsigned short __seq; unsigned long long __unused1; unsigned long long __unused2; #else - unsigned short mode; - unsigned short __pad1; + unsigned int mode; unsigned short __seq; unsigned short __pad2; #if defined(__x86_64__) && !defined(_LP64) rm>
path: root/gnu/packages/pretty-print.scm
AgeCommit message (Expand)Author
2021-01-02gnu: highlight: Update to 3.60....* gnu/packages/pretty-print.scm (highlight): Update to 3.60. Tobias Geerinckx-Rice
2020-11-15gnu: highlight: Update to 3.59....* gnu/packages/pretty-print.scm (highlight): Update to 3.59. Tobias Geerinckx-Rice
2020-11-11gnu: a2ps: Remove unused input....* gnu/packages/pretty-print.scm (a2ps)[inputs]: Remove IMAGEMAGICK. Marius Bakke
2020-10-09gnu: source-highlight: Allow cross-compilation....* gnu/packages/pretty-print.scm (source-highlight)[arguments]: Add 'skip-doc-directory' when (%current-target-system) is true. Ludovic Courtès
2020-09-15gnu: waybar: Fix build....Reported by bdju. * gnu/packages/pretty-print.scm (fmt-6): New variable. * gnu/packages/wm.scm (waybar)[inputs]: Replace fmt with fmt-6. Efraim Flashner
2020-09-13gnu: fmt: Update to 7.0.3....From 820d39a55a5673fffac70c919b8cc3b28d94f6e7 Mon Sep 17 00:00:00 2001 From: Greg Hogan <code@greghogan.com> Date: Fri, 11 Sep 2020 10:53:20 +0000 Subject: [PATCH] gnu: fmt: Update to 7.0.3. * gnu/packages/pretty-print.scm (fmt): Update to 7.0.3. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Greg Hogan
2020-09-11gnu: highlight: Update to 3.58....* gnu/packages/pretty-print.scm (highlight): Update to 3.58. Tobias Geerinckx-Rice
2020-06-30gnu: Sort package modules alphabetically in (gnu packages pretty-print)....* gnu/packages/pretty-print.scm: Sort package module imports alphabetically. Efraim Flashner