OSDN Git Service

PR target/43471
[pf3gnuchains/gcc-fork.git] / gcc / stack-ptr-mod.c
index e37fcc3..e7d92a5 100644 (file)
@@ -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)
@@ -95,13 +95,13 @@ struct rtl_opt_pass pass_stack_ptr_mod =
 {
  {
   RTL_PASS,
-  NULL,                                        /* name */
+  "*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 */