From 2a77af27d10f31b88ab44e8eb08f82b9186631b0 Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Sun, 22 Dec 2002 06:42:16 +0000 Subject: [PATCH] integrate.c (output_inline_function): Don't hold private pointers to 'struct function' over GC calls. * integrate.c (output_inline_function): Don't hold private pointers to 'struct function' over GC calls. From-SVN: r60396 --- gcc/ChangeLog | 5 +++++ gcc/integrate.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ed993b01860..807897d060e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-12-21 Geoffrey Keating + + * integrate.c (output_inline_function): Don't hold private + pointers to 'struct function' over GC calls. + 2002-12-21 Kaz kojima * config/sh/lib1funcs.asm (__fpscr_values): Conditionalize with diff --git a/gcc/integrate.c b/gcc/integrate.c index eace82abe94..7e1f29f5bb0 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -3004,15 +3004,17 @@ set_decl_abstract_flags (decl, setting) from its DECL_SAVED_INSNS. Used for inline functions that are output at end of compilation instead of where they came in the source. */ +static GTY(()) struct function *old_cfun; + void output_inline_function (fndecl) tree fndecl; { - struct function *old_cfun = cfun; enum debug_info_type old_write_symbols = write_symbols; const struct gcc_debug_hooks *const old_debug_hooks = debug_hooks; struct function *f = DECL_SAVED_INSNS (fndecl); + old_cfun = cfun; cfun = f; current_function_decl = fndecl; -- 2.30.2