diff options
Diffstat (limited to 'gcc/profile.c')
-rw-r--r-- | gcc/profile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/profile.c b/gcc/profile.c index 8f7d5ef97a6..8470a1d2aab 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -1258,7 +1258,7 @@ end_branch_prob () /* The label used by the edge profiling code. */ -static rtx profiler_label; +static GTY(()) rtx profiler_label; /* Initialize the profiler_label. */ @@ -1269,7 +1269,6 @@ init_edge_profiler () char buf[20]; ASM_GENERATE_INTERNAL_LABEL (buf, "LPBX", 2); profiler_label = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (buf)); - ggc_add_rtx_root (&profiler_label, 1); } /* Output instructions as RTL to increment the edge execution count. */ @@ -1386,3 +1385,5 @@ output_func_start_profiler () (* targetm.asm_out.constructor) (XEXP (DECL_RTL (fndecl), 0), DEFAULT_INIT_PRIORITY); } + +#include "gt-profile.h" |