mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 10:54:07 +08:00
re PR fortran/39309 (.mod file versioning causes error instead of overwritting the file)
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
This commit is contained in:
parent
99b54b33b4
commit
30929a13ef
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user