OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Fariborz to my last change.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
tree-dump.c
diff --git
a/gcc/tree-dump.c
b/gcc/tree-dump.c
index
2e945e4
..
c42e33f
100644
(file)
--- a/
gcc/tree-dump.c
+++ b/
gcc/tree-dump.c
@@
-251,20
+251,18
@@
dequeue_and_dump (dump_info_p di)
if (dni->binfo_p)
{
unsigned ix;
if (dni->binfo_p)
{
unsigned ix;
- tree bases = BINFO_BASETYPES (t);
- unsigned n_bases = bases ? TREE_VEC_LENGTH (bases): 0;
- tree accesses = BINFO_BASEACCESSES (t);
+ tree base;
+ VEC (tree) *accesses = BINFO_BASE_ACCESSES (t);
dump_child ("type", BINFO_TYPE (t));
dump_child ("type", BINFO_TYPE (t));
- if (
TREE_VIA_VIRTUAL
(t))
+ if (
BINFO_VIRTUAL_P
(t))
dump_string (di, "virt");
dump_string (di, "virt");
- dump_int (di, "bases",
n_bases
);
- for (ix = 0;
ix != n_bases
; ix++)
+ dump_int (di, "bases",
BINFO_N_BASE_BINFOS (t)
);
+ for (ix = 0;
BINFO_BASE_ITERATE (t, ix, base)
; ix++)
{
{
- tree base = TREE_VEC_ELT (bases, ix);
- tree access = (accesses ? TREE_VEC_ELT (accesses, ix)
+ tree access = (accesses ? VEC_index (tree, accesses, ix)
: access_public_node);
const char *string = NULL;
: access_public_node);
const char *string = NULL;