summaryrefslogtreecommitdiffstats
path: root/libgfortran/io
Commit message (Collapse)AuthorAgeFilesLines
...
* 2011-04-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2011-04-201-2/+4
| | | | | | | | | PR libgfortran/48602 * io/write_float.def (output_float_FMT_G): Fix reversal in conditional. Use asm volatile to mark temp variable, avoiding optimization errors. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172753 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-04-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2011-04-181-5/+24
| | | | | | | | | | PR libgfortran/48602 * io/write_float.def (output_float_FMT_G): Use current rounding mode to set the rounding parameters. (output_float): Skip rounding if value is zero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172634 138bc75d-0d04-0410-961f-82ee72b054a4
* Replace sprintf with snprintfjb2011-04-167-94/+92
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172590 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-04-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2011-04-151-2/+2
| | | | | | | | PR libgfortran/48589 * io/write_float.def (write_infnan): Set width properly for G0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172502 138bc75d-0d04-0410-961f-82ee72b054a4
* Cleanup memsize typesjb2011-04-123-16/+15
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172340 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-04-04 Tobias Burnus <burnus@net-b.de>burnus2011-04-031-13/+14
| | | | | | | | | | | * unix.c: Adapt stat DEFINEs since MinGW64 supports LFS. (fallback_access, open_internal4, compare_file_filename, find_file, file_size, inquire_sequential, inquire_direct, inquire_formatted): Use "struct stat" instead of gfstat_t. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171911 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-03-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2011-03-241-36/+17
| | | | | | | | PR libgfortran/48030 * io/read.c (read_x): Re-implement using fbuf_getc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171378 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/35667danglin2011-03-193-4/+93
| | | | | | | | | | | * io/io.h (convert_infnan): Declare. * io/read.c (convert_infnan): New. (read_f): Use convert_infnan to convert INFs and NANs. * list_read.c (parse_real, read_real): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171182 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libfortran/47439fxcoudert2011-03-191-5/+33
| | | | | | | | | * io/unix.c (tempfile): Work around poor mktemp() implementations. * gfortran.dg/scratch_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171178 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-03-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2011-03-121-1/+1
| | | | | | | | PR libgfortran/48047 * io/write_float.def (write_float): Change MIN_FIELD_WIDTH to 48. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170895 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-02-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2011-03-011-14/+18
| | | | | | | | | | PR libgfortran/47567 * io/write_float.def (output_float): Move handling of w = 0 to after output rounding. Check for zero and set zero_flag accordingly. Set width according to zero_flag. Add better comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170585 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2011-02-271-0/+10
| | | | | | | | | | PR libgfortran/47778 * io/list_read.c (namelist_read): Intialize the error string buffere. If pprev_nl was used during the previous namelist read and the rank was zero, reset the pointer to NULL for the next namelist read. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170548 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libfortran/45165fxcoudert2011-02-261-2/+6
| | | | | | | * unix.c (fallback_access): Fix file descriptor leaks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170517 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/47878jakub2011-02-241-6/+7
| | | | | | | | | | * io/transfer.c (read_sf): Call fbuf_getptr only at the end, and subtract n, dtp->u.p.sf_seen_eor and seen_comma from it. * gfortran.dg/pr47878.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170476 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2011-02-241-19/+0
| | | | | | | | | PR libgfortran/47567 * io/write_float.def (output_float): Remove special case handling of zero with width 1. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170458 138bc75d-0d04-0410-961f-82ee72b054a4
* PR 47694 Read from named pipe failsjb2011-02-232-20/+22
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170432 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2011-02-191-1/+1
| | | | | | | | | PR libgfortran/47567 * io/write_float.def (output_float): Adjust width for F0.d to allow space for negative signs on zero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170318 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-02-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2011-02-171-11/+26
| | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170239 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/47642jakub2011-02-142-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libquadmath.texi (quadmath_snprintf): Document. (quadmath_flt128tostr): Remove. * Makefile.am (libquadmath_la_SOURCES): Add printf/*.c. Remove quadmath_io.c, gdtoa/gdtoa.c, gdtoa/g__fmt.c, gdtoa/g_Qfmt.c, gdtoa/dmisc.c and gdtoa/ulp.c. * quadmath.h (quadmath_snprintf): New prototype. (quadmath_flt128tostr): Remove. * quadmath_weak.h (quadmath_snprintf): Add. (quadmath_flt128tostr): Remove. * configure.ac: New AC_CHECK_HEADERS headers: langinfo.h, wchar.h, wctype.h, limits.h, ctype.h, printf.h, errno.h. (AC_USE_SYSTEM_EXTENSIONS): Add. (HAVE_HIDDEN_VISIBILITY, HAVE_PRINTF_HOOKS, USE_LOCALE_SUPPORT, USE_I18N_NUMBER_H): New checks. * quadmath.map (QUADMATH_1.0): Add quadmath_snprintf. Remove quadmath_flt128tostr. * printf/printf_fphex.c: New file. * printf/_itowa.h: New file. * printf/mul_n.c: New file. * printf/quadmath-printf.h: New file. * printf/submul_1.c: New file. * printf/quadmath-printf.c: New file. * printf/gmp-impl.h: New file. * printf/lshift.c: New file. * printf/fpioconst.h: New file. * printf/add_n.c: New file. * printf/cmp.c: New file. * printf/sub_n.c: New file. * printf/mul.c: New file. * printf/divrem.c: New file. * printf/addmul_1.c: New file. * printf/printf_fp.c: New file. * printf/_itoa.h: New file. * printf/fpioconst.c: New file. * printf/_i18n_number.h: New file. * printf/flt1282mpn.c: New file. * printf/rshift.c: New file. * printf/mul_1.c: New file. * quadmath_io.c: Removed. * gdtoa/gdtoa.c: Removed. * gdtoa/g__fmt.c: Removed. * gdtoa/g_Qfmt.c: Removed. * gdtoa/dmisc.c: Removed. * gdtoa/ulp.c: Removed. * config.h.in: Regenerated. * configure: Regenerated. * Makefile.in: Regenerated. * io/write_float.def (DTOAQ): Use quadmath_snprintf instead of quadmath_flt128tostr. * io/transfer128.c (tmp2): Initialize to quadmath_snprintf instead of quadmath_flt128tostr. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170135 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-02-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2011-02-051-7/+7
| | | | | | | | | | PR libgfortran/47567 * io/write_float.def (output_float): Eliminate some redundant code. Adjust width for case of F0.X for values of zero and all other values. Expand cases where '*' is set to give cleaner results. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169853 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-01-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2011-01-291-14/+32
| | | | | | | | | PR libgfortran/47434 * io/write_float.def (write_infnan): Use calculate_sign to determine if the sign should be given and check field widths accordingly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169390 138bc75d-0d04-0410-961f-82ee72b054a4
* PR 47432 Use ttyname_r() if availablejb2011-01-274-30/+54
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169337 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2011-01-271-15/+22
| | | | | | | | | PR libgfortran/47285 * io/write_float.def (output_float): Return SUCCESS or FAILURE and use the result to set the padding. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169320 138bc75d-0d04-0410-961f-82ee72b054a4
* PR 46267 strerror thread safetyjb2011-01-211-10/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169110 138bc75d-0d04-0410-961f-82ee72b054a4
* PR47296 Segfault when running out of file descriptorsjb2011-01-171-8/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168888 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/46625jakub2011-01-163-19/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * quadmath.map (QUADMATH_1.0): Remove quadmath_strtopQ and quadmath_dtoaq. Add strtoflt128 and quadmath_flt128tostr. * quadmath_weak.h (quadmath_strtopQ, quadmath_dtoaq): Remove. (strtoflt128, quadmath_flt128tostr): Add. * gdtoa/strtopQ.c (quadmath_strtopQ): Rename to... (strtoflt128): ... this. Return __float128, instead of writing to memory pointed by last argument. * quadmath.h: Use C style comments instead of C++ style. (quadmath_strtopQ, quadmath_dtoaq): Remove prototypes. (strtoflt128, quadmath_flt128tostr): Add prototypes. * libquadmath.texi (quadmath_dtoaq): Rename to quadmath_flt128tostr. (quadmath_strtopQ): Rename to strtoflt128. Adjust prototype, adjust examples. * quadmath_io.c (quadmath_dtoaq): Rename to... (quadmath_flt128tostr): ... this. libgfortran/ * io/write_float.def (DTOAQ): Use quadmath_flt128tostr instead of quadmath_dtoa. * io/transfer128.c (tmp1, tmp2): New variables, bring in strtoflt128 and quadmath_flt128tostr. (transfer_real128, transfer_real128_write, transfer_complex128, transfer_complex128_write): Remove tmp1/tmp2 variables. * io/read.c (convert_real): Use strtoflt128 instead of quadmath_strtopQ, adjust for the changed arguments and return value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168856 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2011-01-151-0/+2
| | | | | | | | | PR libgfortran/47296 * io/unix.c (unpack_filename): Return non-zero if the filename passed in is NULL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168832 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-01-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2011-01-051-12/+8
| | | | | | | | | PR libgfortran/47154 * io/list_read.c (namelist_read): Remove calls to hit_eof to avoid the duplicate calls via next_record. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168502 138bc75d-0d04-0410-961f-82ee72b054a4
* Update Copyright years for files modified in 2010.jakub2011-01-032-2/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168438 138bc75d-0d04-0410-961f-82ee72b054a4
* /burnus2010-11-165-5/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2010-11-13 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> Tobias Burnus <burnus@net-b.de> PR fortran/32049 * Makefile.def: Add libquadmath; build it with language=fortran. * configure.ac: Add libquadmath. * Makefile.tpl: Handle multiple libs in check-[+language+]. * Makefile.in: Regenerate. * configure: Regenerate. libquadmath/ 2010-11-13 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> Tobias Burnus <burnus@net-b.de> PR fortran/32049 Initial implementation and checkin. gcc/fortran/ 2010-11-13 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> Tobias Burnus <burnus@net-b.de> PR fortran/32049 * gfortranspec.c (find_spec_file): New function. (lang_specific_driver): Try to find .spec file and use it. * trans-io.c (iocall): Define * IOCALL_X_REAL128/COMPLEX128(,write). (gfc_build_io_library_fndecls): Build decl for __float128 I/O. (transfer_expr): Call __float128 I/O functions. * trans-types.c (gfc_init_kinds): Allow kind-16 belonging to __float128. gcc/testsuite/ 2010-11-13 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> Tobias Burnus <burnus@net-b.de> PR fortran/32049 * gfortran.dg/quad_1.f90: New. * lib/gcc-defs.exp (gcc-set-multilib-library-path): Use also compiler arguments. * lib/gfortran.exp (gfortran_link_flags): Add libquadmath to library search path; call gcc-set-multilib-library-path with arguments such that libgfortran.spec is found. (gfortran_init): Add path for libgfortran.spec to GFORTRAN_UNDER_TEST. libgomp/ 2010-11-13 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> Tobias Burnus <burnus@net-b.de> PR fortran/32049 * configure.ac: * configure: Regenerate. libgfortran/ 2010-11-13 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> Tobias Burnus <burnus@net-b.de> PR fortran/32049 * Makefile.am: Add missing pow_r16_i4.c, add transfer128.c, link libquadmath, if used. * acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Add. * configure.ac: Use it, touch spec file. * gfortran.map: Add pow_r16_i4 and transfer_(real,complex)128(,write) functions. * intrinsics/cshift0.c (cshift0): Handle __float128 type. * intrinsics/erfc_scaled_inc.c: Ditto. * intrinsics/pack_generic.c (pack): Ditto * intrinsics/spread_generic.c (spread): Ditto. * intrinsics/unpack_generic.c (unpack1): Ditto. * io/read.c (convert_real): Ditto. * io/transfer.c: Update comments. * io/transfer128.c: New file. * io/write_float.def (write_float): Handle __float128 type. * libgfortran.h: #include quadmath_weak.h, define __builtin_infq and nanq. * m4/mtype.m4: Handle __float128 type. * runtime/in_pack_generic.c (internal_pack): Ditto. * runtime/in_unpack_generic.c (internal_unpack): Ditto. * kinds-override.h: New file. * libgfortran.spec.in: Ditto. * generated/pow_r16_i4.c: Generated. * Makefile.in: Regenerate. * configure: Regenerate. * config.h: Regenerate. * bessel_r10.c: Regenerate. * bessel_r16.c: Regenerate. * bessel_r4.c: Regenerate. * bessel_r8.c: Regenerate. * exponent_r16.c: Regenerate. * fraction_r16.c: Regenerate. * nearest_r16.c: Regenerate. * norm2_r10.c: Regenerate. * norm2_r16.c: Regenerate. * norm2_r4.c: Regenerate. * norm2_r8.c: Regenerate. * rrspacing_r16.c: Regenerate. * set_exponent_r16.c: Regenerate. * spacing_r16.c: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166825 138bc75d-0d04-0410-961f-82ee72b054a4
* Cache stat values, reduce syscallsjb2010-11-091-18/+35
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166502 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-11-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2010-11-091-1/+2
| | | | | | | | | PR libgfortran/46373 * io/transfer.c (data_transfer_init): Do not call flush_if_preconnected if this is an internal unit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166490 138bc75d-0d04-0410-961f-82ee72b054a4
* PR 44931 Move struct unix_stream to unix.cjb2010-11-043-25/+29
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166325 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove prot from unix_streamjb2010-11-032-34/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166284 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove unused empty_internal_buffer functionjb2010-11-032-12/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166276 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-11-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2010-11-031-1/+13
| | | | | | | | | | | | | PR libgfortran/43899 * runtime/error.c (generate_warning): New function to generate a run time warning message. Fix some whitespace. * libgfortran.h: Add prototype for new function. * io/list_read.c (nml_read_obj): Use new function to warn when a character namelist object is truncated. Only warn if compiled with -fbounds-check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166252 138bc75d-0d04-0410-961f-82ee72b054a4
* PR 45629 Remove usage of setjmp/longjmpjb2010-11-023-179/+245
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166180 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-10-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2010-10-262-5/+7
| | | | | | | | | | PR libgfortran/46010 * io/list_read.c (nml_parse_qualifier): Add additional conditions for setting the end index for loop specification. Fix some whitespace. * io/write.c (write_default_char4): Const-ify the source argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165979 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-10-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2010-10-194-82/+40
| | | | | | | | | | | | | | | | | | | | | | | * io/io.h: Remove definition of the BT enumerator. * libgfortran.h: Replace GFC_DTYPE enumerator with BT. * intrinsics/iso_c_generated_procs.c: Likewise * intrinsics/date_and_time.c: Likewise. * intrinsics/iso_c_binding.c: Likewise. * io/list_read.c: Likewise. * io/transfer.c: Likewise. * io/write.c: Likewise. 2010-10-18 Jerry DeLisle <jvdelisle@gcc.gnu.org> * gfortran.h: Remove definition of bt enumerator. * libgfortran.h: Add bt enumerator type alighned with defintion. Remove the dtype enumerator, no longer used. previously given in libgfortran/io.h * trans-types.c: Use new bt enumerator. * trans-io.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165675 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-10-16 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2010-10-161-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR fortran/20165 PR fortran/31593 PR fortran/43665 * gfortran.map: Add _gfortran_transfer_array_write, _gfortran_transfer_array_write, _gfortran_transfer_character_write, _gfortran_transfer_character_wide_write, _gfortran_transfer_complex_write, _gfortran_transfer_integer_write, _gfortran_transfer_logical_write and _gfortran_transfer_real_write. * io/transfer.c (transfer_integer_write): Add prototype and function body as call to the original function, without the _write. (transfer_real_write): Likewise. (transfer_logical_write): Likewise. (transfer_character_write): Likewise. (transfer_character_wide_write): Likewise. (transfer_complex_write): Likewise. (transfer_array_write): Likewise. 2010-10-16 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/20165 PR fortran/31593 PR fortran/43665 * trans-io.c (enum iocall): Add IOCALL_X_INTEGER_WRITE, IOCALL_X_LOGICAL_WRITE, IOCALL_X_CHARACTER_WRITE, IOCALL_X_CHARACTER_WIDE_WRIE, IOCALL_X_REAL_WRITE, IOCALL_X_COMPLEX_WRITE and IOCALL_X_ARRAY_WRITE. (gfc_build_io_library_fndecls): Add corresponding function decls. (transfer_expr): If the current transfer is a READ, use the iocall with the original version, otherwise the version with _WRITE. (transfer_array_desc): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165559 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-09-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2010-09-231-0/+14
| | | | | | | | | PR libfortran/45710 * io/write.c (namelist_write_newline): Pad character array internal unit records with spaces. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164543 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-09-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2010-09-221-1/+1
| | | | | | | | | PR libfortran/45723 * io/open.c (new_unit): On POSITION_APPEND don't seek if file length is zero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164507 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-09-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2010-09-141-1/+2
| | | | | | | | | PR libfortran/45532 * io/list_read.c (nml_get_obj_data): Set first_nl if the previous is NULL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164266 138bc75d-0d04-0410-961f-82ee72b054a4
* * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_ISFINITE,fxcoudert2010-09-091-1/+1
| | | | | | | | | | | | | | | | | LIBGFOR_CHECK_FOR_BROKEN_ISNAN, LIBGFOR_CHECK_FOR_BROKEN_FPCLASSIFY): Remove. * configure.ac: Remove above checks. * libgfortran.h: Define isnan, isinf, isfinite, isnormal and signbit in terms of the respective built-ins. * io/write_float.def (WRITE_FLOAT): Use signbit() instead of __builtin_signbit(). * intrinsics/c99_functions.c (tgamma): Use isnan() instead of __builtin_isnan(). * config.h.in: Regenerate. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164119 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-08-23 Tobias Burnus <burnus@net-b.de>burnus2010-08-231-3/+3
| | | | | | | | | | PR fortran/45323 * io/write.c (nml_write_obj, namelist_write): Cast argument of toupper to int. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163469 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-08-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2010-08-191-12/+2
| | | | | | | | | PR libfortran/45108 * io/list_read.c (namelist_read): If namelist reading fails, use generate_error and then continue the read loop. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163387 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-08-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2010-08-141-1/+12
| | | | | | | | | PR libfortran/44931 * io/inquire.c (inquire_via_unit): Add special case for __MINGW32__ to return special file names CONIN$, CONOUT$, and CONERR$. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163245 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-08-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2010-08-072-30/+42
| | | | | | | | | | | | PR libfortran/45143 * io/format.c: Remove fnode storage structure definitions, moving these to format.h. (parse_format_list): Add check for data descriptors, taking care of nested formats. Adjust calling parameters to pass a check flag. (parse_format): Likewise. * io/format.h: Add structures moved from format.c. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162978 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't update the position flag for non-seekable files, check for stell() error.jb2010-08-021-6/+13
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162810 138bc75d-0d04-0410-961f-82ee72b054a4
* Use access(2) instead of stat(2) to test file existence.jb2010-08-011-35/+41
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162798 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud