Warn of potential violations of strict aliasing rules.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 5 Jun 2008 23:00:08 +0000 (23:00 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 5 Jun 2008 23:00:08 +0000 (23:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52027 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index 55d4d1b703823b83e09868ce393fce31e4379911..74b5a32ae850e6f46f69748a01671eaa27fd2dab 100644 (file)
@@ -226,7 +226,7 @@ else
 
     # Darwin requires -fstrict-aliasing to be explicitly enabled.
     ifeq ($(OS),Darwin)
-      EXTRA_OPTIONS += -fstrict-aliasing
+      EXTRA_OPTIONS += -fstrict-aliasing -Wstrict-aliasing
     endif
 
     CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)