diff options
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc/function.c b/gcc/function.c index ccf37a1..8e8b907 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -3763,22 +3763,12 @@ DEF_VEC_ALLOC_P(function_p,heap); static VEC(function_p,heap) *cfun_stack; -/* We save the value of in_system_header here when pushing the first - function on the cfun stack, and we restore it from here when - popping the last function. */ - -static bool saved_in_system_header; - /* Push the current cfun onto the stack, and set cfun to new_cfun. */ void push_cfun (struct function *new_cfun) { - if (cfun == NULL) - saved_in_system_header = in_system_header; VEC_safe_push (function_p, heap, cfun_stack, cfun); - if (new_cfun) - in_system_header = DECL_IN_SYSTEM_HEADER (new_cfun->decl); set_cfun (new_cfun); } @@ -3788,8 +3778,6 @@ void pop_cfun (void) { struct function *new_cfun = VEC_pop (function_p, cfun_stack); - in_system_header = ((new_cfun == NULL) ? saved_in_system_header - : DECL_IN_SYSTEM_HEADER (new_cfun->decl)); set_cfun (new_cfun); } @@ -3867,11 +3855,7 @@ allocate_struct_function (tree fndecl, bool abstract_p) void push_struct_function (tree fndecl) { - if (cfun == NULL) - saved_in_system_header = in_system_header; VEC_safe_push (function_p, heap, cfun_stack, cfun); - if (fndecl) - in_system_header = DECL_IN_SYSTEM_HEADER (fndecl); allocate_struct_function (fndecl, false); } |