From 867066aa537d7b5e9a242e6ab9e5caf7f06758c8 Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Thu, 15 Aug 2024 10:28:40 +0000 Subject: [PATCH] Add -Wno-psabi to CFLAGS for x86 (32-bit) builds GCC 11.1+ emits a note during compilation when there are 64-bit atomic fields in a structure, because it fixed a compiler bug by changing the alignment of such fields, which caused ABI change. Add -Wno-psabi to CFLAGS for such builds in order to silence the warning. That shouldn't be a problem since we don't expose our structures to the outside. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 738443a42f..c3e189d4b4 100644 --- a/configure.ac +++ b/configure.ac @@ -133,6 +133,9 @@ AC_COMPILE_IFELSE( [], [STD_CFLAGS="$STD_CFLAGS -Wno-stringop-overread"]) +# Silence GCC 11.1+ note about the changed alignment, see GL #4841 +AS_CASE([$target_cpu],[i?86],[STD_CFLAGS="$STD_CFLAGS -Wno-psabi"]) + STD_LDFLAGS="" # ... except in test code