This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[3.3 e500] fix arrays of vector initializers
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 29 Jan 2004 12:07:16 -0400
- Subject: [3.3 e500] fix arrays of vector initializers
The conditional immediately following this, is the correct one.
Removed the bogus one causing ICEs.
Committed to 3.3 e500 branch.
2004-01-29 Aldy Hernandez <aldyh@redhat.com>
* c-typeck.c (digest_init): Remove bogus duplicate VECTOR_CST
code.
Index: c-typeck.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-typeck.c,v
retrieving revision 1.213.2.5.2.6
diff -c -p -r1.213.2.5.2.6 c-typeck.c
*** c-typeck.c 4 Sep 2003 22:19:04 -0000 1.213.2.5.2.6
--- c-typeck.c 29 Jan 2004 16:04:12 -0000
*************** digest_init (type, init, require_constan
*** 4778,4791 ****
return inside_init;
}
}
- /* Build a VECTOR_CST from a *constant* vector constructor. If the
- vector constructor is not constant (e.g. {1,2,3,foo()}) then punt
- below and handle as a constructor. */
- if (code == VECTOR_TYPE
- && comptypes (TREE_TYPE (inside_init), type)
- && TREE_CONSTANT (inside_init))
- return build_vector (type, TREE_OPERAND (inside_init, 1));
-
/* Build a VECTOR_CST from a *constant* vector constructor. If the
vector constructor is not constant (e.g. {1,2,3,foo()}) then punt
--- 4778,4783 ----