aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io
AgeCommit message (Collapse)AuthorFilesLines
2006-05-29re PR fortran/27634 (formatted reading/writing: real format without dot)Jerry DeLisle1-2/+10
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
2006-05-27io.h (find_or_create_unit): Correct export declaration.Janne Blomqvist1-1/+1
2006-05-27 Janne Blomqvist <jb@gcc.gnu.org> * io/io.h (find_or_create_unit): Correct export declaration. From-SVN: r114151
2006-05-20re PR libfortran/24459 ([4.1 Only] gfortran namelist problem)Jerry DeLisle2-7/+44
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
2006-05-20re PR libfortran/22423 (Warnings when building libgfortran)Jerry DeLisle1-1/+1
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
2006-05-17re PR libfortran/27575 (gfortran - does not generate error when trying to ↵Jerry DeLisle1-0/+14
read too much data) 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
2006-04-30re PR libfortran/27360 (Memory leaks when reading logicals)Jerry DeLisle1-3/+6
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
2006-04-28re PR fortran/27304 (gfortran: Warn/abort when format in write does not fit ↵Jerry DeLisle2-2/+8
passed arguments) 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
2006-04-23re PR libfortran/20257 (Fortran runtime error: End of record occurs when ↵Jerry DeLisle4-30/+91
writing large arrays) 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
2006-04-17re PR fortran/27138 (gfortran: read(*,*) myInt advances only one character ↵Jerry DeLisle1-8/+33
on error) 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
2006-04-13re PR fortran/26766 ([F2003] Recursive I/O still (again) broken)Jerry DeLisle3-49/+91
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
2006-04-11io.h (st_parameter_dt): Revert 2005-12-10 change to u.pad, fix comment.Jakub Jelinek1-3/+9
* 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
2006-04-10re PR libfortran/24685 (real(16) formatted input is broken for huge values ↵Jakub Jelinek1-14/+24
(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
2006-04-07re PR libfortran/26890 (SIZE parameter interacts with same variable in IO ↵Jerry DeLisle1-1/+3
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
2006-04-04write.c (output_float): Update condition to not error when decimal precision ↵Jerry DeLisle1-1/+1
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
2006-03-31re PR libfortran/26890 (SIZE parameter interacts with same variable in IO ↵Jerry DeLisle2-11/+12
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
2006-03-27re PR libfortran/26880 (Can't read after non-advancing write with rewind)Jerry DeLisle1-0/+1
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
2006-03-26re PR libfortran/26661 (Sequential formatted read goes too far)Jerry DeLisle3-5/+12
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
2006-03-25re PR libfortran/26735 ([4.1 only] -fconvert=swap and implied open)Thomas Koenig1-0/+31
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
2006-03-22[multiple changes]Thomas Koenig3-25/+207
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
2006-03-18re PR fortran/26509 (incorrect behaviour of error-handler for direct access ↵Jerry DeLisle1-1/+4
write) 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
2006-03-10re PR libfortran/26499 (gfortran - End of File incorrectly positioned after ↵Jerry DeLisle3-18/+16
binary I/O.) 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
2006-03-05re PR fortran/26554 ([gfortran] incorrect behaviour when reading a logical ↵Jerry DeLisle1-7/+16
variable from a string) 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
2006-03-01re PR libfortran/26136 (List directed input with underfilled (logicals) ↵Jerry DeLisle2-20/+122
array read incorrectly) 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
2006-02-28re PR libfortran/26464 (Runtime I/O error/invald argument on READ)Jerry DeLisle2-3/+6
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
2006-02-24re PR libfortran/26423 (Error on binary I/O for large array)Jerry DeLisle1-6/+10
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
2006-02-19re PR libfortran/21303 (L edit descriptor without a width)François-Xavier Coudert2-4/+16
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
2006-02-19* io/open.c (edit_modes): Correct abusive copy-pasting.Francois-Xavier Coudert1-1/+1
From-SVN: r111266
2006-02-12re PR libfortran/25949 (Unbounded I/O buffer memory usage for formatted IO)Janne Blomqvist3-86/+120
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
2006-02-08re PR libfortran/25425 ([4.1 only] F95 and F2003 differ on list-directed ↵François-Xavier Coudert1-1/+2
output for 0.0) 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
2006-02-06re PR fortran/23815 (Add -byteswapio flag)Thomas Koenig2-28/+43
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
2006-02-05re PR libfortran/24685 (real(16) formatted input is broken for huge values ↵Francois-Xavier Coudert1-2/+2
(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
2006-01-25re PR libfortran/25835 (Segfault or Bad Address error on unformatted ↵Jerry DeLisle1-0/+1
sequential READ) 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
2006-01-18re PR libfortran/25697 (libfortran - Segmentation fault/ Bad Address on ↵Jerry DeLisle1-2/+8
unformatted read) 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
2006-01-18re PR libfortran/25631 (tl format specifier not working correctly)Jerry DeLisle1-1/+15
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
2006-01-06re PR libfortran/25598 (gfortran - Fortran runtime error: Invalid argument)Jerry DeLisle2-3/+9
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
2006-01-01re PR libfortran/25594 (LAPACK regression in schkbl.f)Jerry DeLisle1-1/+10
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
2005-12-28re PR libfortran/25139 ("Invalid argument" error on I/O)Jerry DeLisle3-4/+7
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
2005-12-28re PR libfortran/25550 (file data corrupted after reading end of file)Jerry DeLisle1-0/+1
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
2005-12-28re PR libfortran/25419 (gfortran read does not take comma for default on one ↵Jerry DeLisle1-4/+1
entry) 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
2005-12-22re PR libfortran/25307 (internal read with end=label aborts)Jerry DeLisle1-13/+52
2005-12-21 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25307 * io/list_read.c (next_char): Handle end-of-file conditions for internal units and add support for internal character array units. From-SVN: r108938
2005-12-19re PR libfortran/25463 (T edit descriptor and ADVANCE="no")Jerry DeLisle1-1/+1
2005-12-18 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25463 * io/transfer.c (finalize_transfer): Fix execution order so that next_record is set to zero in all cases. From-SVN: r108784
2005-12-16re PR fortran/25264 (write to internal unit from the string itself gives ↵Jerry DeLisle2-13/+58
wrong result ?) 2005-12-16 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25264 PR libgfortran/25349 * io/unit.c (get_unit): Delete code that cleared the string when the unit was opened, which is too soon. * io/transfer.c (next_record_w): Pass done flag in. Change logic for setting max_pos. Add code to position unit and pad record as needed. From-SVN: r108671
2005-12-10re PR fortran/23815 (Add -byteswapio flag)Thomas Koenig5-14/+186
2005-12-10 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/23815 * io.c (top level): Add convert to io_tag. (resolve_tag): convert is GFC_STD_GNU. (match_open_element): Add convert. (gfc_free_open): Likewise. (gfc_resolve_open): Likewise. (gfc_free_inquire): Likewise. (match_inquire_element): Likewise. * dump-parse-tree.c (gfc_show_code_node): Add convet for open and inquire. gfortran.h: Add convert to gfc_open and gfc_inquire. * trans-io.c (gfc_trans_open): Add convert. (gfc_trans_inquire): Likewise. * ioparm.def: Add convert to open and inquire. * gfortran.texi: Document CONVERT. 2005-12-10 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/23815 * io/file_pos.c (unformatted_backspace): If flags.convert does not equal CONVERT_NATIVE, reverse the record marker. * io/open.c: Add convert_opt[]. (st_open): If no convert option is given, set CONVERT_NATIVE. If CONVERT_BIG or CONVERT_LITTLE are given, set flags.convert to CONVERT_NATIVE or CONVERT_SWAP (depending on wether we have a big- or little-endian system). * io/transfer.c (unformatted_read): Remove unused attribute from arguments. If we need to reverse bytes, break up large transfers into a loop. Split complex numbers into its two parts. (unformatted_write): Likewise. (us_read): If flags.convert does not equal CONVERT_NATIVE, reverse the record marker. (next_record_w): Likewise. (reverse_memcpy): New function. * io/inquire.c (inquire_via_unit): Implement convert. * io/io.h (top level): Add enum unit_convert. Add convert to st_parameter_open and st_parameter_inquire. Define IOPARM_OPEN_HAS_CONVERT and IOPARM_INQUIRE_HAS_CONVERT. Increase padding for st_parameter_dt. Declare reverse_memcpy(). 2005-12-10 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/23815 * gfortran.dg/unf_io_convert_1.f90: New test. * gfortran.dg/unf_io_convert_2.f90: New test. * gfortran.dg/unf_io_convert_3.f90: New test. From-SVN: r108358
2005-12-09re PR libfortran/25039 ([4.1 only] comma short-circuit field width)Jerry DeLisle3-1/+25
2005-12-08 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25039 * io/io.h: Create a new flag sf_read_comma to control comma separators in numeric reads. * io/transfer.c (formatted_transfer_scalar): Initialize the flag. (read_sf): Check for commas coming in and if the flag is set, shortcut the read. * io/read.c (read_a) (read_x): Clear the flag for character reads and reset it after the reads. From-SVN: r108271
2005-12-04format.c: Removing unused code.Francois-Xavier Coudert1-175/+0
* io/format.c: Removing unused code. * intrinsics/random.c: Likewise. From-SVN: r108014
2005-12-02re PR libfortran/25116 ([4.0] namelist read from non-opened file)Francois-Xavier Coudert1-1/+4
PR libfortran/25116 * io/transfer.c (data_transfer_init): Don't set the default for namelist I/O on preconnected files to UNFORMATTED. From-SVN: r107900
2005-11-28acinclude.m4 (LIBGFOR_CHECK_PRAGMA_WEAK): Rename to...Jakub Jelinek1-4/+0
libfortran/24991 * acinclude.m4 (LIBGFOR_CHECK_PRAGMA_WEAK): Rename to... (LIBGFOR_GTHREAD_WEAK): ... this. Define SUPPORTS_WEAK rather than HAVE_PRAGMA_WEAK. Define GTHREAD_USE_WEAK to 0 on hosts that shouldn't use weak in gthr.h. * configure.ac: Use LIBGFOR_GTHREAD_WEAK instead of LIBGFOR_CHECK_PRAGMA_WEAK. * config.h.in: Regenerated. * configure: Regenerated. * io/io.h (SUPPORTS_WEAK): Don't define here. From-SVN: r107616
2005-11-28re PR fortran/25109 (formatted reads with embedded blanks in input fields)Jerry DeLisle1-3/+5
2005-11-27 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25109 * io/unit.c (init_units): Set default flag to BLANK_NULL per requirement of F95 standard. Set PAD_YES for stdin. From-SVN: r107588
2005-11-27random.c: Include config.hDavid Edelsohn2-5/+2
* intrinsics/random.c: Include config.h * io/size_from_kind.c: Include config.h and libgfortran.h * io/io.h: Revert 2005-11-21 change. From-SVN: r107577
2005-11-27* io/write.c (namelist_write): Correct type in previous commit.Francois-Xavier Coudert1-1/+1
From-SVN: r107564