[cfe-commits] r101864 - in /cfe/trunk: lib/Sema/SemaInit.cpp test/Makefile test/Parser/altivec.c test/Parser/cxx-altivec.cpp
Chris Lattner
sabre at nondot.org
Mon Apr 19 21:31:56 PDT 2010
Author: lattner
Date: Mon Apr 19 23:31:55 2010
New Revision: 101864
URL: http://llvm.org/viewvc/llvm-project?rev=101864&view=rev
Log:
revert r101863, whcih is causing Sema/altivec-init.c to fail on a ton
of buildbots with:
error: 'error' diagnostics expected but not seen:
Line 9: too few elements in vector initialization (expected 8 elements, have 2)
1 warning and 1 error generated.
Modified:
cfe/trunk/lib/Sema/SemaInit.cpp
cfe/trunk/test/Makefile
cfe/trunk/test/Parser/altivec.c
cfe/trunk/test/Parser/cxx-altivec.cpp
Modified: cfe/trunk/lib/Sema/SemaInit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaInit.cpp?rev=101864&r1=101863&r2=101864&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaInit.cpp (original)
+++ cfe/trunk/lib/Sema/SemaInit.cpp Mon Apr 19 23:31:55 2010
@@ -886,7 +886,7 @@
// OpenCL & AltiVec require all elements to be initialized.
if (numEltsInit != maxElements)
- if (SemaRef.getLangOptions().OpenCL)
+ if (SemaRef.getLangOptions().OpenCL || SemaRef.getLangOptions().AltiVec)
SemaRef.Diag(IList->getSourceRange().getBegin(),
diag::err_vector_incorrect_num_initializers)
<< (numEltsInit < maxElements) << maxElements << numEltsInit;
Modified: cfe/trunk/test/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Makefile?rev=101864&r1=101863&r2=101864&view=diff
==============================================================================
--- cfe/trunk/test/Makefile (original)
+++ cfe/trunk/test/Makefile Mon Apr 19 23:31:55 2010
@@ -16,9 +16,9 @@
ifndef TESTARGS
ifdef VERBOSE
-TESTARGS = -v
+TESTARGS = -v -j16
else
-TESTARGS = -s -v
+TESTARGS = -s -v -j16
endif
endif
Modified: cfe/trunk/test/Parser/altivec.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/altivec.c?rev=101864&r1=101863&r2=101864&view=diff
==============================================================================
--- cfe/trunk/test/Parser/altivec.c (original)
+++ cfe/trunk/test/Parser/altivec.c Mon Apr 19 23:31:55 2010
@@ -40,8 +40,6 @@
void f_a(vector int a);
void f_a2(int b, vector int a);
-vector int v = (vector int)(-1);
-
// These should have warnings.
__vector long vv_l; // expected-warning {{Use of 'long' with '__vector' is deprecated}}
__vector signed long vv_sl; // expected-warning {{Use of 'long' with '__vector' is deprecated}}
Modified: cfe/trunk/test/Parser/cxx-altivec.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/cxx-altivec.cpp?rev=101864&r1=101863&r2=101864&view=diff
==============================================================================
--- cfe/trunk/test/Parser/cxx-altivec.cpp (original)
+++ cfe/trunk/test/Parser/cxx-altivec.cpp Mon Apr 19 23:31:55 2010
@@ -41,8 +41,6 @@
void f_a(vector int a);
void f_a2(int b, vector int a);
-vector int v = (vector int)(-1);
-
// These should have warnings.
__vector long vv_l; // expected-warning {{Use of 'long' with '__vector' is deprecated}}
__vector signed long vv_sl; // expected-warning {{Use of 'long' with '__vector' is deprecated}}
More information about the cfe-commits
mailing list