Small tweak to expand_used_vars
This completes the replacement of DECL_ATTRIBUTES (current_function_decl) with the attribs local variable. gcc/ * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
This commit is contained in:
parent
9851a1631f
commit
cecdff844a
@ -2294,22 +2294,19 @@ expand_used_vars (bitmap forced_stack_vars)
|
|||||||
if (gen_stack_protect_signal
|
if (gen_stack_protect_signal
|
||||||
|| cfun->calls_alloca
|
|| cfun->calls_alloca
|
||||||
|| has_protected_decls
|
|| has_protected_decls
|
||||||
|| lookup_attribute ("stack_protect",
|
|| lookup_attribute ("stack_protect", attribs))
|
||||||
DECL_ATTRIBUTES (current_function_decl)))
|
|
||||||
create_stack_guard ();
|
create_stack_guard ();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SPCT_FLAG_DEFAULT:
|
case SPCT_FLAG_DEFAULT:
|
||||||
if (cfun->calls_alloca
|
if (cfun->calls_alloca
|
||||||
|| has_protected_decls
|
|| has_protected_decls
|
||||||
|| lookup_attribute ("stack_protect",
|
|| lookup_attribute ("stack_protect", attribs))
|
||||||
DECL_ATTRIBUTES (current_function_decl)))
|
|
||||||
create_stack_guard ();
|
create_stack_guard ();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SPCT_FLAG_EXPLICIT:
|
case SPCT_FLAG_EXPLICIT:
|
||||||
if (lookup_attribute ("stack_protect",
|
if (lookup_attribute ("stack_protect", attribs))
|
||||||
DECL_ATTRIBUTES (current_function_decl)))
|
|
||||||
create_stack_guard ();
|
create_stack_guard ();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user