Commit 7428bc26 by Jason Merrill Committed by Jason Merrill

* c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.

From-SVN: r157187
parent 95addb1b
2010-03-02 Jason Merrill <jason@redhat.com>
* c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
* config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
......
......@@ -458,7 +458,12 @@ pp_c_specifier_qualifier_list (c_pretty_printer *pp, tree t)
if (code == COMPLEX_TYPE)
pp_c_ws_string (pp, flag_isoc99 ? "_Complex" : "__complex__");
else if (code == VECTOR_TYPE)
pp_c_ws_string (pp, "__vector__");
{
pp_c_ws_string (pp, "__vector");
pp_c_left_bracket (pp);
pp_wide_integer (pp, TYPE_VECTOR_SUBPARTS (t));
pp_c_right_bracket (pp);
}
break;
default:
......
2010-03-02 Jason Merrill <jason@redhat.com>
* g++.dg/ext/vector9.C: Adjust error message.
* g++.dg/conversion/simd3.C: Likewise.
* g++.dg/other/error23.C: Likewise.
2010-03-02 Mike Stump <mikestump@comcast.net>
PR c++/41090
......
......@@ -10,6 +10,6 @@ unsigned int __attribute__((vector_size(16))) e;
void foo()
{
b + d; /* { dg-error "invalid operands to binary" } */
d += e; /* { dg-message "use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts.*cannot convert 'unsigned int __vector__' to 'int __vector__' in assignment" } */
d += e; /* { dg-message "use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts.*cannot convert 'unsigned int __vector.4.' to 'int __vector.4.' in assignment" } */
d2 += d;
}
......@@ -6,5 +6,5 @@ typedef int v4i __attribute__((vector_size(8)));
void foo()
{
v4f v;
!(v4i)v; // { dg-error "int __vector__|argument" }
!(v4i)v; // { dg-error "int __vector.2|argument" }
}
......@@ -2,4 +2,4 @@
// { dg-do compile }
int v __attribute ((vector_size (8)));
bool b = !(v - v); // { dg-error "could not convert .\\(int __vector__\\)\\{0, 0\\}. to .bool.|in argument to unary" }
bool b = !(v - v); // { dg-error "could not convert .\\(int __vector.2.\\)\\{0, 0\\}. to .bool.|in argument to unary" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment