aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.rules
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-08-18 09:30:03 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-08-18 09:30:03 +0000
commitf0646768be731fa4dfd447584ea3248727c8f90e (patch)
treefe35fda097b9ad6c6893f091b30048c8fa3092d1 /Makefile.rules
parent40bb451c94a00502358546214d6d00a7c523c31d (diff)
downloadexternal_llvm-f0646768be731fa4dfd447584ea3248727c8f90e.zip
external_llvm-f0646768be731fa4dfd447584ea3248727c8f90e.tar.gz
external_llvm-f0646768be731fa4dfd447584ea3248727c8f90e.tar.bz2
For PR797:
1. Actually turn on -fno-exceptions in libraries that do not have the REQUIRES_EH option in their Makefile. The following library file size savings were made (DEBUG): libLLVMDataStructure.a 525K libLLVMCore.a 380K libLLVMCodeGen.a 350K libLLVMTransformUtils.a 305K libLLVMScalarOpts.a 270K libLLVMAnalysis.a 247K libLLVMSelectionDAG.a 233K libLLVMipo.a 175K LLVMX86.o 123K LLVMPPC.o 81K libLLVMipa.a 17K TOTAL 2,706K Note that the savings is actually a little larger than this because I didn't count any of the libraries that had small changes. 2. Remove REQUIRES_EH from the AsmParser library as it is now exception free. This resulted in a nearly 78K drop in the size of the debug library for AsmParser. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index c9795ec..055baa0 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -249,6 +249,11 @@ else
C.Flags += -D_DEBUG
endif
+# IF REQUIRES_EH=1 is specified then don't disable exceptions
+ifndef REQUIRES_EH
+ CXX.Flags += -fno-exceptions
+endif
+
CXX.Flags += $(CXXFLAGS)
C.Flags += $(CFLAGS)
CPP.BaseFlags += $(CPPFLAGS)