From 9d5a811ae187ac86bbe5e69c002f311501108920 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 5 Jun 2008 23:00:08 +0000 Subject: [PATCH] Warn of potential violations of strict aliasing rules. llvm-svn: 52027 --- Makefile.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.rules b/Makefile.rules index 55d4d1b7038..74b5a32ae85 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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)