diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-13 06:41:07 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-13 06:41:07 +0000 |
commit | 4ee9c6840ad3fc92a9034343278a1e476ad6872a (patch) | |
tree | a2568888a519c077427b133de9ece5879a8484a5 /gcc/et-forest.c | |
parent | ebb338380ab170c91e64d38038e6b5ce930d69a1 (diff) | |
download | gcc-4ee9c6840ad3fc92a9034343278a1e476ad6872a.tar.gz |
Merge tree-ssa-20020619-branch into mainline.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81764 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/et-forest.c')
-rw-r--r-- | gcc/et-forest.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/et-forest.c b/gcc/et-forest.c index e65ccda6005..9b0997188bd 100644 --- a/gcc/et-forest.c +++ b/gcc/et-forest.c @@ -206,9 +206,13 @@ et_check_tree_sanity (struct et_occ *occ) /* For recording the paths. */ +/* An ad-hoc constant; if the function has more blocks, this won't work, + but since it is used for debugging only, it does not matter. */ +#define MAX_NODES 100000 + static int len; -static void *datas[100000]; -static int depths[100000]; +static void *datas[MAX_NODES]; +static int depths[MAX_NODES]; /* Records the path represented by OCC, with depth incremented by DEPTH. */ @@ -228,6 +232,10 @@ record_path_before_1 (struct et_occ *occ, int depth) } fprintf (stderr, "%d (%d); ", ((basic_block) occ->of->data)->index, depth); + + if (len >= MAX_NODES) + abort (); + depths[len] = depth; datas[len] = occ->of; len++; |