Skip to content

Commit

Permalink
Avoid a warning for GCC on i386 (chapel-lang#26355)
Browse files Browse the repository at this point in the history
This PR adds `-Wno-psabi` to avoid a GCC warning on i386 along the lines
of

```
the alignment of ‘_Atomic long long unsigned int’ fields changed in GCC 11.1
```

Reviewed by @arezaii - thanks!

- [x] full comm=none testing
  • Loading branch information
mppf authored Dec 4, 2024
2 parents 4c1ffc0 + 7449084 commit 67d8b7b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions make/compiler/Makefile.gnu
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit 67d8b7b

Please sign in to comment.