r199308 - Move a bunch of tests to directly use the CC1 layer. This at least saves

Chandler Carruth chandlerc at gmail.com
Wed Jan 15 01:08:08 PST 2014


Author: chandlerc
Date: Wed Jan 15 03:08:07 2014
New Revision: 199308

URL: http://llvm.org/viewvc/llvm-project?rev=199308&view=rev
Log:
Move a bunch of tests to directly use the CC1 layer. This at least saves
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.

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

Modified: cfe/trunk/test/CodeGen/lineno-dbginfo.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/lineno-dbginfo.c?rev=199308&r1=199307&r2=199308&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/lineno-dbginfo.c (original)
+++ cfe/trunk/test/CodeGen/lineno-dbginfo.c Wed Jan 15 03:08:07 2014
@@ -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;

Modified: cfe/trunk/test/Parser/altivec-csk-bool.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/altivec-csk-bool.c?rev=199308&r1=199307&r2=199308&view=diff
==============================================================================
--- cfe/trunk/test/Parser/altivec-csk-bool.c (original)
+++ cfe/trunk/test/Parser/altivec-csk-bool.c Wed Jan 15 03:08:07 2014
@@ -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

Modified: cfe/trunk/test/Preprocessor/header_lookup1.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/header_lookup1.c?rev=199308&r1=199307&r2=199308&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/header_lookup1.c (original)
+++ cfe/trunk/test/Preprocessor/header_lookup1.c Wed Jan 15 03:08:07 2014
@@ -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>

Modified: cfe/trunk/test/Sema/attr-malloc.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/attr-malloc.c?rev=199308&r1=199307&r2=199308&view=diff
==============================================================================
--- cfe/trunk/test/Sema/attr-malloc.c (original)
+++ cfe/trunk/test/Sema/attr-malloc.c Wed Jan 15 03:08:07 2014
@@ -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>
 

Modified: cfe/trunk/test/Sema/i-c-e.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/i-c-e.c?rev=199308&r1=199307&r2=199308&view=diff
==============================================================================
--- cfe/trunk/test/Sema/i-c-e.c (original)
+++ cfe/trunk/test/Sema/i-c-e.c Wed Jan 15 03:08:07 2014
@@ -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>

Modified: cfe/trunk/test/Sema/shift.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/shift.c?rev=199308&r1=199307&r2=199308&view=diff
==============================================================================
--- cfe/trunk/test/Sema/shift.c (original)
+++ cfe/trunk/test/Sema/shift.c Wed Jan 15 03:08:07 2014
@@ -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>
 





More information about the cfe-commits mailing list