diff options
author | Alexandre Petit-Bianco <apbianco@redhat.com> | 2001-07-11 00:33:43 -0700 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2001-07-11 00:33:43 -0700 |
commit | 2df37a59e2e67d2f044c8609d12d5263b52b21bc (patch) | |
tree | 0a8efa7d178e22f6ccfca66a5e9ef32573adf206 /gcc/java/jcf-io.c | |
parent | 3a2a1b5264c1610b99b992f923261b5c80f96bf9 (diff) | |
download | gcc-2df37a59e2e67d2f044c8609d12d5263b52b21bc.zip gcc-2df37a59e2e67d2f044c8609d12d5263b52b21bc.tar.gz gcc-2df37a59e2e67d2f044c8609d12d5263b52b21bc.tar.bz2 |
[multiple changes]
2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
* lang-specs.h: Forbit the use if `-femit-class-file{s}' without
`-fsyntax-only.' Fixes PR java/3248
2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
* jcf-io.c (find_class): Clarified error message. Fixes PR java/2603
2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
* parse.h (INNER_ENCLOSING_SCOPE_CHECK): No `this' is fine if the
current function is static. Fixes PR java/1970
2001-07-09 Alexandre Petit-Bianco <apbianco@redhat.com>
* parse.y (patch_method_invocation): Add enclosing context to ctor
calls if necessary. Fixes PR java/2953
2001-07-09 Alexandre Petit-Bianco <apbianco@redhat.com>
* parse.y (resolve_package): Abort if qualified expression member
isn't right.
(qualify_ambiguous_name): Don't qualify as type if `this' in use.
Fixes PR java/1391
(http://gcc.gnu.org/ml/gcc-patches/2001-07/msg00701.html )
From-SVN: r43927
Diffstat (limited to 'gcc/java/jcf-io.c')
-rw-r--r-- | gcc/java/jcf-io.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c index f254438..f8a0f59 100644 --- a/gcc/java/jcf-io.c +++ b/gcc/java/jcf-io.c @@ -405,16 +405,8 @@ DEFUN(find_class, (classname, classname_length, jcf, source_ok), up no matter what. FIXME. */ if (! java && ! class && java_buf.st_mtime > class_buf.st_mtime) { - char *stripped_class_name = xstrdup (classname); - int i = strlen (stripped_class_name); - - while (stripped_class_name [i] != '.') - i--; - - stripped_class_name [i] = '\0'; if (flag_newer) - warning ("Source file for class `%s' is newer than its matching class file. Source file used instead", stripped_class_name); - free (stripped_class_name); + warning ("Source file for class `%s' is newer than its matching class file. Source file `%s' used instead", classname, java_buffer); class = -1; } |