summaryrefslogtreecommitdiff
path: root/gcc/varray.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/varray.h
parentd544bc3983fbc512ee03566672751c07f71e1323 (diff)
downloadgcc-d875078437f3e2a604d702281b742b591bfbe7d0.tar.gz
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/varray.h')
-rw-r--r--gcc/varray.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/varray.h b/gcc/varray.h
index 66c4d39a3a6..130553bb4d2 100644
--- a/gcc/varray.h
+++ b/gcc/varray.h
@@ -177,8 +177,8 @@ extern void varray_check_failed PARAMS ((varray_type, size_t,
const char *, int,
const char *)) ATTRIBUTE_NORETURN;
#define VARRAY_CHECK(VA, N, T) __extension__ \
-(*({ varray_type _va = VA; \
- size_t _n = N; \
+(*({ varray_type const _va = (VA); \
+ const size_t _n = (N); \
if (_n >= _va->num_elements) \
varray_check_failed (_va, _n, __FILE__, __LINE__, __FUNCTION__); \
&_va->data.T[_n]; }))