]> granicus.if.org Git - clang/commitdiff
Move a bunch of tests to directly use the CC1 layer. This at least saves
authorChandler Carruth <chandlerc@gmail.com>
Wed, 15 Jan 2014 09:08:07 +0000 (09:08 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 15 Jan 2014 09:08:07 +0000 (09:08 +0000)
a subprocess invocation which is pretty significant on Windows. It also
likely saves a bunch of thrashing the host machine needlessly. Finally
it makes the tests much more predictable and less dependent on the host.
For example 'header_lookup1.c' was passing '-fno-ms-extensions' just to
thwart the host detection adding it into the compilation. By runnig CC1
directly we don't have to deal with such oddities.

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

test/CodeGen/lineno-dbginfo.c
test/Parser/altivec-csk-bool.c
test/Preprocessor/header_lookup1.c
test/Sema/attr-malloc.c
test/Sema/i-c-e.c
test/Sema/shift.c

index 72fa337eaf83d1dd7f74ca376a5cb1cafe31e789..1f9b7a569eceb2db2aea4c0c00ff890bb1b5796f 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: echo "#include <stddef.h>" > %t.h
-// RUN: %clang -S -g -include %t.h %s -emit-llvm -o %t.ll
+// RUN: %clang_cc1 -S -g -include %t.h %s -emit-llvm -o %t.ll
 // RUN: grep "i32 5" %t.ll
 // outer is at line number 5.
 int outer = 42;
index ba6fa3b2f77b5a4fa282e87f2aedcd810e0a55f8..88d78c88b2bdf4b3fa9382db9b1ec6be6f209c43 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang -target powerpc64-unknown-linux-gnu -maltivec -fsyntax-only %s
+// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -faltivec -fsyntax-only %s
 
 // PR16456: Verify that bool, true, false are treated as context-sensitive
 // keywords (and therefore available for use as identifiers) when in
index d0909363737cb0105fc39c585eb4cc75d2392736..336aba655661ded9ac2a74f1356bb0482a929f51 100644 (file)
@@ -1,2 +1,2 @@
-// RUN: %clang -fno-ms-extensions %s -E | grep 'stddef.h.*3'
+// RUN: %clang_cc1 %s -E | grep 'stddef.h.*3'
 #include <stddef.h>
index 2cec84de496918f1ff957cf0e9b843c294370a52..c78d15c802cef3d691ab760fb385715fb4b8ce57 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: %clang -Xclang -verify -fsyntax-only %s
-// RUN: %clang -emit-llvm -S -o %t %s
+// RUN: %clang_cc1 -verify -fsyntax-only %s
+// RUN: %clang_cc1 -emit-llvm -o %t %s
 
 #include <stddef.h>
 
index 7749b6c1a0f064d0db99abeeb6409ae4a018e501..c6025f978e35a5d7ffaf8a9a9d528e8ec84757ba 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang %s -ffreestanding -Wno-int-to-pointer-cast -fsyntax-only -Xclang -verify -pedantic -fpascal-strings -std=c99
+// RUN: %clang_cc1 %s -ffreestanding -Wno-int-to-pointer-cast -fsyntax-only -verify -pedantic -fpascal-strings -std=c99
 
 #include <stdint.h>
 #include <limits.h>
index 142d83c43d92b98938ebf4792afb60db54ee4ddd..d355544885135956ed0aa377881ccce31ac8616e 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang -Wall -Wshift-sign-overflow -ffreestanding -fsyntax-only -Xclang -verify %s
+// RUN: %clang_cc1 -Wall -Wshift-sign-overflow -ffreestanding -fsyntax-only -verify %s
 
 #include <limits.h>