aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-06-08 21:55:02 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-06-08 21:55:02 +0000
commit61f69d9581fc5882b6a3a725c2804dddee4e9b38 (patch)
treecfddc9dc69cbf4d4123e4eb6f4afd700524b55a3 /Makefile
parente1aa9f3a5d3e2c0f8a5606e82eef3c65a6f30672 (diff)
Globally disable -fno-strict-aliasing, for reasons given in the comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index acb620dddd..17365d9013 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,16 @@ ifdef CLANG_VENDOR
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.