PR 47571 Weakref trickery for clock_gettime()
[official-gcc.git] / libgfortran / ChangeLog
blob47ab730be5b2eddb8aaa441e44efe4ff87202297
1 2011-02-02  Janne Blomqvist  <jb@gcc.gnu.org>
3         PR libfortran/47571
4         * configure: Regenerated.
5         * configure.ac: Don't add librt to LIBS.
6         * intrinsics/time_1.h (weak_gettime): Weakref trickery for
7         clock_gettime().
8         (gf_gettime): Use weak_gettime() instead of clock_gettime().
10 2011-02-01  Janne Blomqvist  <jb@gcc.gnu.org>
12         * intrinsics/time_1.h: Include errno.h needed by fallbacks.
14 2011-01-31  Janne Blomqvist  <jb@gcc.gnu.org>
16         * intrinsics/time_1.h: Fix definition of GF_CLOCK_MONOTONIC macro.
18 2011-01-31  Janne Blomqvist  <jb@gcc.gnu.org>
20         * configure.ac: Check for clock_gettime().
21         * configure: Regenerated.
22         * config.h.in: Regenerated.
23         * intrinsics/time_1.h (__time_1): Rename to gf_cputime, add
24         times() fallback.
25         (gf_gettime): New function.
26         * intrinsics/cpu_time.c (__cpu_time_1): Update to call gf_cputime.
27         * intrinsics/date_and_time.c (date_and_time): Use gf_gettime.
28         * intrinsics/dtime.c (dtime_sub): Use gf_cputime.
29         * intrinsics/etime.c (etime_sub): Use gf_cputime.
30         * intrinsics/system_clock.c (system_clock_4): Use gf_gettime.
31         (system_clock_8): Use gf_gettime, increase count rate to allow
32         nanosecond precision, remove overflow prone branch.
34 2011-01-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
36         PR libgfortran/47434
37         * io/write_float.def (write_infnan): Use calculate_sign to determine
38         if the sign should be given and check field widths accordingly.
40 2011-01-29  Kai Tietz  <kai.tietz@onevision.com>
42         * intrinsics/ctime.c (ctime_r): Improve implementation.
44 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
46         PR libfortran/47431
47         * config.h.in: Regenerated.
48         * configure: Regenerated.
49         * configure.ac: Add check for ctime_r().
50         * intrinsics/ctime.c (ctime_r): Fallback implementation.
51         (fdate): Use ctime_r() instead of ctime().
52         (fdate_sub): Likewise.
53         (ctime): Likewise.
54         (ctime_sub): Likewise.
56 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
58         PR libfortran/47432
59         * config.h.in: Regenerated.
60         * configure: Regenerated.
61         * configure.ac: Add check for ttyname_r.
62         * io/unix.h: Add TTY_NAME_MAX, change stream_ttyname prototype.
63         * io/unix.c (stream_ttyname): Use ttyname_r if available, conform
64         to new prototype.
65         * io/inquire.c (inquire_via_unit): Use changed stream_ttyname.
66         * io/intrinsics.c (ttynam_sub): Likewise.
67         (ttynam): Likewise.
69 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
71         PR libfortran/47491
72         * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS to enable common
73         extensions.
74         * config.h.in: Regenerate.
75         * configure: Regenerate.
77 2011-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
79         PR libgfortran/47285
80         * io/write_float.def (write_infnan): Adjust processor selected width
81         to 3 if NaN.
83 2011-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
85         PR libgfortran/47285
86         * io/write_float.def (output_float): Return SUCCESS or FAILURE and use
87         the result to set the padding.
89 2011-01-26  Kai Tietz  <kai.tietz@onevision.com>
91         * intrinsics/getlog.c (getlog): Fix label/statement issue.
93 2011-01-25  Janne Blomqvist  <jb@gcc.gnu.org>
95         PR libfortran/47375
96         * config.h.in: Regenerated.
97         * configure: Regenerated.
98         * configure.ac: Add check for getpwuid_r.
99         * intrinsics/getlog.c (getlog): Use getpwuid_r() if available.
101 2011-01-22  Janne Blomqvist  <jb@gcc.gnu.org>
103         PR libfortran/46267
104         * config.h.in: Regenerated.
105         * configure: Regenerated.
106         * configure.ac: Check presence of strerror_r.
107         * intrinsics/gerror.c (gerror): Use gf_strerror, modify logic.
108         * io/unix.c (get_oserror): Remove.
109         * libgfortran.h (gf_strerror): Add prototype.
110         (get_oserror): Remove prototype.
111         * runtime/error.c (gf_strerror): New function.
112         (os_error): Use gf_strerror instead of get_oserror.
113         (generate_errror): Likewise.
115 2011-01-17  Janne Blomqvist  <jb@gcc.gnu.org>
117         PR libfortran/47296
118         * io/unix.c (tempfile): Set opp->file and opp->file_len also if an
119         error occurs.
121 2011-01-16  Jakub Jelinek  <jakub@redhat.com>
123         PR fortran/46625
124         * io/write_float.def (DTOAQ): Use quadmath_flt128tostr
125         instead of quadmath_dtoa.
126         * io/transfer128.c (tmp1, tmp2): New variables, bring in
127         strtoflt128 and quadmath_flt128tostr.
128         (transfer_real128, transfer_real128_write, transfer_complex128,
129         transfer_complex128_write): Remove tmp1/tmp2 variables.
130         * io/read.c (convert_real): Use strtoflt128 instead of
131         quadmath_strtopQ, adjust for the changed arguments and return
132         value.
134 2011-01-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
136         PR libgfortran/47296
137         * io/unix.c (unpack_filename): Return non-zero if the filename passed
138         in is NULL.
140 2011-01-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
142         PR libgfortran/47154
143         * io/list_read.c (namelist_read): Remove calls to hit_eof to avoid the
144         duplicate calls via next_record.
147 Copyright (C) 2011 Free Software Foundation, Inc.
149 Copying and distribution of this file, with or without modification,
150 are permitted in any medium without royalty provided the copyright
151 notice and this notice are preserved.