diff options
author | Mo DeJong <mdejong@redhat.com> | 2000-12-10 20:18:23 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-12-10 12:18:23 -0800 |
commit | 8000caee88af66730c50aa91dab4e886df972e43 (patch) | |
tree | d01607681615a820a91cdc672b8362e0859403d3 /gcc/java/jcf-io.c | |
parent | 084e679a5fe47d056b7162db838eaef86f57f4d5 (diff) | |
download | gcc-8000caee88af66730c50aa91dab4e886df972e43.zip gcc-8000caee88af66730c50aa91dab4e886df972e43.tar.gz gcc-8000caee88af66730c50aa91dab4e886df972e43.tar.bz2 |
jcf-io.c (find_class): Correct the logic that tests to see if a .java file is newer than its .class file.
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)
From-SVN: r38177
Diffstat (limited to 'gcc/java/jcf-io.c')
-rw-r--r-- | gcc/java/jcf-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c index 03ea7d7..71b893c 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); |