Skip to content
Snippets Groups Projects
  1. May 29, 2006
  2. May 27, 2006
  3. May 20, 2006
  4. May 17, 2006
  5. Apr 30, 2006
  6. Apr 28, 2006
  7. Apr 23, 2006
    • Jerry DeLisle's avatar
      re PR libfortran/20257 (Fortran runtime error: End of record occurs when writing large arrays) · 54ffdb12
      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
      54ffdb12
  8. Apr 17, 2006
    • Jerry DeLisle's avatar
      re PR fortran/27138 (gfortran: read(*,*) myInt advances only one character on error) · 9855448d
      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
      9855448d
  9. Apr 13, 2006
    • Jerry DeLisle's avatar
      re PR fortran/26766 ([F2003] Recursive I/O still (again) broken) · 6f34d6e0
      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
      6f34d6e0
  10. Apr 11, 2006
  11. Apr 10, 2006
    • Jakub Jelinek's avatar
      re PR libfortran/24685 (real(16) formatted input is broken for huge values... · 55fc9243
      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
      55fc9243
  12. Apr 07, 2006
  13. Apr 04, 2006
  14. Mar 31, 2006
    • Jerry DeLisle's avatar
      re PR libfortran/26890 (SIZE parameter interacts with same variable in IO list... · d57d3424
      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
      d57d3424
  15. Mar 27, 2006
  16. Mar 26, 2006
    • Jerry DeLisle's avatar
      re PR libfortran/26661 (Sequential formatted read goes too far) · 0853054e
      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
      0853054e
  17. Mar 25, 2006
    • Thomas Koenig's avatar
      re PR libfortran/26735 ([4.1 only] -fconvert=swap and implied open) · 5068c625
      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
      5068c625
  18. Mar 22, 2006
    • Thomas Koenig's avatar
      [multiple changes] · d67ab5ee
      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
      d67ab5ee
  19. Mar 18, 2006
  20. Mar 10, 2006
  21. Mar 05, 2006
  22. Mar 01, 2006
    • Jerry DeLisle's avatar
      re PR libfortran/26136 (List directed input with underfilled (logicals) array read incorrectly) · c9f15d9c
      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
      c9f15d9c
  23. Feb 28, 2006
  24. Feb 24, 2006
  25. Feb 19, 2006
    • François-Xavier Coudert's avatar
      re PR libfortran/21303 (L edit descriptor without a width) · 8f0d39a8
      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
      8f0d39a8
    • Francois-Xavier Coudert's avatar
      * io/open.c (edit_modes): Correct abusive copy-pasting. · c05f6d04
      Francois-Xavier Coudert authored
      From-SVN: r111266
      c05f6d04
  26. Feb 12, 2006
    • Janne Blomqvist's avatar
      re PR libfortran/25949 (Unbounded I/O buffer memory usage for formatted IO) · 82b8244c
      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
      82b8244c
  27. Feb 08, 2006
    • François-Xavier Coudert's avatar
      re PR libfortran/25425 ([4.1 only] F95 and F2003 differ on list-directed output for 0.0) · 5f8f5313
      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
      5f8f5313
  28. Feb 06, 2006
    • Thomas Koenig's avatar
      re PR fortran/23815 (Add -byteswapio flag) · eaa90d25
      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
      eaa90d25
  29. Feb 05, 2006
  30. Jan 25, 2006
  31. Jan 18, 2006
  32. Jan 06, 2006
  33. Jan 01, 2006
    • Jerry DeLisle's avatar
      re PR libfortran/25594 (LAPACK regression in schkbl.f) · a7c633ea
      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
      a7c633ea
  34. Dec 28, 2005
Loading