diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2015-08-03 11:48:57 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2015-08-03 11:48:57 +0000 |
commit | 4c0cca1801ea06ba839f6cb6340ad014b8620423 (patch) | |
tree | 8d1ac1de12fbb1cd572e93abe124add449ed32da /gcc/Makefile.in | |
parent | 1f71aee9c1b36a44509adc8f9134ccc17f2989a2 (diff) | |
download | gcc-4c0cca1801ea06ba839f6cb6340ad014b8620423.zip gcc-4c0cca1801ea06ba839f6cb6340ad014b8620423.tar.gz gcc-4c0cca1801ea06ba839f6cb6340ad014b8620423.tar.bz2 |
configure.ac: Set aliasing_flags to -fno-strict-aliasing if...
gcc/ChangeLog:
* configure.ac: Set aliasing_flags to -fno-strict-aliasing if
the host compiler is affected by placement new aliasing bug.
* configure: Regenerate.
* Makefile.in (ALIASING_FLAGS): New variable.
(ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
From-SVN: r226499
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r-- | gcc/Makefile.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index be259e8..36168af 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -180,6 +180,8 @@ NOCOMMON_FLAG = @nocommon_flag@ NOEXCEPTION_FLAGS = @noexception_flags@ +ALIASING_FLAGS = @aliasing_flags@ + # This is set by --disable-maintainer-mode (default) to "#" # FIXME: 'MAINT' will always be set to an empty string, no matter if # --disable-maintainer-mode is used or not. This is because the @@ -986,7 +988,8 @@ ALL_CFLAGS = $(T_CFLAGS) $(CFLAGS-$@) \ # The C++ version. ALL_CXXFLAGS = $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS) $(INTERNAL_CFLAGS) \ - $(COVERAGE_FLAGS) $(NOEXCEPTION_FLAGS) $(WARN_CXXFLAGS) @DEFS@ + $(COVERAGE_FLAGS) $(ALIASING_FLAGS) $(NOEXCEPTION_FLAGS) \ + $(WARN_CXXFLAGS) @DEFS@ # Likewise. Put INCLUDES at the beginning: this way, if some autoconf macro # puts -I options in CPPFLAGS, our include files in the srcdir will always |