]> granicus.if.org Git - clang/commitdiff
clang/test/Driver: Introduce the feature "clang-driver", set if gcc driver is not...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 11 Dec 2012 07:06:09 +0000 (07:06 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 11 Dec 2012 07:06:09 +0000 (07:06 +0000)
It is not set at targetting cygming. See PR12920.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169824 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/debug-options-as.c
test/Driver/fast-math.c
test/Driver/fsanitize-blacklist.c
test/Driver/integrated-as.c
test/Driver/integrated-as.s
test/Driver/linker-opts.c
test/Driver/warning-options_pedantic.cpp
test/lit.cfg

index 57036e42db0704b907ce1d9833cc3036c127d1ed..20e104e80bf9b767cc195d1857e449c3c79b11d8 100644 (file)
@@ -1,5 +1,5 @@
 // cygming have not supported integrated-as yet.
-// XFAIL: cygwin,mingw32
+// REQUIRES: clang-driver
 //
 // Check to make sure clang is somewhat picky about -g options.
 // (Delived from debug-options.c)
index 17bf6ed617dd87263cde6282280f8b108f0d4392..91af2e1dce453edd67136d867f66bee17759fc93 100644 (file)
@@ -5,7 +5,7 @@
 // support.
 //
 // Both of them use gcc driver for as.
-// XFAIL: cygwin,mingw32
+// REQUIRES: clang-driver
 //
 // RUN: %clang -### -fno-honor-infinities -c %s 2>&1 \
 // RUN:   | FileCheck --check-prefix=CHECK-NO-INFS %s
index 353587bfc769d57122993e12bfa6a3de04272257..5327bc16a3400cf7019b1b1e2a6807fae3e0e4f4 100644 (file)
@@ -15,4 +15,4 @@
 // CHECK-NO-SUCH-FILE: error: no such file or directory: 'unexisting.txt'
 
 // PR12920
-// XFAIL: cygwin,mingw32
+// REQUIRES: clang-driver
index e0131754b0b40b724a5e24e65e7f66aa75eb7bdc..2045e8b559c660c85703a626f369b879f9691b94 100644 (file)
@@ -1,4 +1,7 @@
 // RUN: %clang -### -c -save-temps -integrated-as %s 2>&1 | FileCheck %s
 
+// gcc is invoked instead of clang-cc1as with gcc-driver -save-temps.
+// REQUIRES: clang-driver
+
 // CHECK: cc1as
 // CHECK: -relax-all
index 2b07484fe1bb800de18711e871ee0bb5cf95f65b..d614418276b852ac5be266f5ad7b5e192e85d435 100644 (file)
@@ -1,4 +1,6 @@
 // RUN: %clang -### -c -integrated-as %s 2>&1 | FileCheck %s
 
+// REQUIRES: clang-driver
+
 // CHECK: cc1as
 // CHECK-NOT: -relax-all
index 2a96a17c70d3134612cebe256ed2257795f3aede..623426e057a4048385af0e45e3423ae7f0d38413 100644 (file)
@@ -2,4 +2,4 @@
 // CHECK: "-L{{.*}}/test1"
 
 // GCC driver is used as linker on cygming. It should be aware of LIBRARY_PATH.
-// XFAIL: cygwin,mingw32,win32
+// REQUIRES: clang-driver
index c6d11be73d1f4ffe4aa0623bc97a555c6ae0de9c..e40f7716f4136bfad4d0d85b9cc0e8ffec0480e7 100644 (file)
@@ -4,4 +4,4 @@
 // RUN: %clang -### -pedantic -pedantic -no-pedantic -pedantic %s 2>&1 | FileCheck -check-prefix=PEDANTIC %s
 // RUN: %clang -### -pedantic -pedantic -no-pedantic -Wpedantic %s 2>&1 | FileCheck -check-prefix=NO_PEDANTIC %s
 // PEDANTIC: -pedantic
-// XFAIL: cygwin,mingw32
+// REQUIRES: clang-driver
index 1a4fcbdec79b6fef837f42661e2f5f0427c8fc43..fae5fa099e12969beb30c9801e4511d12219bf63 100644 (file)
@@ -245,6 +245,10 @@ if os.path.exists("/dev/fd/0") and sys.platform not in ['cygwin']:
 if not re.match(r'^x86_64.*-(win32|mingw32)$', config.target_triple):
     config.available_features.add('LP64')
 
+# [PR12920] "clang-driver" -- set if gcc driver is not used.
+if not re.match(r'.*-(cygwin|mingw32)$', config.target_triple):
+    config.available_features.add('clang-driver')
+
 # Registered Targets
 def get_llc_props(tool):
     set_of_targets = set()