aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-04-01 05:08:51 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-04-01 05:08:51 +0000
commitd875078437f3e2a604d702281b742b591bfbe7d0 (patch)
treee383909e50691324aab4ef591c778d38b3231595 /gcc/ggc.h
parentd544bc3983fbc512ee03566672751c07f71e1323 (diff)
downloadgcc-d875078437f3e2a604d702281b742b591bfbe7d0.zip
gcc-d875078437f3e2a604d702281b742b591bfbe7d0.tar.gz
gcc-d875078437f3e2a604d702281b742b591bfbe7d0.tar.bz2
varray.h (VARRAY_CHECK): Const-ify.
* 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. From-SVN: r51677
Diffstat (limited to 'gcc/ggc.h')
-rw-r--r--gcc/ggc.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/ggc.h b/gcc/ggc.h
index 5933084..917b65e 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)