Commit 997ac87b by Richard Guenther Committed by Richard Biener

re PR debug/42991 (cfgexpand.c:2487: Conditional jump or move depends on uninitialised value(s))

2010-02-07  Richard Guenther  <rguenther@suse.de>

	PR middle-end/42991
	* expr.c (get_inner_reference): Always initialize *pbitsize.

From-SVN: r156575
parent cb6b911a
2010-02-07 Richard Guenther <rguenther@suse.de> 2010-02-07 Richard Guenther <rguenther@suse.de>
PR middle-end/42991
* expr.c (get_inner_reference): Always initialize *pbitsize.
2010-02-07 Richard Guenther <rguenther@suse.de>
PR middle-end/42956 PR middle-end/42956
* gimplify.c (gimple_fold_indirect_ref): Avoid generating * gimplify.c (gimple_fold_indirect_ref): Avoid generating
new ARRAY_REFs on variable size element or minimal index arrays. new ARRAY_REFs on variable size element or minimal index arrays.
......
...@@ -5968,6 +5968,7 @@ get_inner_reference (tree exp, HOST_WIDE_INT *pbitsize, ...@@ -5968,6 +5968,7 @@ get_inner_reference (tree exp, HOST_WIDE_INT *pbitsize,
/* First get the mode, signedness, and size. We do this from just the /* First get the mode, signedness, and size. We do this from just the
outermost expression. */ outermost expression. */
*pbitsize = -1;
if (TREE_CODE (exp) == COMPONENT_REF) if (TREE_CODE (exp) == COMPONENT_REF)
{ {
tree field = TREE_OPERAND (exp, 1); tree field = TREE_OPERAND (exp, 1);
......
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