[llvm-commits] CVS: llvm/Makefile.rules

Reid Spencer reid at x10sys.com
Fri Aug 18 02:30:20 PDT 2006



Changes in directory llvm:

Makefile.rules updated: 1.393 -> 1.394
---
Log message:

For PR797: http://llvm.org/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.


---
Diffs of the changes:  (+5 -0)

 Makefile.rules |    5 +++++
 1 files changed, 5 insertions(+)


Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.393 llvm/Makefile.rules:1.394
--- llvm/Makefile.rules:1.393	Mon Aug  7 18:12:15 2006
+++ llvm/Makefile.rules	Fri Aug 18 04:30:03 2006
@@ -249,6 +249,11 @@
   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)






More information about the llvm-commits mailing list