diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-01 05:08:51 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-01 05:08:51 +0000 |
commit | 182b8a5c2e061ff0ab0353e03635c053b2de8a66 (patch) | |
tree | e383909e50691324aab4ef591c778d38b3231595 /gcc/ggc.h | |
parent | 861589fec61df968f37785d48ebc33b665ae2d53 (diff) | |
download | gcc-182b8a5c2e061ff0ab0353e03635c053b2de8a66.tar.gz |
* varray.h (VARRAY_CHECK): Const-ify.
* ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
ggc_mark_rtvec, ggc_mark): Const-ify.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51677 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc.h')
-rw-r--r-- | gcc/ggc.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/ggc.h b/gcc/ggc.h index 5933084720f..917b65e9a7f 100644 --- a/gcc/ggc.h +++ b/gcc/ggc.h @@ -88,35 +88,35 @@ extern void ggc_mark_rtvec_children PARAMS ((struct rtvec_def *)); #define ggc_mark_rtx(EXPR) \ do { \ - rtx r__ = (EXPR); \ + rtx const r__ = (EXPR); \ if (ggc_test_and_set_mark (r__)) \ ggc_mark_rtx_children (r__); \ } while (0) #define ggc_mark_tree(EXPR) \ do { \ - tree t__ = (EXPR); \ + tree const t__ = (EXPR); \ if (ggc_test_and_set_mark (t__)) \ VARRAY_PUSH_TREE (ggc_pending_trees, t__); \ } while (0) #define ggc_mark_nonnull_tree(EXPR) \ do { \ - tree t__ = (EXPR); \ + tree const t__ = (EXPR); \ if (! ggc_set_mark (t__)) \ VARRAY_PUSH_TREE (ggc_pending_trees, t__); \ } while (0) #define ggc_mark_rtvec(EXPR) \ do { \ - rtvec v__ = (EXPR); \ + rtvec const v__ = (EXPR); \ if (ggc_test_and_set_mark (v__)) \ ggc_mark_rtvec_children (v__); \ } while (0) #define ggc_mark(EXPR) \ do { \ - const void *a__ = (EXPR); \ + const void *const a__ = (EXPR); \ if (a__ != NULL) \ ggc_set_mark (a__); \ } while (0) |