This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
ggc -vs- gcc/cp/init.c
- To: GCC Hackers <gcc at gcc dot gnu dot org>
- Subject: ggc -vs- gcc/cp/init.c
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 26 Feb 2000 17:12:12 -0700
- Reply-To: tromey at cygnus dot com
gcc/cp/init.c has a static `tree' variable which is not added as a
root. From function build_java_class_ref:
static tree CL_prefix = NULL_TREE;
if (CL_prefix == NULL_TREE)
CL_prefix = get_identifier("_CL_");
Shouldn't this be added as a root, say within the `if'?
if (CL_prefix == NULL_TREE)
{
CL_prefix = get_identifier ("_CL_");
ggc_add_tree_root (&CL_prefix, 1);
}
... or do I misunderstand something?
Tom