Commit 6a129567 by Richard Guenther Committed by Richard Biener

re PR tree-optimization/41181 (internal compiler error when using…

re PR tree-optimization/41181 (internal compiler error when using x86_64-w64-mingw32-gcc to build ffmpeg ac3enc.c)

2009-09-05  Richard Guenther  <rguenther@suse.de>

	PR middle-end/41181
	* tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.

	* gcc.c-torture/compile/pr41181.c: New testcase.

From-SVN: r151455
parent 432b4b31
2009-09-05 Richard Guenther <rguenther@suse.de>
PR middle-end/41181
* tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
2009-09-05 Richard Guenther <rguenther@suse.de>
PR debug/41273
* tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
......
2009-09-05 Richard Guenther <rguenther@suse.de>
PR middle-end/41181
* gcc.c-torture/compile/pr41181.c: New testcase.
2009-09-05 Richard Guenther <rguenther@suse.de>
PR debug/41273
* g++.dg/torture/pr41273.C: New testcase.
......
char paths[1024];
static void x264_slicetype_path(char (*best_paths)[250], int n, int length)
{
__builtin_memcpy (best_paths[n], paths, length);
}
void x264_slicetype_analyse(int n, int length)
{
char best_paths[250][250];
x264_slicetype_path (best_paths, n, length);
}
......@@ -2214,16 +2214,16 @@ maybe_fold_stmt_addition (location_t loc, tree res_type, tree op0, tree op1)
&& TREE_CODE (gimple_assign_rhs2 (offset_def)) == INTEGER_CST
&& tree_int_cst_equal (gimple_assign_rhs2 (offset_def),
TYPE_SIZE_UNIT (TREE_TYPE (op0))))
return build1 (ADDR_EXPR, res_type,
build4 (ARRAY_REF, TREE_TYPE (op0),
return build_fold_addr_expr
(build4 (ARRAY_REF, TREE_TYPE (op0),
TREE_OPERAND (op0, 0),
gimple_assign_rhs1 (offset_def),
TREE_OPERAND (op0, 2),
TREE_OPERAND (op0, 3)));
else if (integer_onep (TYPE_SIZE_UNIT (TREE_TYPE (op0)))
&& gimple_assign_rhs_code (offset_def) != MULT_EXPR)
return build1 (ADDR_EXPR, res_type,
build4 (ARRAY_REF, TREE_TYPE (op0),
return build_fold_addr_expr
(build4 (ARRAY_REF, TREE_TYPE (op0),
TREE_OPERAND (op0, 0),
op1,
TREE_OPERAND (op0, 2),
......
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