- May 29, 2006
-
-
Jerry DeLisle authored
2006-05-29 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/27757 * io/unix.c (fd_seek): Set active to zero. From-SVN: r114220
-
Jerry DeLisle authored
2006-05-29 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/27634 * io/format.c (parse_format_list): Allow missing period in format only if -std=legacy. From-SVN: r114212
-
- May 27, 2006
-
-
Janne Blomqvist authored
2006-05-27 Janne Blomqvist <jb@gcc.gnu.org> * io/io.h (find_or_create_unit): Correct export declaration. From-SVN: r114151
-
- May 20, 2006
-
-
Jerry DeLisle authored
2006-05-20 Jerry DeLisle <jvdelisle@gcc.gnu.org> 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. From-SVN: r113924
-
Jerry DeLisle authored
2006-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/22423 * io/transfer.c (read_block): Return NULL instead of nothing. From-SVN: r113923
-
- May 17, 2006
-
-
Jerry DeLisle authored
2006-05-16 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/27575 * io/transfer.c (read_block): Add check for end file condition. (read_block_direct): Add check for end file condition. From-SVN: r113837
-
- Apr 30, 2006
-
-
Jerry DeLisle authored
2006-04-29 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/27360 * io/list_read.c (read_logical): Free line_buffer and free saved. From-SVN: r113388
-
- Apr 28, 2006
-
-
Jerry DeLisle authored
2006-04-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/27304 * io/transfer.c (formatted_transfer_scalar): Generate error if data descriptors are exhausted. * io/format.c (next_format0): Fix comment. From-SVN: r113363
-
- Apr 23, 2006
-
-
Jerry DeLisle authored
2006-04-22 Jerry DeLisle <jvdelisle@gcc.gnu.org> 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. From-SVN: r113190
-
- Apr 17, 2006
-
-
Jerry DeLisle authored
2006-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org> 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. From-SVN: r112999
-
- Apr 13, 2006
-
-
Jerry DeLisle authored
2006-04-12 Jerry DeLisle <jvdelisle@gcc.gnu.org> 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. From-SVN: r112914
-
- Apr 11, 2006
-
-
Jakub Jelinek authored
* io/io.h (st_parameter_dt): Revert 2005-12-10 change to u.pad, fix comment. (check_st_parameter_dt): New compile time assert. From-SVN: r112850
-
- Apr 10, 2006
-
-
Jakub Jelinek authored
re PR libfortran/24685 (real(16) formatted input is broken for huge values (gfortran.dg/default_format_2.f90)) PR libgfortran/24685 * 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. From-SVN: r112819
-
- Apr 07, 2006
-
-
Jerry DeLisle authored
re PR libfortran/26890 (SIZE parameter interacts with same variable in IO list character length specification.) 2006-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org> 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. From-SVN: r112769
-
- Apr 04, 2006
-
-
Jerry DeLisle authored
write.c (output_float): Update condition to not error when decimal precision in format specifier is zero. 2006-04-03 Jerry DeLisle <jvdelisle@gcc.gnu.org> * io/write.c (output_float): Update condition to not error when decimal precision in format specifier is zero. From-SVN: r112656
-
- Mar 31, 2006
-
-
Jerry DeLisle authored
re PR libfortran/26890 (SIZE parameter interacts with same variable in IO list character length specification.) 2006-03-30 Jerry DeLisle <jvdelisle@gcc.gnu.org> 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. From-SVN: r112570
-
- Mar 27, 2006
-
-
Jerry DeLisle authored
2006-03-26 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/26880 * io/file_pos.c (st_rewind): Clear read_bad flag. From-SVN: r112407
-
- Mar 26, 2006
-
-
Jerry DeLisle authored
2006-03-25 Jerry DeLisle <jvdelisle@gcc.gnu.org> 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. From-SVN: r112390
-
- Mar 25, 2006
-
-
Thomas Koenig authored
2006-03-25 Thomas Koenig <Thomas.Koenig@online.de> 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. From-SVN: r112382
-
- Mar 22, 2006
-
-
Thomas Koenig authored
2006-03-22 Thomas Koenig <Thomas.Koenig@onlien.de> 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. From-SVN: r112290
-
- Mar 18, 2006
-
-
Jerry DeLisle authored
2006-03-17 Jerry DeLisle <jvdelisle@gcc.gnu.org> 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. From-SVN: r112198
-
- Mar 10, 2006
-
-
Jerry DeLisle authored
2006-03-09 Jerry DeLisle <jvdelisle@gcc.gnu.org> 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. From-SVN: r111924
-
- Mar 05, 2006
-
-
Jerry DeLisle authored
2006-03-05 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/26554 * io/list_read.c (read_logical): Return the value if not in namelist mode. From-SVN: r111738
-
- Mar 01, 2006
-
-
Jerry DeLisle authored
2006-02-28 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. From-SVN: r111597
-
- Feb 28, 2006
-
-
Jerry DeLisle authored
2006-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org> 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. From-SVN: r111506
-
- Feb 24, 2006
-
-
Jerry DeLisle authored
2006-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/26423 * io/unix.c (fd_seek): Revert change from 25949. (fd_read): Same. (fd_write): Same. From-SVN: r111420
-
- Feb 19, 2006
-
-
François-Xavier Coudert authored
PR libfortran/21303 * 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. From-SVN: r111281
-
Francois-Xavier Coudert authored
From-SVN: r111266
-
- Feb 12, 2006
-
-
Janne Blomqvist authored
2006-02-12 Janne Blomqvist <jb@gcc.gnu.org> 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. From-SVN: r110895
-
- Feb 08, 2006
-
-
François-Xavier Coudert authored
PR libfortran/25425 * trans-decl.c (gfc_generate_function_code): Add new argument, pedantic, to set_std call. * libgfortran.h: Add pedantic field to compile_options struct. * io/write.c (calculate_G_format): Depending on the standard, choose E or F format for list-directed output of 0.0. * runtime/error.c (notify_std): Make warning and error dependent on pedanticity. * runtime/compile_options.c (set_std): Use new pedantic argument. From-SVN: r110769
-
- Feb 06, 2006
-
-
Thomas Koenig authored
2005-02-06 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/23815 * gfortran.texi: Document the GFORTRAN_CONVERT_UNIT environment variable. * invoke.texi: Mention the "Runtime" chapter. Document the -fconvert= option. * gfortran.h: Add options_convert. * lang.opt: Add fconvert=little-endian, fconvert=big-endian, fconvert=native and fconvert=swap. * trans-decl.c (top level): Add gfor_fndecl_set_convert. (gfc_build_builtin_function_decls): Set gfor_fndecl_set_convert. (gfc_generate_function_code): If -fconvert was specified, and this is the main program, add a call to set_convert(). * options.c: Handle the -fconvert options. 2005-02-06 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/23815 * runtime/environ.c (init_unformatted): Add GFORTRAN_CONVERT_UNIT environment variable. (top level): Add defines, type and static variables for GFORTRAN_CONVERT_UNIT handling. (search_unit): New function. (match_word): New function. (match_integer): New function. (next_token): New function. (push_token): New function. (mark_single): New function. (mark_range): New funciton. (do_parse): New function. (init_unformatted): New function. (get_unformatted_convert): New function. * runtime/compile_options.c: Add set_convert(). * libgfortran.h: Add convert to compile_options_t. * io/open.c (st_open): Call get_unformatted_convert to get unit default; if CONVERT_NONE is returned, check for the presence of a CONVERT specifier and use it. As default, use compile_options.convert. * io/io.h (top level): Add CONVERT_NONE to unit_convert, to signal "nothing has been set". (top level): Add prototype for get_unformatted_convert. 2005-02-06 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/23815 * unf_io_convert_4.f90: New test. From-SVN: r110664
-
- Feb 05, 2006
-
-
Francois-Xavier Coudert authored
re PR libfortran/24685 (real(16) formatted input is broken for huge values (gfortran.dg/default_format_2.f90)) PR libfortran/24685 * io/write.c (write_real): Widen the default format for real(10) variables output. * gfortran.dg/large_real_kind_form_io_2.f90: New test. From-SVN: r110627
-
- Jan 25, 2006
-
-
Jerry DeLisle authored
2006-01-24 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25835 * io/transfer.c (st_read_done): Flush buffers when read is done. From-SVN: r110200
-
- Jan 18, 2006
-
-
Jerry DeLisle authored
2006-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25697 * io/transfer.c (us_read): Detect end of file condition from previous operations and bail out (no need to pre-position). From-SVN: r109870
-
Jerry DeLisle authored
2006-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25631 * io/transfer.c (formatted_transfer_scalar): Adjust pending_spaces and skips so that TL works correctly when no bytes_used yet. From-SVN: r109858
-
- Jan 06, 2006
-
-
Jerry DeLisle authored
2006-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25598 * io/file_pos.c (unformatted_backspace): Assure the new file position to seek is not less than zero. (st_backspace): Set unit bytes_left to zero. * io/transfer.c (next_record_r): Fix line lengths, no functional change. From-SVN: r109405
-
- Jan 01, 2006
-
-
Jerry DeLisle authored
2005-12-31 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25594 PR libgfortran/25419 * io/list_read.c (list_formatted_read_scalar): Test for comma to return a null value (default). Revert patch of 25419 on 2005-12-28. From-SVN: r109211
-
- Dec 28, 2005
-
-
Jerry DeLisle authored
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25139 * io/unix.c (fd_truncate): Set s->active to zero. PR libgfortran/25510 * libgfortran.h: Add ERROR_INTERNAL and ERROR_INTERNAL_UNIT. * runtime/error.c (translate_error): Add messages for new errors. * io/list_read.c (next_char): Use new errors. * io/transfer.c (next_record_r) (next_record_w): Use new errors. From-SVN: r109122
-
Jerry DeLisle authored
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25550 * io/file_pos.c (st_rewind): Reset bytes left so no error occurs in next_record_r. From-SVN: r109101
-
Jerry DeLisle authored
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25419 * io/list_read.c (list_formatted_read_scalar): Allow comma to return a null value (default). From-SVN: r109099
-