aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/LangOptions.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-02-14 20:49:29 +0000
committerDouglas Gregor <dgregor@apple.com>2009-02-14 20:49:29 +0000
commit3573c0c0b44a1ac8f76a00af1bc75e94ca03d704 (patch)
treea73b7dbfd0dad96b6848adaf47fbb6f9a76facf7 /include/clang/Basic/LangOptions.h
parent19891b082be53204ec91da31aee902966508c6d8 (diff)
Add -ffreestanding to suppress the implicit declaration of library builtins like printf and malloc. Fixes PR3586
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/LangOptions.h')
-rw-r--r--include/clang/Basic/LangOptions.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h
index 96c79aa8aa..12fffb332d 100644
--- a/include/clang/Basic/LangOptions.h
+++ b/include/clang/Basic/LangOptions.h
@@ -47,6 +47,7 @@ public:
unsigned Exceptions : 1; // Support exception handling.
unsigned NeXTRuntime : 1; // Use NeXT runtime.
+ unsigned Freestanding : 1; // Freestanding implementation
unsigned ThreadsafeStatics : 1; // Whether static initializers are protected
// by locks.
@@ -68,7 +69,7 @@ public:
GC = ObjC1 = ObjC2 = ObjCNonFragileABI = 0;
C99 = Microsoft = CPlusPlus = CPlusPlus0x = NoExtensions = 0;
CXXOperatorNames = PascalStrings = Boolean = WritableStrings = 0;
- Exceptions = NeXTRuntime = 0;
+ Exceptions = NeXTRuntime = Freestanding = 0;
LaxVectorConversions = 1;
// FIXME: The default should be 1.