permit unary plus to be used with vector types
Jan Beulich
JBeulich@novell.com
Wed May 12 15:42:00 GMT 2004
Up to 3.4.0, applying a unary plus to a vector type is rejected; here is
the one line fix for this. I am not aware of an exisiting bug number for
this.
Jan
--- /usr/local/src/gcc-3.4.0/gcc/c-typeck.c 2004-03-31
02:24:49.000000000 +0200
+++ 3.4.0/gcc/c-typeck.c 2004-05-12 10:08:35.000000000 +0200
@@ -2194,7 +2202,8 @@
is enough to prevent anybody from looking inside for
associativity, but won't generate any code. */
if (!(typecode == INTEGER_TYPE || typecode == REAL_TYPE
- || typecode == COMPLEX_TYPE))
+ || typecode == COMPLEX_TYPE
+ || typecode == VECTOR_TYPE))
{
error ("wrong type argument to unary plus");
return error_mark_node;
More information about the Gcc-patches
mailing list