From 74490844ce4e049639521fa28823bfa07d6c3e58 Mon Sep 17 00:00:00 2001 From: Michael Ferguson Date: Wed, 4 Dec 2024 11:51:20 -0500 Subject: [PATCH] Avoid a warning for GCC on i386 --- Signed-off-by: Michael Ferguson --- make/compiler/Makefile.gnu | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/make/compiler/Makefile.gnu b/make/compiler/Makefile.gnu index 5ca6b9cb17a6..5982e1d72e94 100644 --- a/make/compiler/Makefile.gnu +++ b/make/compiler/Makefile.gnu @@ -346,6 +346,16 @@ ifeq ($(shell test $(GNU_GPP_MAJOR_VERSION) -ge 13; echo "$$?"),0) WARN_CXXFLAGS += -Wno-dangling-reference endif +# Avoid warning about atomic alignment e.g. +# the alignment of ‘_Atomic long long unsigned int’ fields changed in GCC 11.1 +ifeq ($(CHPL_MAKE_TARGET_PLATFORM), linux32) +ifeq ($(shell test $(GNU_GPP_MAJOR_VERSION) -ge 11; echo "$$?"),0) +RUNTIME_CFLAGS += -Wno-psabi +WARN_CXXFLAGS += -Wno-psabi +SQUASH_WARN_GEN_CFLAGS += -Wno-psabi +endif +endif + # # Don't warn for deprecated declarations with llvm 11 and 12, its a very noisy warning #