From d7db66465081020447daa7e7feec774440d00f96 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sat, 4 Sep 1999 20:49:52 -0700 Subject: Makefile.in (stor-layout.o): Depend on ggc.h. * Makefile.in (stor-layout.o): Depend on ggc.h. (expr.o): Depend on ggc.h. (profile.o): Depend on ggc.h. (stor-layout.o): Depend on ggc.h. * emit-rtl.c (init_emit_once): Add gc roots. * expr.c: Include ggc.h. (emit_block_move): Add gc roots. (clear_storage): Likewise. * expr.h (init_stor_layout_once): New function. * profile.c: Include ggc.h. (init_arc_profiler): profiler_label is a root. * scan.c (make_sstring_space): Trust xrealloc to function correctly with first parameter NULL. * stor-layout.c: Include ggc.h. (set_sizetype): Add gc root. (init_stor_layout_once): New function. * toplev.c (compile_file): Call it. Co-Authored-By: Bernd Schmidt Co-Authored-By: Mark Mitchell From-SVN: r29122 --- gcc/profile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/profile.c') diff --git a/gcc/profile.c b/gcc/profile.c index f39ea9c..98be128 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -54,6 +54,7 @@ Boston, MA 02111-1307, USA. */ #include "output.h" #include "gcov-io.h" #include "toplev.h" +#include "ggc.h" /* One of these is dynamically created whenever we identify an arc in the function. */ @@ -1544,6 +1545,7 @@ init_arc_profiler () char *name = xmalloc (20); ASM_GENERATE_INTERNAL_LABEL (name, "LPBX", 2); profiler_label = gen_rtx_SYMBOL_REF (Pmode, name); + ggc_add_rtx_root (&profiler_label, 1); } /* Output instructions as RTL to increment the arc execution count. */ -- cgit v1.1