re PR libfortran/47567 (Wrong output for small absolute values with F editing)
[gcc.git] / libgfortran / ChangeLog
1 2011-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2
3 PR libgfortran/47567
4 * io/write_float.def (output_float): Remove special case handling of
5 zero with width 1.
6
7 2011-02-23 Janne Blomqvist <jb@gcc.gnu.org>
8 Jerry DeLisle <jvdelisle@gcc.gnu.org>
9
10 PR libfortran/47694
11 * io/fbuf.h (fbuf_getptr): New inline function.
12 * io/transfer.c (read_sf): Use fbuf_getptr and fbuf_getc to scan
13 through the string instead of fbuf_read.
14
15 2011-02-22 Tobias Burnus <burnus@net-b.de>
16 Kai-Uwe Eckhardt <kuehro@gmx.de>
17
18 PR libfortran/47830
19 * intrinsics/c99_functions.c (roundl): Make C valid for
20 HAVE_NEXTAFTERL.
21
22 2011-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
23
24 PR libgfortran/47567
25 * io/write_float.def (output_float): Adjust width for F0.d to
26 allow space for negative signs on zero.
27
28 2011-02-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
29
30 PR libgfortran/47667
31 * io/list_read.c (read_logical): Check for end of line before calling
32 eat_line. (read_integer): Likewise. (parse_real): Don't unget the
33 separator. Check for end of line before calling eat_line.
34 (read_complex): Allow line-end before and after parenthesis and comma.
35 Check for end of line before calling eat_line. (read_real): Check for
36 end of line before calling eat_line.
37
38 2011-02-16 Jakub Jelinek <jakub@redhat.com>
39
40 PR libfortran/47757
41 * gfortran.map (GFORTRAN_1.4): Export
42 _gfortran_{m,s}i{all,any,parity}_i{1,2,4,8,16} and
43 _gfortran_{cshift0,eoshift{0,2}}_16_char4.
44
45 2011-02-15 Tobias Burnus <burnus@net-b.de>
46
47 PR fortran/47716
48 PR fortran/47648
49 * acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Use check from
50 libquadmath, which uses more features.
51 * configure: Regenerate.
52
53 2011-02-14 Jakub Jelinek <jakub@redhat.com>
54
55 PR fortran/47642
56 * io/write_float.def (DTOAQ): Use quadmath_snprintf instead of
57 quadmath_flt128tostr.
58 * io/transfer128.c (tmp2): Initialize to quadmath_snprintf instead
59 of quadmath_flt128tostr.
60
61 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62
63 * Makefile.in: Regenerate.
64 * aclocal.m4: Likewise.
65 * configure: Likewise.
66
67 2011-02-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
68
69 PR libgfortran/47567
70 * io/write_float.def (output_float): Eliminate some redundant code.
71 Adjust width for case of F0.X for values of zero and all other values.
72 Expand cases where '*' is set to give cleaner results.
73
74 2011-02-05 Janne Blomqvist <jb@gcc.gnu.org>
75
76 PR libfortran/47571
77 * intrinsics/time_1.h (GF_CLOCK_MONOTONIC): Move to system_clock.c.
78 (weak_gettime): Likewise.
79 (gf_gettime): Change API, move weak_gettime() usage to
80 system_clock.c
81 * intrinsics/system_clock.c (GTHREAD_USE_WEAK): Define.
82 (gf_gettime_mono): New function.
83 (system_clock_4): Use gf_gettime_mono().
84 (system_clock_8): Likewise.
85 * intrinsics/date_and_time.c (date_and_time): Update gf_gettime()
86 usage.
87
88 2011-02-02 Janne Blomqvist <jb@gcc.gnu.org>
89
90 PR libfortran/47571
91 * configure: Regenerated.
92 * configure.ac: Don't add librt to LIBS.
93 * intrinsics/time_1.h (weak_gettime): Weakref trickery for
94 clock_gettime().
95 (gf_gettime): Use weak_gettime() instead of clock_gettime().
96
97 2011-02-01 Janne Blomqvist <jb@gcc.gnu.org>
98
99 * intrinsics/time_1.h: Include errno.h needed by fallbacks.
100
101 2011-01-31 Janne Blomqvist <jb@gcc.gnu.org>
102
103 * intrinsics/time_1.h: Fix definition of GF_CLOCK_MONOTONIC macro.
104
105 2011-01-31 Janne Blomqvist <jb@gcc.gnu.org>
106
107 * configure.ac: Check for clock_gettime().
108 * configure: Regenerated.
109 * config.h.in: Regenerated.
110 * intrinsics/time_1.h (__time_1): Rename to gf_cputime, add
111 times() fallback.
112 (gf_gettime): New function.
113 * intrinsics/cpu_time.c (__cpu_time_1): Update to call gf_cputime.
114 * intrinsics/date_and_time.c (date_and_time): Use gf_gettime.
115 * intrinsics/dtime.c (dtime_sub): Use gf_cputime.
116 * intrinsics/etime.c (etime_sub): Use gf_cputime.
117 * intrinsics/system_clock.c (system_clock_4): Use gf_gettime.
118 (system_clock_8): Use gf_gettime, increase count rate to allow
119 nanosecond precision, remove overflow prone branch.
120
121 2011-01-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
122
123 PR libgfortran/47434
124 * io/write_float.def (write_infnan): Use calculate_sign to determine
125 if the sign should be given and check field widths accordingly.
126
127 2011-01-29 Kai Tietz <kai.tietz@onevision.com>
128
129 * intrinsics/ctime.c (ctime_r): Improve implementation.
130
131 2011-01-27 Janne Blomqvist <jb@gcc.gnu.org>
132
133 PR libfortran/47431
134 * config.h.in: Regenerated.
135 * configure: Regenerated.
136 * configure.ac: Add check for ctime_r().
137 * intrinsics/ctime.c (ctime_r): Fallback implementation.
138 (fdate): Use ctime_r() instead of ctime().
139 (fdate_sub): Likewise.
140 (ctime): Likewise.
141 (ctime_sub): Likewise.
142
143 2011-01-27 Janne Blomqvist <jb@gcc.gnu.org>
144
145 PR libfortran/47432
146 * config.h.in: Regenerated.
147 * configure: Regenerated.
148 * configure.ac: Add check for ttyname_r.
149 * io/unix.h: Add TTY_NAME_MAX, change stream_ttyname prototype.
150 * io/unix.c (stream_ttyname): Use ttyname_r if available, conform
151 to new prototype.
152 * io/inquire.c (inquire_via_unit): Use changed stream_ttyname.
153 * io/intrinsics.c (ttynam_sub): Likewise.
154 (ttynam): Likewise.
155
156 2011-01-27 Janne Blomqvist <jb@gcc.gnu.org>
157
158 PR libfortran/47491
159 * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS to enable common
160 extensions.
161 * config.h.in: Regenerate.
162 * configure: Regenerate.
163
164 2011-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
165
166 PR libgfortran/47285
167 * io/write_float.def (write_infnan): Adjust processor selected width
168 to 3 if NaN.
169
170 2011-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
171
172 PR libgfortran/47285
173 * io/write_float.def (output_float): Return SUCCESS or FAILURE and use
174 the result to set the padding.
175
176 2011-01-26 Kai Tietz <kai.tietz@onevision.com>
177
178 * intrinsics/getlog.c (getlog): Fix label/statement issue.
179
180 2011-01-25 Janne Blomqvist <jb@gcc.gnu.org>
181
182 PR libfortran/47375
183 * config.h.in: Regenerated.
184 * configure: Regenerated.
185 * configure.ac: Add check for getpwuid_r.
186 * intrinsics/getlog.c (getlog): Use getpwuid_r() if available.
187
188 2011-01-22 Janne Blomqvist <jb@gcc.gnu.org>
189
190 PR libfortran/46267
191 * config.h.in: Regenerated.
192 * configure: Regenerated.
193 * configure.ac: Check presence of strerror_r.
194 * intrinsics/gerror.c (gerror): Use gf_strerror, modify logic.
195 * io/unix.c (get_oserror): Remove.
196 * libgfortran.h (gf_strerror): Add prototype.
197 (get_oserror): Remove prototype.
198 * runtime/error.c (gf_strerror): New function.
199 (os_error): Use gf_strerror instead of get_oserror.
200 (generate_errror): Likewise.
201
202 2011-01-17 Janne Blomqvist <jb@gcc.gnu.org>
203
204 PR libfortran/47296
205 * io/unix.c (tempfile): Set opp->file and opp->file_len also if an
206 error occurs.
207
208 2011-01-16 Jakub Jelinek <jakub@redhat.com>
209
210 PR fortran/46625
211 * io/write_float.def (DTOAQ): Use quadmath_flt128tostr
212 instead of quadmath_dtoa.
213 * io/transfer128.c (tmp1, tmp2): New variables, bring in
214 strtoflt128 and quadmath_flt128tostr.
215 (transfer_real128, transfer_real128_write, transfer_complex128,
216 transfer_complex128_write): Remove tmp1/tmp2 variables.
217 * io/read.c (convert_real): Use strtoflt128 instead of
218 quadmath_strtopQ, adjust for the changed arguments and return
219 value.
220
221 2011-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
222
223 PR libgfortran/47296
224 * io/unix.c (unpack_filename): Return non-zero if the filename passed
225 in is NULL.
226
227 2011-01-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
228
229 PR libgfortran/47154
230 * io/list_read.c (namelist_read): Remove calls to hit_eof to avoid the
231 duplicate calls via next_record.
232
233 \f
234 Copyright (C) 2011 Free Software Foundation, Inc.
235
236 Copying and distribution of this file, with or without modification,
237 are permitted in any medium without royalty provided the copyright
238 notice and this notice are preserved.