re PR tree-optimization/30590 (tree-nrv optimization clobbers return variable)
2007-03-13 Seongbae Park <seongbae.park@gmail.com> PR tree-optimization/30590 * tree-nrv.c (tree_nrv): Check for the partial update of the return value. From-SVN: r122909
This commit is contained in:
parent
0503394970
commit
e31657e812
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-03-13 Seongbae Park <seongbae.park@gmail.com>
|
||||
|
||||
PR tree-optimization/30590
|
||||
* tree-nrv.c (tree_nrv): Check for the partial update of the
|
||||
return value.
|
||||
|
||||
2007-03-13 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* flags.h (flag_random_seed): Remove declaration, in favor of...
|
||||
|
|
|
@ -163,6 +163,14 @@ tree_nrv (void)
|
|||
result_type))
|
||||
return 0;
|
||||
}
|
||||
else if (TREE_CODE (stmt) == GIMPLE_MODIFY_STMT)
|
||||
{
|
||||
tree addr = get_base_address (GIMPLE_STMT_OPERAND (stmt, 0));
|
||||
/* If there's any MODIFY of component of RESULT,
|
||||
then bail out. */
|
||||
if (addr && addr == result)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue