[cfe-commits] r66991 - /cfe/trunk/Driver/clang.cpp
Daniel Dunbar
daniel at zuster.org
Fri Mar 13 17:15:04 PDT 2009
Author: ddunbar
Date: Fri Mar 13 19:15:04 2009
New Revision: 66991
URL: http://llvm.org/viewvc/llvm-project?rev=66991&view=rev
Log:
Don't run simplify lib calls with -ffreestanding (fix for already
failing test case).
Modified:
cfe/trunk/Driver/clang.cpp
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=66991&r1=66990&r2=66991&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Fri Mar 13 19:15:04 2009
@@ -1203,7 +1203,7 @@
// FIXME: There are llvm-gcc options to control these selectively.
Opts.InlineFunctions = (Opts.OptimizationLevel > 1);
Opts.UnrollLoops = (Opts.OptimizationLevel > 1 && !OptSize);
- Opts.SimplifyLibCalls = !NoBuiltin;
+ Opts.SimplifyLibCalls = !NoBuiltin && !Freestanding;
#ifdef NDEBUG
Opts.VerifyModule = 0;
More information about the cfe-commits
mailing list