This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, libgfortran] PR47667 I/O for reals: READ waits for input after "i" and "n"


On 02/15/2011 06:51 AM, Jerry DeLisle wrote:
Here is an updated patch. Regression tested on x86-64. This patch adjusts reading for all types to avoid unwanted waiting for input. The patch also gives more flexible input for complex reads by permitting line feeds before and after '(', ',', and ')' This appears to be a common convention for reading complex values.

OK for trunk?

OK and thanks for the patch! I really wonder how long it will take until all such issues are fixed.


Tobias

2011-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>

PR libgfortran/47567
* io/list_read.c (read_logical): Check for end of line before calling
eat_line. (read_integer): Likewise. (parse_real): Don't unget the
separator. Check for end of line before calling eat_line.
(read_complex): Allow line-end before and after parenthesis and comma.
Check for end of line before calling eat_line. (read_real): Check for
end of line before calling eat_line.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]