diff options
Diffstat (limited to 'gcc/ctfout.cc')
-rw-r--r-- | gcc/ctfout.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/ctfout.cc b/gcc/ctfout.cc index a23d377..28a873b 100644 --- a/gcc/ctfout.cc +++ b/gcc/ctfout.cc @@ -173,9 +173,7 @@ ctf_calc_num_vbytes (ctf_dtdef_ref ctftype) static void ctf_list_add_ctf_vars (ctf_container_ref ctfc, ctf_dvdef_ref var) { - /* FIXME - static may not fly with multiple CUs. */ - static int num_vars_added = 0; - ctfc->ctfc_vars_list[num_vars_added++] = var; + ctfc->ctfc_vars_list[ctfc->ctfc_vars_list_count++] = var; } /* Initialize the various sections and labels for CTF output. */ |