[llvm-commits] CVS: llvm/Makefile.rules
Reid Spencer
reid at x10sys.com
Sun Jan 2 09:43:32 PST 2005
Changes in directory llvm:
Makefile.rules updated: 1.282 -> 1.283
---
Log message:
Avoid use of -fomit-frame-pointer on FreeBSD platforms. It causes thrown
exceptions to abort() in cases where it should not.
Many thanks to Duraid Madina for doing the heavy lifting on the analysis
of this problem.
---
Diffs of the changes: (+8 -3)
Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.282 llvm/Makefile.rules:1.283
--- llvm/Makefile.rules:1.282 Sun Jan 2 03:45:54 2005
+++ llvm/Makefile.rules Sun Jan 2 11:43:20 2005
@@ -180,6 +180,7 @@
# Variables derived from configuration we are building
#--------------------------------------------------------------------
+
ifdef ENABLE_PROFILING
BuildMode := Profile
CXX.Flags := -O3 -DNDEBUG -felide-constructors -finline-functions -pg
@@ -188,9 +189,13 @@
else
ifdef ENABLE_OPTIMIZED
BuildMode := Release
- CXX.Flags := -O3 -DNDEBUG -finline-functions \
- -felide-constructors -fomit-frame-pointer
- C.Flags := -O3 -DNDEBUG -fomit-frame-pointer
+ # Don't use -fomit-frame-pointer on FreeBSD
+ ifneq ($(OS),FreeBSD)
+ OmitFramePointer := -fomit-frame-pointer
+ endif
+ CXX.Flags := -O3 -DNDEBUG -finline-functions -felide-constructors \
+ $(OmitFramePointer)
+ C.Flags := -O3 -DNDEBUG $(OmitFramePointer)
LD.Flags := -O3 -DNDEBUG
else
BuildMode := Debug
More information about the llvm-commits
mailing list