re PR debug/54826 (gdb test case failure (bs15503) due to gaps in lexical block)

2012-10-05  Dehao Chen  <dehao@google.com>

	PR debug/54826
	* gimple-low.c (lower_stmt): Set the block for call args.

From-SVN: r192165
This commit is contained in:
Dehao Chen 2012-10-06 16:19:34 +00:00 committed by Dehao Chen
parent 6ada5e7d99
commit f16dd82295
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-10-06 Dehao Chen <dehao@google.com>
PR debug/54826
* gimple-low.c (lower_stmt): Set the block for call args.
2012-10-06 Jan Hubicka <jh@suse.cz>
* doc/invoke.texi (-fprofile-report): Document.

View File

@ -425,6 +425,14 @@ lower_stmt (gimple_stmt_iterator *gsi, struct lower_data *data)
case GIMPLE_CALL:
{
tree decl = gimple_call_fndecl (stmt);
unsigned i;
for (i = 0; i < gimple_call_num_args (stmt); i++)
{
tree arg = gimple_call_arg (stmt, i);
if (EXPR_P (arg))
TREE_SET_BLOCK (arg, data->block);
}
if (decl
&& DECL_BUILT_IN_CLASS (decl) == BUILT_IN_NORMAL