diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-01-27 22:02:31 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-01-27 22:02:31 +0100 |
commit | f5ea0499a411309014475dc7f7983e827f431af2 (patch) | |
tree | 32b9344266e568e8c416d0f344cc732c392b7ac5 | |
parent | 04b2d773548c57b6eadd1808a8d15cce47af9630 (diff) | |
download | guile-f5ea0499a411309014475dc7f7983e827f431af2.tar.gz |
Build with `-fno-strict-aliasing' when available.
* configure.ac (POTENTIAL_GCC_CFLAGS): Add `-fno-strict-aliasing'.
Suggested by Mark H. Weaver.
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 04553755b..ccc5fa572 100644 --- a/configure.ac +++ b/configure.ac @@ -1527,9 +1527,14 @@ case "$GCC" in ## and it became equally exasperating (gcc 2.95 and/or glibc 2.1.2). ## -Wundef was removed because Gnulib prevented it (see ## <http://thread.gmane.org/gmane.lisp.guile.bugs/5329>.) + + ## Build with `-fno-strict-aliasing' to prevent miscompilation on + ## some platforms. See + ## <http://lists.gnu.org/archive/html/guile-devel/2012-01/msg00487.html>. + POTENTIAL_GCC_CFLAGS="-Wall -Wmissing-prototypes \ -Wdeclaration-after-statement \ - -Wswitch-enum" + -Wswitch-enum -fno-strict-aliasing" # Do this here so we don't screw up any of the tests above that might # not be "warning free" if test "${GUILE_ERROR_ON_WARNING}" = yes |