diff options
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 00abf1e7e53..273c6ac864a 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -1177,7 +1177,7 @@ expand_used_vars (void) stack guard: protect-all, alloca used, protected decls present. */ if (flag_stack_protect == 2 || (flag_stack_protect - && (current_function_calls_alloca || has_protected_decls))) + && (cfun->calls_alloca || has_protected_decls))) create_stack_guard (); /* Assign rtl to each variable based on these partitions. */ @@ -1874,7 +1874,7 @@ tree_expand_cfg (void) /* Honor stack protection warnings. */ if (warn_stack_protect) { - if (current_function_calls_alloca) + if (cfun->calls_alloca) warning (OPT_Wstack_protector, "not protecting local variables: variable length buffer"); if (has_short_buffer && !crtl->stack_protect_guard) @@ -1982,10 +1982,10 @@ tree_expand_cfg (void) return 0; } -struct gimple_opt_pass pass_expand = +struct rtl_opt_pass pass_expand = { { - GIMPLE_PASS, + RTL_PASS, "expand", /* name */ NULL, /* gate */ tree_expand_cfg, /* execute */ |