aboutsummaryrefslogtreecommitdiff
path: root/Driver/clang.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-15 20:00:15 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-15 20:00:15 +0000
commit3ada6ffd92e02b02f1cdb3c2044aab24dbe0b755 (patch)
treec51fd120b5d581ea13f3a9e402eff19e21643058 /Driver/clang.cpp
parent669c0e13d3ab342f9b074a8c3eeeb887cf54b52f (diff)
PR3589: Don't simplify libcalls with -ffreestanding.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r--Driver/clang.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 2f7ce69ee3..d1ef871d6a 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -1271,7 +1271,7 @@ static void InitializeCompileOptions(CompileOptions &Opts) {
// FIXME: There are llvm-gcc options to control these selectively.
Opts.InlineFunctions = (Opts.OptimizationLevel > 1);
Opts.UnrollLoops = (Opts.OptimizationLevel > 1 && !OptSize);
- Opts.SimplifyLibCalls = 1;
+ Opts.SimplifyLibCalls = !Freestanding;
#ifdef NDEBUG
Opts.VerifyModule = 0;