]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add -Wno-psabi to CFLAGS for x86 (32-bit) builds
authorAram Sargsyan <aram@isc.org>
Thu, 15 Aug 2024 10:28:40 +0000 (10:28 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Thu, 15 Aug 2024 12:50:41 +0000 (12:50 +0000)
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

index 738443a42fee083f9b20bd4cb082494fc054a17c..c3e189d4b43a5413c3fda8c501109bb603a61ddc 100644 (file)
@@ -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