diff options
Diffstat (limited to 'gcc/tree-tailcall.c')
| -rw-r--r-- | gcc/tree-tailcall.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c index efd6bc2..d1f6dc1 100644 --- a/gcc/tree-tailcall.c +++ b/gcc/tree-tailcall.c @@ -395,7 +395,7 @@ find_tail_calls (basic_block bb, struct tailcall **ret) stmt = gsi_stmt (gsi); /* Ignore labels. */ - if (gimple_code (stmt) == GIMPLE_LABEL) + if (gimple_code (stmt) == GIMPLE_LABEL || is_gimple_debug (stmt)) continue; /* Check for a call. */ @@ -501,6 +501,9 @@ find_tail_calls (basic_block bb, struct tailcall **ret) if (gimple_code (stmt) == GIMPLE_RETURN) break; + if (is_gimple_debug (stmt)) + continue; + if (gimple_code (stmt) != GIMPLE_ASSIGN) return; |
