mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 09:58:59 +08:00
* tree.h (BINFO_N_BASETYPES): New macro.
From-SVN: r31162
This commit is contained in:
parent
0533d788e5
commit
5e1677bcb0
@ -1,3 +1,7 @@
|
||||
2000-01-01 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* tree.h (BINFO_N_BASETYPES): New macro.
|
||||
|
||||
2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
|
||||
|
||||
* expmed.c (emit_store_flag): Prevent losing a pending stack
|
||||
|
@ -1018,6 +1018,10 @@ struct tree_type
|
||||
#define BINFO_BASETYPES(NODE) TREE_VEC_ELT ((NODE), 4)
|
||||
#define TYPE_BINFO_BASETYPES(NODE) TREE_VEC_ELT (TYPE_BINFO (NODE), 4)
|
||||
|
||||
/* The number of basetypes for NODE. */
|
||||
#define BINFO_N_BASETYPES(NODE) \
|
||||
(BINFO_BASETYPES (NODE) ? TREE_VEC_LENGTH (BINFO_BASETYPES (NODE)) : 0)
|
||||
|
||||
/* Accessor macro to get to the Nth basetype of this basetype. */
|
||||
#define BINFO_BASETYPE(NODE,N) TREE_VEC_ELT (BINFO_BASETYPES (NODE), (N))
|
||||
#define TYPE_BINFO_BASETYPE(NODE,N) BINFO_TYPE (TREE_VEC_ELT (BINFO_BASETYPES (TYPE_BINFO (NODE)), (N)))
|
||||
|
Loading…
Reference in New Issue
Block a user