diff options
| author | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-10 20:18:23 +0000 |
|---|---|---|
| committer | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-10 20:18:23 +0000 |
| commit | 704b4bb5cba32e424ee71309271f1bef040d105d (patch) | |
| tree | d01607681615a820a91cdc672b8362e0859403d3 | |
| parent | 625744bbf74ebc54d22201da7c9e64ccc026f29c (diff) | |
| download | ppe42-gcc-704b4bb5cba32e424ee71309271f1bef040d105d.tar.gz ppe42-gcc-704b4bb5cba32e424ee71309271f1bef040d105d.zip | |
2000-12-07 Mo DeJong <mdejong@redhat.com>
* jcf-io.c (find_class): Correct the logic that tests to see if a
.java file is newer than its .class file. The compiler was
incorrectly printing a warning when file mod times were equal.
(http://gcc.gnu.org/ml/gcc-patches/2000-12/msg00530.html)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38177 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/java/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/java/jcf-io.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index c5fcd7980d8..d28b5137232 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -8,6 +8,12 @@ * zipfile.h (ZipDirectory): Declare size, uncompressed_size, filestart and filename_length as int values. +2000-12-07 Mo DeJong <mdejong@redhat.com> + + * jcf-io.c (find_class): Correct the logic that tests to see if a + .java file is newer than its .class file. The compiler was + incorrectly printing a warning when file mod times were equal. + 2000-12-07 Zack Weinberg <zack@wolery.stanford.edu> * jvgenmain.c: Use ISPRINT not isascii. diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c index 03ea7d75acf..71b893cb199 100644 --- a/gcc/java/jcf-io.c +++ b/gcc/java/jcf-io.c @@ -394,7 +394,7 @@ DEFUN(find_class, (classname, classname_length, jcf, source_ok), source file instead. There should be a flag to allow people have the class file picked up no matter what. FIXME. */ - if (! java && ! class && java_buf.st_mtime >= class_buf.st_mtime) + if (! java && ! class && java_buf.st_mtime > class_buf.st_mtime) { char *stripped_class_name = xstrdup (classname); int i = strlen (stripped_class_name); |

