aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>2000-05-19 00:52:10 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-05-19 00:52:10 +0000
commit062edaed2aba02add8b88f27823ed73a2dd0c2b6 (patch)
tree3b96128ffdf26ff21ff1e7362ef96f135bc368ce /gcc
parentc1f76317e44bfa2068055ac31b1585d3386cb913 (diff)
downloadgcc-062edaed2aba02add8b88f27823ed73a2dd0c2b6.zip
gcc-062edaed2aba02add8b88f27823ed73a2dd0c2b6.tar.gz
gcc-062edaed2aba02add8b88f27823ed73a2dd0c2b6.tar.bz2
jcf-write.c (generate_classfile): Scan the source_file for slashes with the right pointer variable.
2000-05-18 Alexandre Oliva <oliva@lsd.ic.unicamp.br> * jcf-write.c (generate_classfile): Scan the source_file for slashes with the right pointer variable. From-SVN: r34006
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/jcf-write.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 8a86067..0fe7ad8 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-18 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
+
+ * jcf-write.c (generate_classfile): Scan the source_file for
+ slashes with the right pointer variable.
+
Wed May 17 17:27:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
* lang.c (lang_decode_option): Update -Wunused flags by calling
diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c
index 3b93e51..ac3b42e 100644
--- a/gcc/java/jcf-write.c
+++ b/gcc/java/jcf-write.c
@@ -3066,7 +3066,7 @@ generate_classfile (clas, state)
source_file = DECL_SOURCE_FILE (TYPE_NAME (clas));
for (s = source_file; ; s++)
{
- char ch = *ptr;
+ char ch = *s;
if (ch == '\0')
break;
if (ch == '/' || ch == '\\')