1 2011-07-13 Janne Blomqvist <jb@gcc.gnu.org>
5 * io/list_read.c (read_logical): Don't error out if a valid value
6 is followed by EOF instead of a normal separator.
7 (read_integer): Likewise.
9 2011-07-06 Thomas Koenig <tkoenig@gcc.gnu.org>
11 Partial backport from trunk:
13 * runtime/memory.c: If size is zero, allocate a single byte.
14 * m4/eoshift1.m4: Remove double allocation.
15 * m4/eoshift3.m4: Likewise.
16 * generated/eoshift1_4.c: Regenerated.
17 * generated/eoshift1_8.c: Regenerated.
18 * generated/eoshift1_16.c: Regenerated.
19 * generated/eoshift3_4.c: Regenerated.
20 * generated/eoshift3_8.c: Regenerated.
21 * generated/eoshift3_16.c: Regenerated.
23 2011-07-03 Janne Blomqvist <jb@gcc.gnu.org>
25 Backport from mainline:
27 * io/list_read.c (read_character): Accept EOF as a separator when
30 2011-06-27 Release Manager
34 2011-04-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
36 Backport from mainline:
38 * io/read.c (read_x): Re-implement using fbuf_getc.
40 2011-04-18 Janne Blomqvist <jb@gcc.gnu.org>
43 * configure: Regenerated.
44 * config.h.in: Regenerated.
45 * acinclude.m4: Add alpha*-dec-osf* to gthread blacklist.
46 * configure.ac: Use separate symbol for clock_gettime in librt.
47 * intrinsics/system_clock.c: Use weakrefs only when needed and
50 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
52 Backport from mainline:
53 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
56 * configure.ac (gfortran_use_symver): Handle --disable-symvers.
57 * configure: Regenerate.
59 2011-03-25 Release Manager
63 2011-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66 * intrinsics/system_clock.c [__alpha__ && __osf__]
67 (HAVE_CLOCK_GETTIME): Undef.
69 2011-03-12 Thomas Koenig <tkoenig@gcc.gnu.org>
72 * m4/ifunction.m4: If return array is empty, return.
73 * m4/ifunction_logical.m4: Likewise.
74 * generated/all_l16.c: Regenerated.
75 * generated/all_l1.c: Regenerated.
76 * generated/all_l2.c: Regenerated.
77 * generated/all_l4.c: Regenerated.
78 * generated/all_l8.c: Regenerated.
79 * generated/any_l16.c: Regenerated.
80 * generated/any_l1.c: Regenerated.
81 * generated/any_l2.c: Regenerated.
82 * generated/any_l4.c: Regenerated.
83 * generated/any_l8.c: Regenerated.
84 * generated/count_16_l.c: Regenerated.
85 * generated/count_1_l.c: Regenerated.
86 * generated/count_2_l.c: Regenerated.
87 * generated/count_4_l.c: Regenerated.
88 * generated/count_8_l.c: Regenerated.
89 * generated/maxloc1_16_i16.c: Regenerated.
90 * generated/maxloc1_16_i1.c: Regenerated.
91 * generated/maxloc1_16_i2.c: Regenerated.
92 * generated/maxloc1_16_i4.c: Regenerated.
93 * generated/maxloc1_16_i8.c: Regenerated.
94 * generated/maxloc1_16_r10.c: Regenerated.
95 * generated/maxloc1_16_r16.c: Regenerated.
96 * generated/maxloc1_16_r4.c: Regenerated.
97 * generated/maxloc1_16_r8.c: Regenerated.
98 * generated/maxloc1_4_i16.c: Regenerated.
99 * generated/maxloc1_4_i1.c: Regenerated.
100 * generated/maxloc1_4_i2.c: Regenerated.
101 * generated/maxloc1_4_i4.c: Regenerated.
102 * generated/maxloc1_4_i8.c: Regenerated.
103 * generated/maxloc1_4_r10.c: Regenerated.
104 * generated/maxloc1_4_r16.c: Regenerated.
105 * generated/maxloc1_4_r4.c: Regenerated.
106 * generated/maxloc1_4_r8.c: Regenerated.
107 * generated/maxloc1_8_i16.c: Regenerated.
108 * generated/maxloc1_8_i1.c: Regenerated.
109 * generated/maxloc1_8_i2.c: Regenerated.
110 * generated/maxloc1_8_i4.c: Regenerated.
111 * generated/maxloc1_8_i8.c: Regenerated.
112 * generated/maxloc1_8_r10.c: Regenerated.
113 * generated/maxloc1_8_r16.c: Regenerated.
114 * generated/maxloc1_8_r4.c: Regenerated.
115 * generated/maxloc1_8_r8.c: Regenerated.
116 * generated/maxval_i16.c: Regenerated.
117 * generated/maxval_i1.c: Regenerated.
118 * generated/maxval_i2.c: Regenerated.
119 * generated/maxval_i4.c: Regenerated.
120 * generated/maxval_i8.c: Regenerated.
121 * generated/maxval_r10.c: Regenerated.
122 * generated/maxval_r16.c: Regenerated.
123 * generated/maxval_r4.c: Regenerated.
124 * generated/maxval_r8.c: Regenerated.
125 * generated/minloc1_16_i16.c: Regenerated.
126 * generated/minloc1_16_i1.c: Regenerated.
127 * generated/minloc1_16_i2.c: Regenerated.
128 * generated/minloc1_16_i4.c: Regenerated.
129 * generated/minloc1_16_i8.c: Regenerated.
130 * generated/minloc1_16_r10.c: Regenerated.
131 * generated/minloc1_16_r16.c: Regenerated.
132 * generated/minloc1_16_r4.c: Regenerated.
133 * generated/minloc1_16_r8.c: Regenerated.
134 * generated/minloc1_4_i16.c: Regenerated.
135 * generated/minloc1_4_i1.c: Regenerated.
136 * generated/minloc1_4_i2.c: Regenerated.
137 * generated/minloc1_4_i4.c: Regenerated.
138 * generated/minloc1_4_i8.c: Regenerated.
139 * generated/minloc1_4_r10.c: Regenerated.
140 * generated/minloc1_4_r16.c: Regenerated.
141 * generated/minloc1_4_r4.c: Regenerated.
142 * generated/minloc1_4_r8.c: Regenerated.
143 * generated/minloc1_8_i16.c: Regenerated.
144 * generated/minloc1_8_i1.c: Regenerated.
145 * generated/minloc1_8_i2.c: Regenerated.
146 * generated/minloc1_8_i4.c: Regenerated.
147 * generated/minloc1_8_i8.c: Regenerated.
148 * generated/minloc1_8_r10.c: Regenerated.
149 * generated/minloc1_8_r16.c: Regenerated.
150 * generated/minloc1_8_r4.c: Regenerated.
151 * generated/minloc1_8_r8.c: Regenerated.
152 * generated/minval_i16.c: Regenerated.
153 * generated/minval_i1.c: Regenerated.
154 * generated/minval_i2.c: Regenerated.
155 * generated/minval_i4.c: Regenerated.
156 * generated/minval_i8.c: Regenerated.
157 * generated/minval_r10.c: Regenerated.
158 * generated/minval_r16.c: Regenerated.
159 * generated/minval_r4.c: Regenerated.
160 * generated/minval_r8.c: Regenerated.
161 * generated/product_c10.c: Regenerated.
162 * generated/product_c16.c: Regenerated.
163 * generated/product_c4.c: Regenerated.
164 * generated/product_c8.c: Regenerated.
165 * generated/product_i16.c: Regenerated.
166 * generated/product_i1.c: Regenerated.
167 * generated/product_i2.c: Regenerated.
168 * generated/product_i4.c: Regenerated.
169 * generated/product_i8.c: Regenerated.
170 * generated/product_r10.c: Regenerated.
171 * generated/product_r16.c: Regenerated.
172 * generated/product_r4.c: Regenerated.
173 * generated/product_r8.c: Regenerated.
174 * generated/sum_c10.c: Regenerated.
175 * generated/sum_c16.c: Regenerated.
176 * generated/sum_c4.c: Regenerated.
177 * generated/sum_c8.c: Regenerated.
178 * generated/sum_i16.c: Regenerated.
179 * generated/sum_i1.c: Regenerated.
180 * generated/sum_i2.c: Regenerated.
181 * generated/sum_i4.c: Regenerated.
182 * generated/sum_i8.c: Regenerated.
183 * generated/sum_r10.c: Regenerated.
184 * generated/sum_r16.c: Regenerated.
185 * generated/sum_r4.c: Regenerated.
186 * generated/sum_r8.c: Regenerated.
188 2011-03-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
191 * io/write_float.def (write_float): Change MIN_FIELD_WIDTH to 48.
193 2011-03-04 Janne Blomqvist <jb@gcc.gnu.org>
196 * intrinsics/ctime.c (strctime): Use builtins to check localtime_r
199 2011-03-04 Janne Blomqvist <jb@gcc.gnu.org>
202 * intrinsics/ctime.c (strctime): Don't use return value of
205 2011-02-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
208 * io/write_float.def (output_float): Move handling of w = 0 to after
209 output rounding. Check for zero and set zero_flag accordingly. Set
210 width according to zero_flag. Add better comments.
212 2011-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
215 * io/list_read.c (namelist_read): Intialize the error string buffere.
216 If pprev_nl was used during the previous namelist read and the rank
217 was zero, reset the pointer to NULL for the next namelist read.
219 2011-02-26 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
222 * unix.c (fallback_access): Fix file descriptor leaks.
224 2011-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
226 * acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): Set shell variable
227 tested in configure.host.
228 * configure: Regenerate.
230 2011-02-24 Janne Blomqvist <jb@gcc.gnu.org>
233 * config.h.in: Regenerated.
234 * configure: Regenerated.
235 * configure.ac: Remove checks for ctime and ctime_r, add check for
237 * intrinsics/date_and_time.c (localtime_r): Move fallback
238 implementation to time_1.h.
239 * intrinsics/time_1.h (localtime_r): Fallback implementation.
240 * intrinsics/ctime.c: Include time_1.h.
241 (ctime_r): Remove fallback implementation.
242 (strctime): New function.
243 (fdate): Use strctime instead of ctime_r.
244 (fdate_sub): Likewise.
246 (ctime_sub): Likewise.
248 2011-02-24 Jakub Jelinek <jakub@redhat.com>
251 * io/transfer.c (read_sf): Call fbuf_getptr only at the end,
252 and subtract n, dtp->u.p.sf_seen_eor and seen_comma from it.
254 2011-02-24 Janne Blomqvist <jb@gcc.gnu.org>
257 * configure.ac: Add test for POSIX getpwuid_r.
258 * intrinsics/getlog.c (getlog): CPP test for
259 HAVE_POSIX_GETPWUID_R.
260 * config.h.in: Regenerated.
261 * configure: Regenerated.
263 2011-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
266 * io/write_float.def (output_float): Remove special case handling of
269 2011-02-23 Janne Blomqvist <jb@gcc.gnu.org>
270 Jerry DeLisle <jvdelisle@gcc.gnu.org>
273 * io/fbuf.h (fbuf_getptr): New inline function.
274 * io/transfer.c (read_sf): Use fbuf_getptr and fbuf_getc to scan
275 through the string instead of fbuf_read.
277 2011-02-22 Tobias Burnus <burnus@net-b.de>
278 Kai-Uwe Eckhardt <kuehro@gmx.de>
281 * intrinsics/c99_functions.c (roundl): Make C valid for
284 2011-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
287 * io/write_float.def (output_float): Adjust width for F0.d to
288 allow space for negative signs on zero.
290 2011-02-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
293 * io/list_read.c (read_logical): Check for end of line before calling
294 eat_line. (read_integer): Likewise. (parse_real): Don't unget the
295 separator. Check for end of line before calling eat_line.
296 (read_complex): Allow line-end before and after parenthesis and comma.
297 Check for end of line before calling eat_line. (read_real): Check for
298 end of line before calling eat_line.
300 2011-02-16 Jakub Jelinek <jakub@redhat.com>
303 * gfortran.map (GFORTRAN_1.4): Export
304 _gfortran_{m,s}i{all,any,parity}_i{1,2,4,8,16} and
305 _gfortran_{cshift0,eoshift{0,2}}_16_char4.
307 2011-02-15 Tobias Burnus <burnus@net-b.de>
311 * acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Use check from
312 libquadmath, which uses more features.
313 * configure: Regenerate.
315 2011-02-14 Jakub Jelinek <jakub@redhat.com>
318 * io/write_float.def (DTOAQ): Use quadmath_snprintf instead of
319 quadmath_flt128tostr.
320 * io/transfer128.c (tmp2): Initialize to quadmath_snprintf instead
321 of quadmath_flt128tostr.
323 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
325 * Makefile.in: Regenerate.
326 * aclocal.m4: Likewise.
327 * configure: Likewise.
329 2011-02-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
332 * io/write_float.def (output_float): Eliminate some redundant code.
333 Adjust width for case of F0.X for values of zero and all other values.
334 Expand cases where '*' is set to give cleaner results.
336 2011-02-05 Janne Blomqvist <jb@gcc.gnu.org>
339 * intrinsics/time_1.h (GF_CLOCK_MONOTONIC): Move to system_clock.c.
340 (weak_gettime): Likewise.
341 (gf_gettime): Change API, move weak_gettime() usage to
343 * intrinsics/system_clock.c (GTHREAD_USE_WEAK): Define.
344 (gf_gettime_mono): New function.
345 (system_clock_4): Use gf_gettime_mono().
346 (system_clock_8): Likewise.
347 * intrinsics/date_and_time.c (date_and_time): Update gf_gettime()
350 2011-02-02 Janne Blomqvist <jb@gcc.gnu.org>
353 * configure: Regenerated.
354 * configure.ac: Don't add librt to LIBS.
355 * intrinsics/time_1.h (weak_gettime): Weakref trickery for
357 (gf_gettime): Use weak_gettime() instead of clock_gettime().
359 2011-02-01 Janne Blomqvist <jb@gcc.gnu.org>
361 * intrinsics/time_1.h: Include errno.h needed by fallbacks.
363 2011-01-31 Janne Blomqvist <jb@gcc.gnu.org>
365 * intrinsics/time_1.h: Fix definition of GF_CLOCK_MONOTONIC macro.
367 2011-01-31 Janne Blomqvist <jb@gcc.gnu.org>
369 * configure.ac: Check for clock_gettime().
370 * configure: Regenerated.
371 * config.h.in: Regenerated.
372 * intrinsics/time_1.h (__time_1): Rename to gf_cputime, add
374 (gf_gettime): New function.
375 * intrinsics/cpu_time.c (__cpu_time_1): Update to call gf_cputime.
376 * intrinsics/date_and_time.c (date_and_time): Use gf_gettime.
377 * intrinsics/dtime.c (dtime_sub): Use gf_cputime.
378 * intrinsics/etime.c (etime_sub): Use gf_cputime.
379 * intrinsics/system_clock.c (system_clock_4): Use gf_gettime.
380 (system_clock_8): Use gf_gettime, increase count rate to allow
381 nanosecond precision, remove overflow prone branch.
383 2011-01-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
386 * io/write_float.def (write_infnan): Use calculate_sign to determine
387 if the sign should be given and check field widths accordingly.
389 2011-01-29 Kai Tietz <kai.tietz@onevision.com>
391 * intrinsics/ctime.c (ctime_r): Improve implementation.
393 2011-01-27 Janne Blomqvist <jb@gcc.gnu.org>
396 * config.h.in: Regenerated.
397 * configure: Regenerated.
398 * configure.ac: Add check for ctime_r().
399 * intrinsics/ctime.c (ctime_r): Fallback implementation.
400 (fdate): Use ctime_r() instead of ctime().
401 (fdate_sub): Likewise.
403 (ctime_sub): Likewise.
405 2011-01-27 Janne Blomqvist <jb@gcc.gnu.org>
408 * config.h.in: Regenerated.
409 * configure: Regenerated.
410 * configure.ac: Add check for ttyname_r.
411 * io/unix.h: Add TTY_NAME_MAX, change stream_ttyname prototype.
412 * io/unix.c (stream_ttyname): Use ttyname_r if available, conform
414 * io/inquire.c (inquire_via_unit): Use changed stream_ttyname.
415 * io/intrinsics.c (ttynam_sub): Likewise.
418 2011-01-27 Janne Blomqvist <jb@gcc.gnu.org>
421 * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS to enable common
423 * config.h.in: Regenerate.
424 * configure: Regenerate.
426 2011-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
429 * io/write_float.def (write_infnan): Adjust processor selected width
432 2011-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
435 * io/write_float.def (output_float): Return SUCCESS or FAILURE and use
436 the result to set the padding.
438 2011-01-26 Kai Tietz <kai.tietz@onevision.com>
440 * intrinsics/getlog.c (getlog): Fix label/statement issue.
442 2011-01-25 Janne Blomqvist <jb@gcc.gnu.org>
445 * config.h.in: Regenerated.
446 * configure: Regenerated.
447 * configure.ac: Add check for getpwuid_r.
448 * intrinsics/getlog.c (getlog): Use getpwuid_r() if available.
450 2011-01-22 Janne Blomqvist <jb@gcc.gnu.org>
453 * config.h.in: Regenerated.
454 * configure: Regenerated.
455 * configure.ac: Check presence of strerror_r.
456 * intrinsics/gerror.c (gerror): Use gf_strerror, modify logic.
457 * io/unix.c (get_oserror): Remove.
458 * libgfortran.h (gf_strerror): Add prototype.
459 (get_oserror): Remove prototype.
460 * runtime/error.c (gf_strerror): New function.
461 (os_error): Use gf_strerror instead of get_oserror.
462 (generate_errror): Likewise.
464 2011-01-17 Janne Blomqvist <jb@gcc.gnu.org>
467 * io/unix.c (tempfile): Set opp->file and opp->file_len also if an
470 2011-01-16 Jakub Jelinek <jakub@redhat.com>
473 * io/write_float.def (DTOAQ): Use quadmath_flt128tostr
474 instead of quadmath_dtoa.
475 * io/transfer128.c (tmp1, tmp2): New variables, bring in
476 strtoflt128 and quadmath_flt128tostr.
477 (transfer_real128, transfer_real128_write, transfer_complex128,
478 transfer_complex128_write): Remove tmp1/tmp2 variables.
479 * io/read.c (convert_real): Use strtoflt128 instead of
480 quadmath_strtopQ, adjust for the changed arguments and return
483 2011-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
486 * io/unix.c (unpack_filename): Return non-zero if the filename passed
489 2011-01-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
492 * io/list_read.c (namelist_read): Remove calls to hit_eof to avoid the
493 duplicate calls via next_record.
496 Copyright (C) 2011 Free Software Foundation, Inc.
498 Copying and distribution of this file, with or without modification,
499 are permitted in any medium without royalty provided the copyright
500 notice and this notice are preserved.