diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2003-07-10 11:38:18 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2003-07-10 11:38:18 +0000 |
commit | bcda12f4f4110d1376d822112c9c00d6287471a6 (patch) | |
tree | 384851f1df2b0ff1a6f75866077508884ffa365a /gcc/ggc.h | |
parent | 3dbb446ebd77a551c63b958faca007983ee33231 (diff) | |
download | gcc-bcda12f4f4110d1376d822112c9c00d6287471a6.tar.gz |
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.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/ggc.h b/gcc/ggc.h index b1391a80457..2c56a3c525e 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) |