aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc.h
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2003-07-10 11:38:18 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2003-07-10 11:38:18 +0000
commitbcda12f4f4110d1376d822112c9c00d6287471a6 (patch)
tree384851f1df2b0ff1a6f75866077508884ffa365a /gcc/ggc.h
parent3dbb446ebd77a551c63b958faca007983ee33231 (diff)
downloadgcc-bcda12f4f4110d1376d822112c9c00d6287471a6.zip
gcc-bcda12f4f4110d1376d822112c9c00d6287471a6.tar.gz
gcc-bcda12f4f4110d1376d822112c9c00d6287471a6.tar.bz2
ggc.h, [...]: Use `rtx' instead of `struct rtx_def *'...
2003-07-10 Steven Bosscher <steven@gcc.gnu.org> * ggc.h, integrate.h, langhooks.h, real.h, toplev.h: Use `rtx' instead of `struct rtx_def *', `rtvec' instead of `struct rtvec_dev *' and `tree' instead of `union tree_node *' in function prototypes. * varray.h (const_equiv_data): Likewise for fields. (varray_data_tag): Likewise. * output.h: Likewise, and don't forward declare union tree_node. * emit_rtl.c (const_int_htab_hash): Cast to `rtx' instead of `struct rtxvec *'. * print-tree.c (print_node): Likewise. * reload1.c: Don't redeclare current_function_decl, tree.h is included in this file. From-SVN: r69183
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 b1391a8..2c56a3c 100644
--- a/gcc/ggc.h
+++ b/gcc/ggc.h
@@ -197,14 +197,14 @@ extern void *ggc_realloc (void *, size_t);
extern void *ggc_calloc (size_t, size_t);
#define ggc_alloc_rtx(NSLOTS) \
- ((struct rtx_def *) ggc_alloc (sizeof (struct rtx_def) \
- + ((NSLOTS) - 1) * sizeof (rtunion)))
+ ((rtx) ggc_alloc (sizeof (struct rtx_def) \
+ + ((NSLOTS) - 1) * sizeof (rtunion)))
#define ggc_alloc_rtvec(NELT) \
- ((struct rtvec_def *) ggc_alloc (sizeof (struct rtvec_def) \
- + ((NELT) - 1) * sizeof (rtx)))
+ ((rtvec) ggc_alloc (sizeof (struct rtvec_def) \
+ + ((NELT) - 1) * sizeof (rtx)))
-#define ggc_alloc_tree(LENGTH) ((union tree_node *) ggc_alloc (LENGTH))
+#define ggc_alloc_tree(LENGTH) ((tree) ggc_alloc (LENGTH))
#define htab_create_ggc(SIZE, HASH, EQ, DEL) \
htab_create_alloc (SIZE, HASH, EQ, DEL, ggc_calloc, NULL)