aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>2000-04-17 02:56:52 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-04-17 02:56:52 +0000
commit3e0768f05e3f89259f99d95e0a76ae612cfcff09 (patch)
tree0f51a4e262a36eec25a7cceb476188184ed69c38 /gcc
parentbd66587eedf69acb429127b38fef16ba83c99f22 (diff)
downloadgcc-3e0768f05e3f89259f99d95e0a76ae612cfcff09.zip
gcc-3e0768f05e3f89259f99d95e0a76ae612cfcff09.tar.gz
gcc-3e0768f05e3f89259f99d95e0a76ae612cfcff09.tar.bz2
re GNATS gcj/205 (gcjh confused about similar method and attribute names)
* gjavah.c (decompile_method): Use print_field_name. Fixes PR gcj/205. From-SVN: r33198
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/gjavah.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 8123c23..cf4728b 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-16 Tom Tromey <tromey@cygnus.com>
+
+ * gjavah.c (decompile_method): Use print_field_name.
+ Fixes PR gcj/205.
+
2000-04-05 Tom Tromey <tromey@cygnus.com>
Fix for PR gcj/140:
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c
index 4c36e87..436553c 100644
--- a/gcc/java/gjavah.c
+++ b/gcc/java/gjavah.c
@@ -457,7 +457,6 @@ get_field_name (jcf, name_index, flags)
char *override;
const char *tmpconstptr;
-
if (name_is_method_p (name, length))
{
/* This field name matches a method. So override the name with
@@ -758,7 +757,8 @@ decompile_method (out, jcf, code_len)
name_and_type = JPOOL_USHORT2 (jcf, index);
/* FIXME: ensure that tag is CONSTANT_NameAndType. */
name = JPOOL_USHORT1 (jcf, name_and_type);
- print_name (out, jcf, name);
+ /* FIXME: flags. */
+ print_field_name (out, jcf, name, 0);
fputs ("; }", out);
decompiled = 1;
}