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