[Patch, fortran] PR24398 - broken module files

Paul Thomas paulthomas2@wanadoo.fr
Tue Oct 10 12:58:00 GMT 2006


This patch deals with a problem in which something other than a gfortran 
module file was given to read_module; the resulting error was more than 
a little incomprehensible.  The fix is to verify that the first two 
words of the first line read "GFORTRAN module", using module.c's 
parser.  I do not see any point in a testcase for this.

Regtested on FC5/Athlon - Steve Kargl has OK'd this on the PR, so I will 
submit tonight.

Paul

2006-10-10  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/24398
    * module.c (gfc_use_module): Check that the first words in a
    module file are 'GFORTRAN module'.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr24398.diff
Type: text/x-patch
Size: 1269 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061010/190fc916/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Change.Logs
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061010/190fc916/attachment.ksh>


More information about the Gcc-patches mailing list