]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/tree-tailcall.c
invoke.texi (-fvar-tracking-assignments): New.
[thirdparty/gcc.git] / gcc / tree-tailcall.c
index efd6bc2c029702b770f1bb0c1c18155c8fa17cf8..d1f6dc1488a04020058e03579de4b4c1f6470336 100644 (file)
@@ -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;