X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fstack-ptr-mod.c;h=e7d92a5e7b9f9c6aa9fb6d266d6fa1c61deeb210;hb=046f323efd9149bb5d2d5638466e98ed238b7635;hp=a5c85a5247c4ecfbb200b2c166e9d4fcd60d21e8;hpb=81a410b1e4f861bb1eb31c7fa7daedf6bf70abc4;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/stack-ptr-mod.c b/gcc/stack-ptr-mod.c index a5c85a5247c..e7d92a5e7b9 100644 --- a/gcc/stack-ptr-mod.c +++ b/gcc/stack-ptr-mod.c @@ -1,5 +1,5 @@ -/* Discover if the stack pointer is modified in a function. - Copyright (C) 2007 +/* Discover if the stack pointer is modified in a function. + Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. This file is part of GCC. @@ -57,7 +57,7 @@ notice_stack_pointer_modification (void) /* Assume that the stack pointer is unchanging if alloca hasn't been used. */ - current_function_sp_is_unchanging = !current_function_calls_alloca; + current_function_sp_is_unchanging = !cfun->calls_alloca; if (current_function_sp_is_unchanging) FOR_EACH_BB (bb) FOR_BB_INSNS (bb, insn) @@ -91,19 +91,21 @@ rest_of_handle_stack_ptr_mod (void) return 0; } -struct tree_opt_pass pass_stack_ptr_mod = +struct rtl_opt_pass pass_stack_ptr_mod = { - NULL, /* name */ + { + RTL_PASS, + "*stack_ptr_mod", /* name */ NULL, /* gate */ rest_of_handle_stack_ptr_mod, /* execute */ NULL, /* sub */ NULL, /* next */ 0, /* static_pass_number */ - 0, /* tv_id */ + TV_NONE, /* tv_id */ 0, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - 0, /* todo_flags_finish */ - 0 /* letter */ + 0 /* todo_flags_finish */ + } };