aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/mangle.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/mangle.c')
-rw-r--r--gcc/java/mangle.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/java/mangle.c b/gcc/java/mangle.c
index f0bda0e..aa95086 100644
--- a/gcc/java/mangle.c
+++ b/gcc/java/mangle.c
@@ -327,8 +327,20 @@ find_compression_record_match (type, next_current)
{
match = i = j;
saved_current = current;
+ i++;
break;
}
+ else
+ {
+ /* We don't want to match an element that appears in the middle
+ of a package name, so skip forward to the next complete type name.
+ IDENTIFIER_NODEs are partial package names while RECORD_TYPEs
+ represent complete type names. */
+ while (j < compression_next
+ && TREE_CODE (TREE_VEC_ELT (compression_table, j)) ==
+ IDENTIFIER_NODE)
+ j++;
+ }
}
if (!next_current)