Index: gcc/gcc/tree-stdarg.c |
diff --git a/gcc/gcc/tree-stdarg.c b/gcc/gcc/tree-stdarg.c |
index 00fce82e7503e1edf1b3f21ad4a39fc8e028dd73..9e7369fc3c13fee87da73999d675c468aab3a178 100644 |
--- a/gcc/gcc/tree-stdarg.c |
+++ b/gcc/gcc/tree-stdarg.c |
@@ -1,5 +1,5 @@ |
/* Pass computing data for optimizing stdarg functions. |
- Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. |
+ Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc. |
Contributed by Jakub Jelinek <jakub@redhat.com> |
This file is part of GCC. |
@@ -496,6 +496,9 @@ check_all_va_list_escapes (struct stdarg_info *si) |
tree use; |
ssa_op_iter iter; |
+ if (is_gimple_debug (stmt)) |
+ continue; |
+ |
FOR_EACH_SSA_TREE_OPERAND (use, stmt, iter, SSA_OP_ALL_USES) |
{ |
if (! bitmap_bit_p (si->va_list_escape_vars, |
@@ -837,6 +840,8 @@ execute_optimize_stdarg (void) |
continue; |
} |
} |
+ else if (is_gimple_debug (stmt)) |
+ continue; |
/* All other uses of va_list are either va_copy (that is not handled |
in this optimization), taking address of va_list variable or |
@@ -905,8 +910,8 @@ struct gimple_opt_pass pass_stdarg = |
NULL, /* sub */ |
NULL, /* next */ |
0, /* static_pass_number */ |
- 0, /* tv_id */ |
- PROP_cfg | PROP_ssa | PROP_alias, /* properties_required */ |
+ TV_NONE, /* tv_id */ |
+ PROP_cfg | PROP_ssa, /* properties_required */ |
0, /* properties_provided */ |
0, /* properties_destroyed */ |
0, /* todo_flags_start */ |