diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2000-09-07 18:24:41 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-09-07 11:24:41 -0700 |
commit | 3e99f50c2be1e2570b805f70ef54c9d0c711dea9 (patch) | |
tree | 86dc38c056cfa5db38964cc7c76daaa33ffc223d /gcc | |
parent | 2496f0b583a88c14572fa4095f0ff0017cdbb8c1 (diff) | |
download | gcc-3e99f50c2be1e2570b805f70ef54c9d0c711dea9.zip gcc-3e99f50c2be1e2570b805f70ef54c9d0c711dea9.tar.gz gcc-3e99f50c2be1e2570b805f70ef54c9d0c711dea9.tar.bz2 |
verify.c (merge_types): Load the types to merge if necessary.
2000-09-05 Alexandre Petit-Bianco <apbianco@cygnus.com>
* verify.c (merge_types): Load the types to merge if necessary.
(http://gcc.gnu.org/ml/gcc-patches/2000-09/msg00245.html)
From-SVN: r36243
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/java/verify.c | 14 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 425f801..d8f85fc 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -2,6 +2,10 @@ * lang-specs.h: Also recognize `-femit-class-files'. +2000-09-05 Alexandre Petit-Bianco <apbianco@cygnus.com> + + * verify.c (merge_types): Load the types to merge if necessary. + 2000-09-02 Anthony Green <green@redhat.com> * jcf-io.c: Include zlib.h. diff --git a/gcc/java/verify.c b/gcc/java/verify.c index 4c2e4c8..fcaf7f3 100644 --- a/gcc/java/verify.c +++ b/gcc/java/verify.c @@ -131,6 +131,20 @@ merge_types (type1, type2) tt1 = HANDLE_TO_CLASS_TYPE (TREE_TYPE (type1)); tt2 = HANDLE_TO_CLASS_TYPE (TREE_TYPE (type2)); + /* If tt{1,2} haven't been properly loaded, now is a good time + to do it. */ + if (!TYPE_SIZE (tt1)) + { + load_class (tt1, 1); + safe_layout_class (tt1); + } + + if (!TYPE_SIZE (tt2)) + { + load_class (tt2, 1); + safe_layout_class (tt2); + } + if (TYPE_ARRAY_P (tt1) || TYPE_ARRAY_P (tt2)) { if (TYPE_ARRAY_P (tt1) == TYPE_ARRAY_P (tt2)) |