diff options
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index e1b332f..527de82 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -11971,7 +11971,6 @@ dwarf2out_abstract_function (tree decl) { dw_die_ref old_die; tree save_fn; - struct function *save_cfun; tree context; int was_abstract = DECL_ABSTRACT (decl); @@ -11995,9 +11994,8 @@ dwarf2out_abstract_function (tree decl) /* Pretend we've just finished compiling this function. */ save_fn = current_function_decl; - save_cfun = cfun; current_function_decl = decl; - cfun = DECL_STRUCT_FUNCTION (decl); + push_cfun (DECL_STRUCT_FUNCTION (decl)); set_decl_abstract_flags (decl, 1); dwarf2out_decl (decl); @@ -12005,7 +12003,7 @@ dwarf2out_abstract_function (tree decl) set_decl_abstract_flags (decl, 0); current_function_decl = save_fn; - cfun = save_cfun; + pop_cfun (); } /* Helper function of premark_used_types() which gets called through |