[patch, fortran] PR30014 INQUIRE (iolength = xx) limited to kind=4

Jerry DeLisle jvdelisle@verizon.net
Sat Dec 9 09:38:00 GMT 2006


:ADDPATCH fortran:

The attached patch changes the type to GFC_IO_INT which will either be kind=4 or 
kind=8 depending on the system.  The patch is very straight forward.  I don't 
see any point giving a warning if a user specifies a variable of kind=8 in a 
-std=f95 situation.  If others feel stronger about this I will do it.  The 
restriction is lifted in F2003

OK for 4.3 only?   Since this is an enhancement really and it does mess a bit 
with the size of st_parameter_dt it should not go to 4.2.

Regression tested on x86-64-Linux. A test case for this will require a lot of 
memory and consumes time.  I suggest we go without one for this.  I have 
attached the test case that I used to check this out.

Also, while we are at it here should we go ahead and do the same for the size 
parameter?

2006-12-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/30014
	* ioparm.def: Define iolength parameter to be type of pointer to pintio.

2006-12-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR lingfortran/30014
	* io.h: Define iolength parameter to type GFC_IO_INT.
	* transfer.c (iolength_transfer): Cast size to GFC_IO_INT.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr30014.diff
Type: text/x-patch
Size: 2133 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061209/6b542816/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iolength.f90
Type: text/x-fortran
Size: 265 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061209/6b542816/attachment-0001.bin>


More information about the Fortran mailing list