This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Java: file mod time fix.



I'm checking in this patch from Mo DeJong. Mo saw this when running
Jacks:

  http://sources.redhat.com/ml/java-discuss/2000-12/msg00080.html

./A

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.

Index: jcf-io.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/jcf-io.c,v
retrieving revision 1.26
diff -u -p -r1.26 jcf-io.c
--- jcf-io.c    2000/11/07 22:50:06     1.26
+++ jcf-io.c    2000/12/10 20:09:15
@@ -394,7 +394,7 @@ DEFUN(find_class, (classname, classname_
      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);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]