This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ggc -vs- gcc/cp/init.c


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]