[llvm-commits] CVS: llvm/Makefile.rules
Chris Lattner
lattner at cs.uiuc.edu
Thu Jul 27 11:20:05 PDT 2006
Changes in directory llvm:
Makefile.rules updated: 1.391 -> 1.392
---
Log message:
Pass -fstrict-aliasing to the compiler when building a release build on darwin.
Darwin doesn't default to it being on.
---
Diffs of the changes: (+8 -3)
Makefile.rules | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.391 llvm/Makefile.rules:1.392
--- llvm/Makefile.rules:1.391 Wed Jul 26 16:14:55 2006
+++ llvm/Makefile.rules Thu Jul 27 13:19:51 2006
@@ -214,13 +214,18 @@
else
ifdef ENABLE_OPTIMIZED
BuildMode := Release
- # Don't use -fomit-frame-pointer on FreeBSD
+ # Don't use -fomit-frame-pointer on Darwin or FreeBSD.
ifneq ($(OS),FreeBSD)
- # Don't use -fomit-frame-pointer on Darwin, it breaks backtraces.
ifneq ($(OS),Darwin)
OmitFramePointer := -fomit-frame-pointer
endif
endif
+
+ # Darwin requires -fstrict-aliasing to be explicitly enabled.
+ ifeq ($(OS),Darwin)
+ EXTRA_OPTIONS += -fstrict-aliasing
+ endif
+
CXX.Flags := $(OPTIMIZE_OPTION) $(OmitFramePointer)
C.Flags := $(OPTIMIZE_OPTION) $(OmitFramePointer)
LD.Flags := $(OPTIMIZE_OPTION)
@@ -251,7 +256,7 @@
AR.Flags := cru
LibTool.Flags := --tag=CXX
-#Make Floating point ieee complient on alpha
+# Make Floating point IEEE compliant on Alpha.
ifeq ($(ARCH),Alpha)
CXX.Flags += -mieee -fPIC
CPP.BaseFlags += -mieee -fPIC
More information about the llvm-commits
mailing list