aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>1999-06-07 17:08:34 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>1999-06-07 10:08:34 -0700
commitfe0e4d76c24b0047931a7a3503b2da7e6d3a23a6 (patch)
tree35587713c399009130e2432960d8cea2039568e3 /gcc
parentbfec1a842feaaff7d4bda47e35f22de1e8c4f373 (diff)
downloadgcc-fe0e4d76c24b0047931a7a3503b2da7e6d3a23a6.zip
gcc-fe0e4d76c24b0047931a7a3503b2da7e6d3a23a6.tar.gz
gcc-fe0e4d76c24b0047931a7a3503b2da7e6d3a23a6.tar.bz2
parse.y (note_possible_classname): Mark returned node with QUALIFIED_P only if the original class name contained a '/'.
Mon Jun 7 16:09:51 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (note_possible_classname): Mark returned node with QUALIFIED_P only if the original class name contained a '/'. From-SVN: r27396
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/parse.c2
-rw-r--r--gcc/java/parse.y2
3 files changed, 7 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index c396a80..de871e6 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jun 7 16:09:51 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
+
+ * parse.y (note_possible_classname): Mark returned node with
+ QUALIFIED_P only if the original class name contained a '/'.
+
Sat Jun 5 11:46:59 1999 Anthony Green <green@cygnus.com>
* Make-lang.in (gcjh): More parallel build fixes.
diff --git a/gcc/java/parse.c b/gcc/java/parse.c
index 1606859..e0aa0c6 100644
--- a/gcc/java/parse.c
+++ b/gcc/java/parse.c
@@ -7621,7 +7621,7 @@ note_possible_classname (name, len)
return 0;
node = ident_subst (name, len, "", '/', '.', "");
IS_A_CLASSFILE_NAME (node) = 1; /* Or soon to be */
- QUALIFIED_P (node) = 1; /* As soon as we turn / into . */
+ QUALIFIED_P (node) = strchr (name, '/') ? 1 : 0;
return 1;
}
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index 5a5c674..b2982b0 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -5036,7 +5036,7 @@ note_possible_classname (name, len)
return 0;
node = ident_subst (name, len, "", '/', '.', "");
IS_A_CLASSFILE_NAME (node) = 1; /* Or soon to be */
- QUALIFIED_P (node) = 1; /* As soon as we turn / into . */
+ QUALIFIED_P (node) = strchr (name, '/') ? 1 : 0;
return 1;
}