]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/39309 (.mod file versioning causes error instead of overwritting the...
authorTobias Burnus <burnus@net-b.de>
Fri, 27 Feb 2009 07:45:47 +0000 (08:45 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Fri, 27 Feb 2009 07:45:47 +0000 (08:45 +0100)
2009-02-27  Tobias Burnus  <burnus@net-b.de>

       PR fortran/39309
       * module.c (read_md5_from_module_file): Add missing quote.

From-SVN: r144462

gcc/fortran/ChangeLog
gcc/fortran/module.c

index 5d972c2eddaae4c329b341f6a84d48506bea47c4..6502f1a08029c5fa63f6a9ce4e5d2bb604824921 100644 (file)
@@ -1,3 +1,8 @@
+2009-02-27  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/39309
+       * module.c (read_md5_from_module_file): Add missing quote.
+
 2009-02-27  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/39309
index c234879a2a1cffaa6d37ffea29a8c1c2f42ae96a..d5a9f54a76a30e11b2110d0a5248931f8107df42 100644 (file)
@@ -4746,8 +4746,8 @@ read_md5_from_module_file (const char * filename, unsigned char md5[16])
     }
 
   /* The file also needs to be overwritten if the version number changed.  */
-  n = strlen ("GFORTRAN module version " MOD_VERSION " created");
-  if (strncmp (buf, "GFORTRAN module version " MOD_VERSION " created", n) != 0)
+  n = strlen ("GFORTRAN module version '" MOD_VERSION "' created");
+  if (strncmp (buf, "GFORTRAN module version '" MOD_VERSION "' created", n) != 0)
     return -1;
  
   if (fgets (buf, sizeof (buf) - 1, file) == NULL)