diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-08-25 19:54:53 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-08-25 19:54:53 +0000 |
commit | 99655e16a6b0eafc8e18e73efe3ab27d2faf0a4a (patch) | |
tree | 1ce88ce7b68dbce9cd9d008db8234c1f52db86bb /Makefile.rules | |
parent | f3e4f0e615bb2c36c4a9d60bb908e08b76025c75 (diff) | |
download | external_llvm-99655e16a6b0eafc8e18e73efe3ab27d2faf0a4a.zip external_llvm-99655e16a6b0eafc8e18e73efe3ab27d2faf0a4a.tar.gz external_llvm-99655e16a6b0eafc8e18e73efe3ab27d2faf0a4a.tar.bz2 |
For PR797:
Final commit for this bug. This removes the last EH holdouts in LLVM
and turns off exception support by using the -fno-exceptions option. This
leads to the following reduction in library and executable sizes:
DEBUG BUILD RELEASE BUILD
before after delta before after delta
lib 162,328K 157,616K 4,712 17,864K 16,416K 1,448K
bin 571,444K 557,156K 14,288 63,296K 56,996K 6,300K
Debug Improvement: 19,000K (2.59%)
Release Improvement: 7,748K (9.55%)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29882 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile.rules b/Makefile.rules index 808e2b5..88fa992 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -206,11 +206,6 @@ else OPTIMIZE_OPTION := -O2 endif -# IF REQUIRES_EH=1 is specified then don't disable exceptions -#ifndef REQUIRES_EH -# CXX.Flags += -fno-exceptions -#endif - ifdef ENABLE_PROFILING BuildMode := Profile CXX.Flags := $(OPTIMIZE_OPTION) -pg -g @@ -243,6 +238,11 @@ else endif endif +# IF REQUIRES_EH=1 is specified then don't disable exceptions +#ifndef REQUIRES_EH +# CXX.Flags += -fno-exceptions +#endif + # If DISABLE_ASSERTIONS=1 is specified (make command line or configured), # then disable assertions by defining the appropriate preprocessor symbols. ifdef DISABLE_ASSERTIONS |