Skip to content

Commit

Permalink
re PR debug/54826 (gdb test case failure (bs15503) due to gaps in lex…
Browse files Browse the repository at this point in the history
…ical block)

2012-10-05  Dehao Chen  <[email protected]>

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

From-SVN: r192165
  • Loading branch information
danielcdh authored and Dehao Chen committed Oct 6, 2012
1 parent 6ada5e7 commit f16dd82
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2012-10-06 Dehao Chen <[email protected]>

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

2012-10-06 Jan Hubicka <[email protected]>

* doc/invoke.texi (-fprofile-report): Document.
Expand Down
8 changes: 8 additions & 0 deletions gcc/gimple-low.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f16dd82

Please sign in to comment.