2011-02-22 13:37:12 +01:00
|
|
|
|
2011-02-22 Tobias Burnus <burnus@net-b.de>
|
|
|
|
|
Kai-Uwe Eckhardt <kuehro@gmx.de>
|
|
|
|
|
|
|
|
|
|
PR libfortran/47830
|
|
|
|
|
* intrinsics/c99_functions.c (roundl): Make C valid for
|
|
|
|
|
HAVE_NEXTAFTERL.
|
|
|
|
|
|
2011-02-19 16:10:55 +01:00
|
|
|
|
2011-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
2011-02-17 06:19:50 +01:00
|
|
|
|
|
|
|
|
|
PR libgfortran/47567
|
2011-02-19 16:10:55 +01:00
|
|
|
|
* io/write_float.def (output_float): Adjust width for F0.d to
|
|
|
|
|
allow space for negative signs on zero.
|
|
|
|
|
|
|
|
|
|
2011-02-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
PR libgfortran/47667
|
2011-02-17 06:19:50 +01:00
|
|
|
|
* 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.
|
|
|
|
|
|
2011-02-16 18:18:41 +01:00
|
|
|
|
2011-02-16 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR libfortran/47757
|
|
|
|
|
* gfortran.map (GFORTRAN_1.4): Export
|
|
|
|
|
_gfortran_{m,s}i{all,any,parity}_i{1,2,4,8,16} and
|
|
|
|
|
_gfortran_{cshift0,eoshift{0,2}}_16_char4.
|
|
|
|
|
|
2011-02-15 22:30:43 +01:00
|
|
|
|
2011-02-15 Tobias Burnus <burnus@net-b.de>
|
|
|
|
|
|
|
|
|
|
PR fortran/47716
|
|
|
|
|
PR fortran/47648
|
|
|
|
|
* acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Use check from
|
|
|
|
|
libquadmath, which uses more features.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
re PR fortran/47642 (real(kind=16) - libquadmath - segfault on amd64 FreeBSD)
PR fortran/47642
* 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.
From-SVN: r170135
2011-02-14 16:34:44 +01:00
|
|
|
|
2011-02-14 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR fortran/47642
|
|
|
|
|
* io/write_float.def (DTOAQ): Use quadmath_snprintf instead of
|
|
|
|
|
quadmath_flt128tostr.
|
|
|
|
|
* io/transfer128.c (tmp2): Initialize to quadmath_snprintf instead
|
|
|
|
|
of quadmath_flt128tostr.
|
|
|
|
|
|
2011-02-13 12:45:53 +01:00
|
|
|
|
2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
|
|
|
|
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* aclocal.m4: Likewise.
|
|
|
|
|
* configure: Likewise.
|
|
|
|
|
|
2011-02-05 18:58:48 +01:00
|
|
|
|
2011-02-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
2011-02-05 17:22:04 +01:00
|
|
|
|
2011-02-05 Janne Blomqvist <jb@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
PR libfortran/47571
|
|
|
|
|
* intrinsics/time_1.h (GF_CLOCK_MONOTONIC): Move to system_clock.c.
|
|
|
|
|
(weak_gettime): Likewise.
|
|
|
|
|
(gf_gettime): Change API, move weak_gettime() usage to
|
|
|
|
|
system_clock.c
|
|
|
|
|
* intrinsics/system_clock.c (GTHREAD_USE_WEAK): Define.
|
|
|
|
|
(gf_gettime_mono): New function.
|
|
|
|
|
(system_clock_4): Use gf_gettime_mono().
|
|
|
|
|
(system_clock_8): Likewise.
|
|
|
|
|
* intrinsics/date_and_time.c (date_and_time): Update gf_gettime()
|
|
|
|
|
usage.
|
|
|
|
|
|
2011-02-02 09:48:24 +01:00
|
|
|
|
2011-02-02 Janne Blomqvist <jb@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
PR libfortran/47571
|
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
* configure.ac: Don't add librt to LIBS.
|
|
|
|
|
* intrinsics/time_1.h (weak_gettime): Weakref trickery for
|
|
|
|
|
clock_gettime().
|
|
|
|
|
(gf_gettime): Use weak_gettime() instead of clock_gettime().
|
|
|
|
|
|
2011-02-01 09:27:55 +01:00
|
|
|
|
2011-02-01 Janne Blomqvist <jb@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
* intrinsics/time_1.h: Include errno.h needed by fallbacks.
|
|
|
|
|
|
2011-01-31 21:58:41 +01:00
|
|
|
|
2011-01-31 Janne Blomqvist <jb@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
* intrinsics/time_1.h: Fix definition of GF_CLOCK_MONOTONIC macro.
|
|
|
|
|
|
2011-01-31 21:52:00 +01:00
|
|
|
|
2011-01-31 Janne Blomqvist <jb@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
* configure.ac: Check for clock_gettime().
|
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
* config.h.in: Regenerated.
|
|
|
|
|
* intrinsics/time_1.h (__time_1): Rename to gf_cputime, add
|
|
|
|
|
times() fallback.
|
|
|
|
|
(gf_gettime): New function.
|
|
|
|
|
* intrinsics/cpu_time.c (__cpu_time_1): Update to call gf_cputime.
|
|
|
|
|
* intrinsics/date_and_time.c (date_and_time): Use gf_gettime.
|
|
|
|
|
* intrinsics/dtime.c (dtime_sub): Use gf_cputime.
|
|
|
|
|
* intrinsics/etime.c (etime_sub): Use gf_cputime.
|
|
|
|
|
* intrinsics/system_clock.c (system_clock_4): Use gf_gettime.
|
|
|
|
|
(system_clock_8): Use gf_gettime, increase count rate to allow
|
|
|
|
|
nanosecond precision, remove overflow prone branch.
|
|
|
|
|
|
2011-01-29 18:31:04 +01:00
|
|
|
|
2011-01-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
2011-01-29 18:20:13 +01:00
|
|
|
|
2011-01-29 Kai Tietz <kai.tietz@onevision.com>
|
|
|
|
|
|
|
|
|
|
* intrinsics/ctime.c (ctime_r): Improve implementation.
|
|
|
|
|
|
2011-01-27 21:22:37 +01:00
|
|
|
|
2011-01-27 Janne Blomqvist <jb@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
PR libfortran/47431
|
|
|
|
|
* config.h.in: Regenerated.
|
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
* configure.ac: Add check for ctime_r().
|
|
|
|
|
* intrinsics/ctime.c (ctime_r): Fallback implementation.
|
|
|
|
|
(fdate): Use ctime_r() instead of ctime().
|
|
|
|
|
(fdate_sub): Likewise.
|
|
|
|
|
(ctime): Likewise.
|
|
|
|
|
(ctime_sub): Likewise.
|
|
|
|
|
|
2011-01-27 21:05:45 +01:00
|
|
|
|
2011-01-27 Janne Blomqvist <jb@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
PR libfortran/47432
|
|
|
|
|
* config.h.in: Regenerated.
|
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
* configure.ac: Add check for ttyname_r.
|
|
|
|
|
* io/unix.h: Add TTY_NAME_MAX, change stream_ttyname prototype.
|
|
|
|
|
* io/unix.c (stream_ttyname): Use ttyname_r if available, conform
|
|
|
|
|
to new prototype.
|
|
|
|
|
* io/inquire.c (inquire_via_unit): Use changed stream_ttyname.
|
|
|
|
|
* io/intrinsics.c (ttynam_sub): Likewise.
|
|
|
|
|
(ttynam): Likewise.
|
|
|
|
|
|
2011-01-27 18:34:14 +01:00
|
|
|
|
2011-01-27 Janne Blomqvist <jb@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
PR libfortran/47491
|
|
|
|
|
* configure.ac: Call AC_USE_SYSTEM_EXTENSIONS to enable common
|
|
|
|
|
extensions.
|
|
|
|
|
* config.h.in: Regenerate.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2011-01-29 18:31:04 +01:00
|
|
|
|
2011-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
PR libgfortran/47285
|
|
|
|
|
* io/write_float.def (write_infnan): Adjust processor selected width
|
|
|
|
|
to 3 if NaN.
|
|
|
|
|
|
2011-01-27 03:16:18 +01:00
|
|
|
|
2011-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
PR libgfortran/47285
|
|
|
|
|
* io/write_float.def (output_float): Return SUCCESS or FAILURE and use
|
|
|
|
|
the result to set the padding.
|
|
|
|
|
|
2011-01-26 10:14:01 +01:00
|
|
|
|
2011-01-26 Kai Tietz <kai.tietz@onevision.com>
|
|
|
|
|
|
|
|
|
|
* intrinsics/getlog.c (getlog): Fix label/statement issue.
|
|
|
|
|
|
2011-01-25 17:46:00 +01:00
|
|
|
|
2011-01-25 Janne Blomqvist <jb@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
PR libfortran/47375
|
|
|
|
|
* config.h.in: Regenerated.
|
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
* configure.ac: Add check for getpwuid_r.
|
|
|
|
|
* intrinsics/getlog.c (getlog): Use getpwuid_r() if available.
|
|
|
|
|
|
2011-01-21 23:42:17 +01:00
|
|
|
|
2011-01-22 Janne Blomqvist <jb@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
PR libfortran/46267
|
|
|
|
|
* config.h.in: Regenerated.
|
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
* configure.ac: Check presence of strerror_r.
|
|
|
|
|
* intrinsics/gerror.c (gerror): Use gf_strerror, modify logic.
|
|
|
|
|
* io/unix.c (get_oserror): Remove.
|
|
|
|
|
* libgfortran.h (gf_strerror): Add prototype.
|
|
|
|
|
(get_oserror): Remove prototype.
|
|
|
|
|
* runtime/error.c (gf_strerror): New function.
|
|
|
|
|
(os_error): Use gf_strerror instead of get_oserror.
|
|
|
|
|
(generate_errror): Likewise.
|
|
|
|
|
|
2011-01-17 06:48:10 +01:00
|
|
|
|
2011-01-17 Janne Blomqvist <jb@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
PR libfortran/47296
|
|
|
|
|
* io/unix.c (tempfile): Set opp->file and opp->file_len also if an
|
|
|
|
|
error occurs.
|
|
|
|
|
|
re PR fortran/46625 (libquadmath: Mangle internal symbols; rename __float128 <-> string functions)
PR fortran/46625
* 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.
From-SVN: r168856
2011-01-16 17:55:27 +01:00
|
|
|
|
2011-01-16 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR fortran/46625
|
|
|
|
|
* 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.
|
|
|
|
|
|
2011-01-15 07:42:30 +01:00
|
|
|
|
2011-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
PR libgfortran/47296
|
|
|
|
|
* io/unix.c (unpack_filename): Return non-zero if the filename passed
|
|
|
|
|
in is NULL.
|
|
|
|
|
|
2011-01-05 04:53:15 +01:00
|
|
|
|
2011-01-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
PR libgfortran/47154
|
|
|
|
|
* io/list_read.c (namelist_read): Remove calls to hit_eof to avoid the
|
|
|
|
|
duplicate calls via next_record.
|
|
|
|
|
|
2010-01-04 09:59:59 +01:00
|
|
|
|
|
2011-01-02 17:22:05 +01:00
|
|
|
|
Copyright (C) 2011 Free Software Foundation, Inc.
|
2010-01-04 09:59:59 +01:00
|
|
|
|
|
|
|
|
|
Copying and distribution of this file, with or without modification,
|
|
|
|
|
are permitted in any medium without royalty provided the copyright
|
|
|
|
|
notice and this notice are preserved.
|