Commit f843144b by Richard Guenther Committed by Richard Biener

re PR tree-optimization/54920 (segfault in tree-ssa-pre.c during Firefox build)

2012-10-15  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/54920
	* tree-ssa-pre.c (create_expression_by_pieces): Properly
	allocate temporary storage for all NARY elements.

	* gcc.dg/torture/pr54920.c: New testcase.

From-SVN: r192454
parent 7bd8fc3b
2012-10-15 Richard Guenther <rguenther@suse.de>
PR tree-optimization/54920
* tree-ssa-pre.c (create_expression_by_pieces): Properly
allocate temporary storage for all NARY elements.
2012-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
* web.c (union_match_dups): Properly handle OP_INOUT match_dups.
2012-10-15 Richard Guenther <rguenther@suse.de>
PR tree-optimization/54920
* gcc.dg/torture/pr54920.c: New testcase.
2012-10-15 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/unchecked_convert9.ad[sb]: New test.
......
/* { dg-do compile } */
typedef short __v8hi __attribute__ ((__vector_size__ (16)));
typedef long long __m128i __attribute__ ((__vector_size__ (16)));
int a;
__m128i b;
void
fn1 ()
{
while (1)
b = (__m128i) (__v8hi) { a, 0, 0, 0, 0, 0 };
}
......@@ -2853,7 +2853,7 @@ create_expression_by_pieces (basic_block block, pre_expr expr,
case NARY:
{
vn_nary_op_t nary = PRE_EXPR_NARY (expr);
tree genop[4];
tree *genop = XALLOCAVEC (tree, nary->length);
unsigned i;
for (i = 0; i < nary->length; ++i)
{
......
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