summaryrefslogtreecommitdiffstats
path: root/libgfortran/io
Commit message (Collapse)AuthorAgeFilesLines
...
* 2006-11-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-11-051-113/+90
| | | | | | | | | | | | | PR libgfortran/25545 * io/transfer.c (write_block): Cleanup code paths between stream and non-stream I/O. (write_buf): Cleanup. (read_block): Cleanup. (finalize_transfer): Call next_record for '$' edit descriptor handling of internal unit. Cleanup code for readability. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118506 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-31 Thomas Koenig <Thomas.Koenig@online.de>tkoenig2006-10-311-49/+41
| | | | | | | | | | | | | | | | | | | | | PR libfortran/29627 * libgfortran.h: Add ERROR_SHORT_RECORD * runtime/error.c (translate_error): Add case for ERROR_SHORT_RECORD. * io/transfer.c (read_block_direct): Separate codepaths for stream and record unformatted I/O. Remove unneeded tests for standard input, padding and formatted I/O. If the record is short, read in as much data as possible, then raise the error. 2006-10-31 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/29627 * gfortran.dg/unf_short_record_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118341 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-28 Tobias Burnus <burnus@net-b.de>burnus2006-10-281-2/+12
| | | | | | | | | | | PR fortran/29625 * io/transfer.c (formatted_transfer_scalar): Allow binary edit descriptors for real variables; give error for BOZ edit descriptor for non-integers when using -std=f*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118111 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-10-261-1/+2
| | | | | | | | PR libgfortran/29563 * io/list_read.c (next_char): Fix an error in previous commit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118063 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-10-263-16/+29
| | | | | | | | | | | PR libgfortran/29563 * io/io.h (st_parameter_dt): Add new flag at_eof. * io/list_read.c (next_char): Set flag when EOF and return '\n' to signal EOR. Check flag on next call and jump out. * io/unit.c (get_internal_unit): Initialize new flag. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118059 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-10-181-7/+68
| | | | | | | | | PR libgfortran/29277 * io/write.c (write_a): Add conversion of LF to CR-LF for systems with #define HAVE_CRLF. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117866 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-16 Tobias Burnus <burnus@net-b.de>burnus2006-10-185-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * m4/in_pack.m4: Fixed a typo. * m4/iforeach.m4: Fixed a typo. * m4/eoshift1.m4: Fixed a typo. * m4/eoshift3.m4: Fixed a typo. * m4/cshift1.m4: Fixed a typo. * m4/in_unpack.m4: Fixed a typo. * m4/reshape.m4: Fixed a typo. * m4/ifunction.m4: Fixed a typo. * runtime/environ.c: Fixed a typo. * runtime/in_pack_generic.c: Fixed a typo. * runtime/in_unpack_generic.c: Fixed a typo. * runtime/memory.c: Fixed a typo. * intrinsics/cshift0.c: Fixed a typo. * intrinsics/cpu_time.c: Fixed a typo. * intrinsics/pack_generic.c: Fixed a typo. * intrinsics/unpack_generic.c: Fixed a typo. * intrinsics/eoshift0.c: Fixed a typo. * intrinsics/eoshift2.c: Fixed a typo. * intrinsics/reshape_generic.c: Fixed a typo. * io/open.c: Fixed a typo. * io/list_read.c: Fixed a typo. * io/io.h: Fixed a typo. * io/transfer.c: Fixed a typo. * io/write.c: Fixed a typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117857 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-10-182-26/+42
| | | | | | | | | | | | | | | PR libgfortran/29277 * io/list_read.c (next_char): Update strm_pos. (eat_separator): Delete extra call to unget_char. * io/transfer.c (read_block): Use read_sf for formatted stream I/O. (next_record_r): Update strm_pos for formatted stream I/O and handle end-of-record correctly. (next_record_w): Ditto. (next_record): Enable next record (r/w) functions and update strm_pos. (finalize_transfer): Call next_record to finish the record. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117846 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libfortran/27964dannysmith2006-09-231-0/+6
| | | | | | | | | | | * configure.ac: Check for setmode() function. * configure: Regenerate. * config.h.in: Regenerate. * io/unix.c (output_stream): Force stdout to binary mode. (error_stream): Force stderr to binary mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117166 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-09-156-23/+28
| | | | | | | | | | | | | | | | | | PR libgfortran/29053 * io.h (gfc_unit): Add variable, strm_pos, to track STREAM I/O file position. * file_pos.c (st_rewind): Set strm_pos to beginning. * open.c (new_unit): Initialize strm_pos. * read.c (read_x): Bump strm_pos. * inquire.c (inquire_via_unit): Return strm_pos value. * transfer.c (read_block),(read_block_direct),(write_block) (write_buf): Seek to strm_pos - 1. Update strm_pos when done. (pre_position): Initialize strm_pos. (data_transfer_init): Set strm_pos if DT_HAS_REC. (finalize_transfer): Flush file, no need to update strm_pos. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116970 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-08-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-08-281-0/+9
| | | | | | | | | PR libgfortran/28354 * io/write.c: Check for special case of zero precision in format and pre-round the real value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116502 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-08-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-08-157-152/+303
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libgfortran/25828 * libgfortran.h: Rename GFC_LARGE_IO_INT to GFC_IO_INT. * io/file_pos.c (st_backspace): Ignore if access=STREAM. (st_rewind): Handle case of access=STREAM. * io/open.c (access_opt): Add STREAM_ACCESS. (edit_modes): Set current_record to zero only if not STREAM. (new_unit): Initialize maxrec, recl, and last_record for STREAM. * io/read.c (read_x): Advance file position for STREAM. * io/io.h (enum unit_access): Align IOPARM flags with frontend. Add ACCESS_STREAM. Add prototype for is_stream_io () function. Use GFC_IO_INT. * io/inquire.c (inquire_via_unit): Add text for access = "STREAM". * io/unit.c (is_stream_io): New function to return true if access = STREAM. * io/transfer.c (file_mode): Add modes for unformatted stream and formatted stream. (current_mode): Return appropriate file mode based on access flags. (read_block): Handle formatted stream reads. (read_block_direct): Handle unformatted stream reads. (write_block): Handle formatted stream writes. (write_buf): Handle unformatted stream writes. (unformatted_read): Fix up, use temporary for size. (pre_position): Position file for STREAM access. (data_transfer_init): Initialize for stream access, skip irrelevent error checks. (next_record_r),(next_record_w), and (next_record): Do nothing for stream I/O. (finalize_transfer): Flush when all done if stream I/O. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116172 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-07-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-07-311-1/+4
| | | | | | | | | PR libgfortran/28335 * file_position.c (st_flush): Add clearer error when UNIT does not exist. Add reference to standard in comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115835 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-07-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-07-312-6/+3
| | | | | | | | | PR libgfortran/28335 * close.c (st_close): Revert previous patch and add comment. * file_position.c (st_flush): Revert previous patch and add comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115829 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-07-30 Janne Blomqvist <jb@gcc.gnu.org>jb2006-07-301-3/+0
| | | | | | | | * io/transfer.c (transfer_array): Remove stride0 fix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115818 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-07-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-07-262-1/+6
| | | | | | | | | PR libgfortran/258335 * close.c (st_close): Add error when UNIT does not exist. * file_position.c (st_flush): Add error when UNIT does not exist. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115749 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-07-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-07-241-1/+1
| | | | | | | | | PR libgfortran/25289 * libgfortran.h: Add conditional definition of GFC_LARGE_IO_INT type. * io/io.h (st_parameter_dt): Define rec as type GFC_LARGE_IO_INT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115698 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-07-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-07-222-4/+10
| | | | | | | | | | | PR libgfortran/28339 * io/transfer.c (next_record_w): Use next_array_record result to set END_FILE. (write_block): Test for END_FILE before the next write occurs. * io/unit.c (get_internal_unit): Initialize iunit->endfile for internal unit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115670 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-07-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-07-045-14/+14
| | | | | | | | | | | | | | | | PR libgfortran/27704 * runtime/error.c (notify_std): Pass common flags into function. Use flags to show locus of error or warning. * libgfortran.h: Add enum try. Add prototype for notify_std. * io/open.c (edit_modes): Allow status="old" and add extension to allow status="scratch" *io/list_read.c (nml_read_obj): Update call to notify_std. *io/io.h: Remove enum try and prototype for notify_std. *io/transfer.c (read_sf): Update call to notify_std. *io/format.c (parse_format_list): Update call to notify_std. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115168 138bc75d-0d04-0410-961f-82ee72b054a4
* * io/io.h: Move proto for unit_to_fd...fxcoudert2006-06-251-3/+0
| | | | | | | * libgfortran.h: ...here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114983 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libgomp/27254danglin2006-06-191-0/+9
| | | | | | | | | * io/unit.c (get_internal_unit): Initialize and lock thread mutex for internal units. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114765 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-05-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-05-291-0/+1
| | | | | | | | PR libgfortran/27757 * io/unix.c (fd_seek): Set active to zero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114220 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-05-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-05-291-2/+10
| | | | | | | | | PR libgfortran/27634 * io/format.c (parse_format_list): Allow missing period in format only if -std=legacy. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114212 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-05-27 Janne Blomqvist <jb@gcc.gnu.org>jb2006-05-271-1/+1
| | | | | | | | * io/io.h (find_or_create_unit): Correct export declaration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114151 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-05-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-05-202-7/+44
| | | | | | | | | | | PR libgfortran/24459 * io/list_read.c (nml_parse_qualifier): Leave loop spec end value at default value unless -std=f95 or if an array section is specified in namelist input. Warn if -pedantic. * io/io.h (st_parameter_dt): Add expanded_read flag. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113924 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-05-201-1/+1
| | | | | | | | PR libgfortran/22423 * io/transfer.c (read_block): Return NULL instead of nothing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113923 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-05-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-05-171-0/+14
| | | | | | | | | PR libgfortran/27575 * io/transfer.c (read_block): Add check for end file condition. (read_block_direct): Add check for end file condition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113837 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-04-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-04-301-3/+6
| | | | | | | | | PR libgfortran/27360 * io/list_read.c (read_logical): Free line_buffer and free saved. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113388 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-04-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-04-282-2/+8
| | | | | | | | | | PR libgfortran/27304 * io/transfer.c (formatted_transfer_scalar): Generate error if data descriptors are exhausted. * io/format.c (next_format0): Fix comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113363 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-04-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-04-234-30/+91
| | | | | | | | | | | | | | | | | | | | | | | PR libgfortran/20257 * io/io.h: Add prototypes for get_internal_unit and free_internal_unit. * io/unit.c (get_internal_unit): Initialize unit number, not zero. (free_internal_unit): New function to consolidate freeing memory. (get_unit): Initialize internal_unit_desc to NULL when unit is external. * io/unix.c (mem_close): Check for not NULL before freeing memory. * io/transfer.c (read_block): Reset bytes_left and skip error if unit is preconnected and default record length is reached. (read_block_direct): Ditto. (write_block): Ditto. (write_buf): Ditto. (data_transfer_init): Only flush if not internal unit. (finalize_transfer): Ditto and delete code to free memory used by internal units. (st_read_done): Use new function - free_internal_unit. (st_write_done): Use new function - free_internal unit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113190 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-04-171-8/+33
| | | | | | | | | | | | | | PR libgfortran/27138 * io/list_read.c (eat_line): New function. (parse_repeat): Use new function and free_saved. (read_logical): Same. (read_integer): Use new function. (parse_real): Use nml_bad_return and new function. (read_complex): Use new function and free_saved. (read_real): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112999 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-04-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-04-133-49/+91
| | | | | | | | | | | | | | | | | | PR libgfortran/26766 * io/io.h: Add bit to identify associated unit as internal. * io/unit.c (get_external_unit): Renamed the find_unit_1 function to reflect the external unit functionality vs internal unit. (get_internal_unit): New function to allocate and initialize an internal unit structure. (get_unit): Use get_internal_unit and get_external_unit. (is_internal_unit): Revised to use new bit added in io.h. * io/transfer.c (data_transfer_init): Fix line width. (st_read_done): Free memory allocated for internal unit. (st_write_done): Add test to only flush and truncate when not an internal unit. Free memory allocated for internal unit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112914 138bc75d-0d04-0410-961f-82ee72b054a4
* * io/io.h (st_parameter_dt): Revert 2005-12-10 change tojakub2006-04-111-3/+9
| | | | | | | | u.pad, fix comment. (check_st_parameter_dt): New compile time assert. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112850 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libgfortran/24685jakub2006-04-101-14/+24
| | | | | | | | | | * io/write.c (MIN_FIELD_WIDTH, STR, STR1): Define. (output_float): Increase buffer sizes for IEEE quad and IBM extended long double. (write_real): Output REAL(16) as 1PG43.34E4 rather than 1PG40.31E4. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112819 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-04-071-1/+3
| | | | | | | | | PR libgfortran/26890 * io/io.h: Revert change to pad size made on 2006-03-30. Add comment explaining dependency with fortran/trans-io.c. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112769 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-04-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-04-041-1/+1
| | | | | | | | * io/write.c (output_float): Update condition to not error when decimal precision in format specifier is zero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112656 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-03-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-03-312-11/+12
| | | | | | | | | | | | | | | PR libgfortran/26890 * io/io.h: Add size_used to st_parameter_dt, adjust pad size. *io/transfer.c (data_transfer_init): Initialize size_used to zero. (read_sf): Use size_used. (read_block): Likewise. (read_block_direct): Likewise. (write_block): Likewise. (write_buf): Likewise and eliminate erroneous FAILURE return. (finalize_transfer): Assign value of size_used to *dtp->size. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112570 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-03-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-03-271-0/+1
| | | | | | | | PR libgfortran/26880 * io/file_pos.c (st_rewind): Clear read_bad flag. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112407 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-03-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-03-263-5/+12
| | | | | | | | | | | | | PR libgfortran/26661 * io/io.h: Add read_sf so it can be used by read_x. * io/transfer.c (read_sf): Pass no_error flag to read_sf. Use it to break out rather than error on EOF or EOR conditions. (read_block): Update call to read_sf. (read_block_direct): Ditto. * io/read.c (read_x): Use the modified read_sf instead of read_block. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112390 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-03-25 Thomas Koenig <Thomas.Koenig@online.de>tkoenig2006-03-251-0/+31
| | | | | | | | | | | | | | | | PR libfortran/26735 * io/transfer.c (data_transfer_init): Set u_flags.convert on an unopened unit if specified by environment variable (via get_unformatted_convert) or by compile-time option. 2006-03-25 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/26735 * gfortran.dg/convert_implied_open.f90: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112382 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-03-22 Thomas Koenig <Thomas.Koenig@onlien.de>tkoenig2006-03-223-25/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR fortran/19303 * gfortran.h (gfc_option_t): Add record_marker. * lang.opt: Add -frecord-marker=4 and -frecord-marker=8. * trans-decl.c: Add gfor_fndecl_set_record_marker. (gfc_build_builtin_function_decls): Set gfor_fndecl_set_record_marker. (gfc_generate_function_code): If we are in the main program and -frecord-marker was provided, call set_record_marker. * options.c (gfc_handle_option): Add handling for -frecord-marker=4 and -frecord-marker=8. * invoke.texi: Document -frecord-marker. 2006-03-22 Thomas Koenig <Thomas.Koenig@onlien.de> PR fortran/19303 * libgfortran.h (compile_options_t): Add record_marker. * runtime/compile_options.c (set_record_marker): New function. * io/open.c: If we have four-byte record markers, use GFC_INTEGER_4_HUGE as default record length. * io/file_pos.c (unformatted_backspace): Handle different size record markers. * io/transfer.c (us_read): Likewise. (us_write): Likewise. (next_record_r): Likewise. (write_us_marker): Likewise. (next_record_w): Likewise. 2006-03-22 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/19303 * gfortran.dg/record_marker_1.f90: New test case. * gfortran.dg/record_marker_2.f: New test case. * gfortran.dg/record_marker_3.f90: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112290 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-03-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-03-181-1/+4
| | | | | | | | | | | PR libgfortran/26509 * libgfortran.h: Add ERROR_DIRECT_EOR. * runtime/error.c (translate_error): Add translation for new error. * io/transfer.c (write_buf): Add check for EOR when mode is direct access. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112198 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-03-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-03-103-18/+16
| | | | | | | | | | | | PR libgfortran/26499 * io/file_pos (st_rewind): Flush always. * io/unix.c (fd_truncate): Return SUCCESS rather than FAILURE for special files like /dev/null. * io/transfer.c (st_write_done): Remove broken logic that prevented calling fd_truncate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111924 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-03-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-03-051-7/+16
| | | | | | | | | PR libgfortran/26554 * io/list_read.c (read_logical): Return the value if not in namelist mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111738 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-02-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-03-012-20/+122
| | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111597 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-02-282-3/+6
| | | | | | | | | | PR libgfortran/26464 * io/file_pos.c (st_backspace): Flush and truncate file when in AFTER_ENDFILE condition. * io/transfer.c (st_read_done): Remove flush, no longer needed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111506 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-02-241-6/+10
| | | | | | | | | | PR libgfortran/26423 * io/unix.c (fd_seek): Revert change from 25949. (fd_read): Same. (fd_write): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111420 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libfortran/21303fxcoudert2006-02-192-4/+16
| | | | | | | | | | | | | | | | | | | * gfortran.h (notification): New enumeration. (gfc_notification_std): Prototype for the new function. * error.c (gfc_notification_std): New function. * io.c (check_format): Handle the case of a L format descriptor without a width. * runtime/error.c (notification_std): New function. * libgfortran.h (notification): New enumeration. * io/io.h (notification_std): Prototype for the new function. * io/format.c (parse_format_list): Handle the case of a L format descriptor without a width. * gcc/testsuite/gfortran.dg/fmt_l.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111281 138bc75d-0d04-0410-961f-82ee72b054a4
* * io/open.c (edit_modes): Correct abusive copy-pasting.fxcoudert2006-02-191-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111266 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-02-12 Janne Blomqvist <jb@gcc.gnu.org>jb2006-02-123-86/+120
| | | | | | | | | | | | | | | | | | | | | | PR libgfortran/25949 * io/io.h: Add set function pointer to struct stream. * io/unix.c (fd_seek): Only update offset, don't seek. (fd_sset): New function. (fd_read): Call lseek directly if necessary. (fd_write): Likewise. (fd_open): Set pointer to fd_sset. (mem_set): New function. (open_internal): Set pointer to mem_set. * io/transfer.c (write_block_direct): Rename to write_buf, add error return, non-pointer length argument. (unformatted_write): Update to use write_buf. (us_write): Simplify by using swrite instead of salloc_w. (write_us_marker): New function. (new_record_w): Use sset instead of memset, use write_us_marker, simplify by using swrite instead of salloc_w. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110895 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud