ggc-simple.c (IS_MARKED, [...]): New.
authorRichard Henderson <rth@cygnus.com>
Thu, 9 Sep 1999 10:43:57 +0000 (03:43 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 9 Sep 1999 10:43:57 +0000 (03:43 -0700)
commit9b1b9cc9100dc238f7ad0e1efd87e08bbe7b2957
treed16303cdd66baa43c84c23b85b60dd22943f219e
parent7bfcb180702a371386c621df90269b3ee4298073
ggc-simple.c (IS_MARKED, [...]): New.

        * ggc-simple.c (IS_MARKED, IGNORE_MARK): New.
        (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): New.
        (struct ggc_any): Replace `mark' with `magic_mark'.
        (ggc_alloc_string): Use memcpy, not bcopy.
        (ggc_alloc_any): Set magic_mark.  Update bytes_alloced_since_gc.
        (ggc_free_{rtx,rtvec,tree,string}): Mark inline.
        (ggc_free_any): New.
        (ggc_mark_string): Use IGNORE_MARK.  Calc back to struct gcc_string.
        (ggc_mark): Use IGNORE_MARK.  Abort if magic doesn't match.
        (ggc_collect): Re-enable collection avoidance.  Use GGC_ANY_MARK.
        Use IS_MARKED. Use ggc_free_any.

From-SVN: r29231
gcc/ChangeLog
gcc/ggc-simple.c