This is the mail archive of the gcc-patches@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]

gc marking fix


We missed two.  This showed up for Jason as corrupted stabs.


r~


        * ggc-common.c (ggc_mark_tree): Mark DECL_SOURCE_FILE and
        DECL_LIVE_RANGE_RTL.

Index: ggc-common.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/ggc-common.c,v
retrieving revision 1.2
diff -c -p -d -r1.2 ggc-common.c
*** ggc-common.c	1999/09/11 19:50:42	1.2
--- ggc-common.c	1999/09/15 01:09:36
*************** ggc_mark_tree (t)
*** 321,326 ****
--- 321,327 ----
    switch (TREE_CODE_CLASS (TREE_CODE (t)))
      {
      case 'd': /* A decl node.  */
+       ggc_mark_string (DECL_SOURCE_FILE (t));
        ggc_mark_tree (DECL_SIZE (t));
        ggc_mark_tree (DECL_NAME (t));
        ggc_mark_tree (DECL_CONTEXT (t));
*************** ggc_mark_tree (t)
*** 332,337 ****
--- 333,339 ----
        ggc_mark_tree (DECL_SECTION_NAME (t));
        ggc_mark_tree (DECL_MACHINE_ATTRIBUTES (t));
        ggc_mark_rtx (DECL_RTL (t));
+       ggc_mark_rtx (DECL_LIVE_RANGE_RTL (t));
        ggc_mark_tree (DECL_VINDEX (t));
        lang_mark_tree (t);
        break;


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