Revised: [patch, libgfortran] Fix PR26136 List directed input with underfilled (logicals) array read incorrectly

Jerry DeLisle jvdelisle@verizon.net
Sun Feb 19 08:32:00 GMT 2006


:ADDPATCH fortran:

Attached is a revised patch to replace my previous submittal.  This patch 
incorporates memory allocation using the line_buffer pointer in st_parameter_dt 
so that variable names up to 63 characters long can be evaluated during logical 
  namelist reads.

This patch also addresses comments by HJ Lu in the PR, fixing an omission I made.

Revised expanded testcase attached as well.

Regression tested.

OK for Trunk and 4.1 after freeze?

Regards,

Jerry

2006-02-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/26136
	* io/io.h: Add flag for reading from line_buffer.
	* io/list_read.c (l_push_char): New function to save namelist
	input when reading logicals.
	(free_line): New function to free line_buffer memory.
	(next_char): Added feature to read from line_buffer.
	(read_logical): Use new functions to test for '=' after reading a
	logical value, checking for possible variable name.
	(namelist_read): Use free_line when all done.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr26136-new.diff
Type: text/x-patch
Size: 7530 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060219/af3771d1/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: namelist_23.f90
Type: application/x-extension-f90
Size: 1708 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060219/af3771d1/attachment-0001.bin>


More information about the Gcc-patches mailing list