[llvm-commits] [llvm] r79477 - /llvm/trunk/Makefile.rules
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Wed Aug 19 15:04:44 PDT 2009
Author: geoffray
Date: Wed Aug 19 17:04:44 2009
New Revision: 79477
URL: http://llvm.org/viewvc/llvm-project?rev=79477&view=rev
Log:
Add a REQUIRES_FRAME_POINTER option to disable the frame pointer
elimination optimization on the LLVM code base.
Modified:
llvm/trunk/Makefile.rules
Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=79477&r1=79476&r2=79477&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Wed Aug 19 17:04:44 2009
@@ -337,6 +337,12 @@
CXX.Flags += -fno-exceptions
endif
+ifdef REQUIRES_FRAME_POINTER
+ CXX.Flags := $(filter-out -fomit-frame-pointer,$(CXX.Flags))
+ C.Flags := $(filter-out -fomit-frame-pointer,$(C.Flags))
+ LD.Flags := $(filter-out -fomit-frame-pointer,$(LD.Flags))
+endif
+
# IF REQUIRES_RTTI=1 is specified then don't disable run-time type id
ifndef REQUIRES_RTTI
# CXX.Flags += -fno-rtti
More information about the llvm-commits
mailing list