OSDN Git Service

2010-10-26 Tobias Burnus <burnus@net-b.de>
[pf3gnuchains/gcc-fork.git] / gcc / ipa-pure-const.c
index 0e07e44..334b33c 100644 (file)
@@ -138,7 +138,7 @@ suggest_attribute (int option, tree decl, bool known_finite,
                   struct pointer_set_t *warned_about,
                   const char * attrib_name)
 {
-  if (!option_enabled (option))
+  if (!option_enabled (option, &global_options))
     return warned_about;
   if (TREE_THIS_VOLATILE (decl)
       || (known_finite && function_always_visible_to_compiler_p (decl)))
@@ -427,7 +427,7 @@ worse_state (enum pure_const_state_e *state, bool *looping,
 /* Recognize special cases of builtins that are by themself not pure or const
    but function using them is.  */
 static bool
-special_builtlin_state (enum pure_const_state_e *state, bool *looping,
+special_builtin_state (enum pure_const_state_e *state, bool *looping,
                        tree callee)
 {
   if (DECL_BUILT_IN_CLASS (callee) == BUILT_IN_NORMAL)
@@ -510,7 +510,7 @@ check_call (funct_state local, gimple call, bool ipa)
       enum pure_const_state_e call_state;
       bool call_looping;
 
-      if (special_builtlin_state (&call_state, &call_looping, callee_t))
+      if (special_builtin_state (&call_state, &call_looping, callee_t))
        {
          worse_state (&local->pure_const_state, &local->looping,
                       call_state, call_looping);
@@ -1203,7 +1203,7 @@ propagate_pure_const (void)
                      edge_looping = y_l->looping;
                    }
                }
-             else if (special_builtlin_state (&edge_state, &edge_looping,
+             else if (special_builtin_state (&edge_state, &edge_looping,
                                               y->decl))
                ;
              else