diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2026-05-01 17:59:14 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2026-05-01 18:39:56 -0700 |
| commit | 0179e3e062b9287bc5b9812e4be0cbe7eac49ac0 (patch) | |
| tree | 7f635c737ac19dc9a119697e27429c1700fb61b9 /configure.ac | |
| parent | 92788f3be43b43f82876b9d0e263d5e55d00ec0e (diff) | |
Work around GCC bug 125116
* configure.ac: When configured with --enable-gcc-warnings,
use the -Wno-analyzer-allocation-size option if available.
This works around a false positive bug in
GCC 16.0.1 20260321 (Red Hat 16.0.1-0) x86-64; see
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125116>.
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a3ba5e69a2f..eeaaaa53a3d 100644 --- a/configure.ac +++ b/configure.ac @@ -1790,7 +1790,9 @@ AS_IF([test $gl_gcc_warnings = no], ;; esac AS_IF([test $gl_gcc_warnings = yes], - [WERROR_CFLAGS=-Werror], + [WERROR_CFLAGS=-Werror + # Work around GCC bug 125116. + gl_WARN_ADD([-Wno-analyzer-allocation-size])], [# Use -fanalyzer and related options only if --enable-gcc-warnings, # as they slow GCC considerably. nw="$nw -fanalyzer -Wno-analyzer-double-free -Wno-analyzer-malloc-leak" |
