OSDN Git Service

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