[cfe-commits] r105644 - /cfe/trunk/Makefile
Daniel Dunbar
daniel at zuster.org
Tue Jun 8 14:55:02 PDT 2010
Author: ddunbar
Date: Tue Jun 8 16:55:02 2010
New Revision: 105644
URL: http://llvm.org/viewvc/llvm-project?rev=105644&view=rev
Log:
Globally disable -fno-strict-aliasing, for reasons given in the comment.
Modified:
cfe/trunk/Makefile
Modified: cfe/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Makefile?rev=105644&r1=105643&r2=105644&view=diff
==============================================================================
--- cfe/trunk/Makefile (original)
+++ cfe/trunk/Makefile Tue Jun 8 16:55:02 2010
@@ -38,6 +38,16 @@
CPP.Flags += -DCLANG_VENDOR='"$(CLANG_VENDOR) "'
endif
+# Disable -fstrict-aliasing. Darwin disables it by default (and LLVM doesn't
+# work with it enabled with GCC), Clang/llvm-gc don't support it yet, and newer
+# GCC's have false positive warnings with it on Linux (which prove a pain to
+# fix). For example:
+# http://gcc.gnu.org/PR41874
+# http://gcc.gnu.org/PR41838
+#
+# We can revisit this when LLVM/Clang support it.
+CXX.Flags += -fno-strict-aliasing
+
###
# Clang Top Level specific stuff.
More information about the cfe-commits
mailing list