OSDN Git Service

* ggc-simple.c (IS_MARKED, IGNORE_MARK): New.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Sep 1999 10:43:57 +0000 (10:43 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Sep 1999 10:43:57 +0000 (10:43 +0000)
commitc47fa274061fd5bee00ba6bba16900211cae2616
treed16303cdd66baa43c84c23b85b60dd22943f219e
parent9996eb1439576afc4f61d88983f3c4399e19fd7e
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29231 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ggc-simple.c