summaryrefslogtreecommitdiffstats
path: root/test/Sema/carbon.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-05-06 03:16:41 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-05-06 03:16:41 +0000
commit868bd0aa9281929ef50d2e9a8c82a036906f53f5 (patch)
tree112dd090bf8ad85dac458a0b669ff7f582d8128a /test/Sema/carbon.c
parent02f7ed72fa0d4674e2123a1bd54d7972812f8cc7 (diff)
Improve handling of (X86) target features.
- This is a WIP... - This adds -march= handling to the driver, and fixes the defaulting of -mcpu on Darwin (which was using the wrong test). Instead of handling -m{sse, ...} in the driver, pass them to clang-cc as -target-feature [+-]name In clang-cc, communicate with the (clang) target to discover the legal features of a target, and the features which are enabled based on -mcpu. This is currently hardcoded just enough to not be a feature regression, we need to get this information from the backend's TableGen information somehow. This is used to construct the full list of features which are being used, which is in turn used to initialize the predefines. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71061 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/carbon.c')
-rw-r--r--test/Sema/carbon.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/Sema/carbon.c b/test/Sema/carbon.c
index 8e6837f125..5eda4385ac 100644
--- a/test/Sema/carbon.c
+++ b/test/Sema/carbon.c
@@ -1,5 +1,4 @@
-// RUN: clang-cc %s -print-stats &&
-// RUN: clang-cc %s -disable-free
+// RUN: clang-cc -mcpu=pentium4 %s -print-stats
#ifdef __APPLE__
#include <Carbon/Carbon.h>
#endif