[patch, fortran] PR33055 Runtime error in INQUIRE unit existance with -fdefault-integer-8

Jerry DeLisle jvdelisle@verizon.net
Thu Oct 4 03:09:00 GMT 2007


Ping!  Just want to get it out of the way.  :)

Jerry DeLisle wrote:
> :ADDPATCH fortran:
> 
> Hi All,
> 
> This is a resubmission of my previous patch with the backend declaration 
> for the dummy variable fixed.
> 
> Thanks to Paul Thomas for that fix.
> 
> Three test cases included.  The last checking the compile with INQUIRE 
> within a module.
> 
> Regression tested on x86-64.
> 
> OK for trunk?
> 
> Regards,
> 
> Jerry
> 
>     PR fortran/33055
>     * trans-io.c (create_dummy_iostat): New function to create a unique
>     dummy variable expression to use with IOSTAT.
>     (gfc_trans_inquire): Use the new function to pass unit number error 
> info
>     to run-time library if a regular IOSTAT variable was not given.
> 
>     PR libfortran/33055
>     * io/inquire.c (inquire_via_unit):  If inquiring by unit, check for
>     an error condition from the IOSTAT variable and set EXIST to false if
>     there was a bad unit number.
> 



More information about the Gcc-patches mailing list