From: Tobias Burnus Date: Fri, 27 Feb 2009 07:45:47 +0000 (+0100) Subject: re PR fortran/39309 (.mod file versioning causes error instead of overwritting the... X-Git-Tag: releases/gcc-4.4.0~421 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30929a13efacd1522c5ddff69145c1eaf127debb;p=thirdparty%2Fgcc.git re PR fortran/39309 (.mod file versioning causes error instead of overwritting the file) 2009-02-27 Tobias Burnus PR fortran/39309 * module.c (read_md5_from_module_file): Add missing quote. From-SVN: r144462 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 5d972c2eddaa..6502f1a08029 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2009-02-27 Tobias Burnus + + PR fortran/39309 + * module.c (read_md5_from_module_file): Add missing quote. + 2009-02-27 Tobias Burnus PR fortran/39309 diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index c234879a2a1c..d5a9f54a76a3 100644 --- a/gcc/fortran/module.c +++ b/gcc/fortran/module.c @@ -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)