devirt3.C: New test.
[gcc.git] / libgfortran / ChangeLog
1 2013-10-01 Tobias Burnus <burnus@net-b.de>
2
3 PR fortran/55469
4 * io/list_read (parse_repeat, read_integer, read_character,
5 parse_real, read_real, check_type, list_formatted_read_scalar,
6 finish_list_read): Call list_free.
7
8 2013-09-20 Alan Modra <amodra@gmail.com>
9
10 * configure: Regenerate.
11
12 2013-07-23 Uros Bizjak <ubizjak@gmail.com>
13
14 * config/fpu-387.h (get_fpu_rounding_mode): Read rounding mode
15 from SSE mxcsr register on x86_64.
16
17 2013-07-21 Ondřej Bílka <neleai@seznam.cz>
18
19 * io/transfer.c: Fix comment typos.
20
21 2013-07-21 Tobias Burnus <burnus@net-b.de>
22
23 PR fortran/35862
24 * config/fpu-387.h (set_fpu_rounding_mode,
25 get_fpu_rounding_mode): Add missing _ to fix build.
26
27 2013-07-21 Tobias Burnus <burnus@net-b.de>
28 Uros Bizjak <ubizjak@gmail.com>
29
30 PR fortran/35862
31 * libgfortran.h (set_fpu_rounding_mode,
32 get_fpu_rounding_mode): New prototypes.
33 * config/fpu-387.h (set_fpu_rounding_mode,
34 get_fpu_rounding_mode): New functions.
35 * config/fpu-aix.h (set_fpu_rounding_mode,
36 get_fpu_rounding_mode): Ditto.
37 * config/fpu-generic.h (set_fpu_rounding_mode,
38 get_fpu_rounding_mode): Ditto.
39 * config/fpu-glibc.h (set_fpu_rounding_mode,
40 get_fpu_rounding_mode): Ditto.
41 * config/fpu-sysv.h (set_fpu_rounding_mode,
42 get_fpu_rounding_mode): Ditto.
43 * configure.ac: Check for fp_rnd and fp_rnd_t.
44 * io/io.h (enum unit_round): Use GFC_FPE_* for the value.
45 * io/read.c (convert_real): Set FP ronding mode.
46 * Makefile.in: Regenerate.
47 * aclocal.m4: Regenerate.
48 * config.h.in: Regenerate.
49 * configure: Regenerate.
50
51 2013-06-24 Tobias Burnus <burnus@net-b.de>
52
53 * configure.ac: Check for fp_except and fp_except_t.
54 * config/fpu-sysv.h: Conditionally use either type.
55 * configure: Regenerate.
56 * config.h.in: Regenerate.
57
58 2013-06-21 Eric Botcazou <ebotcazou@adacore.com>
59
60 * config/fpu-sysv.h (get_fpu_except_flags): Fix typo.
61
62 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
63
64 * config/fpu-387.h (_FPU_MASK_ALL): New.
65 (_FPU_EX_ALL): Ditto.
66 (set_fpu): Use fstcw to store x87 FPU control word. Use fnclex to
67 clear stalled exception flags. Correctly clear stalled SSE
68 exception flags. Simplify code.
69 (get_fpu_except_flags): Simplify code.
70
71 2013-06-20 Tobias Burnus <burnus@net-b.de>
72
73 PR fortran/57633
74 * io/list_read.c (next_char, eat_separator): Don't set EOL for \r.
75
76 2013-06-19 Uros Bizjak <ubizjak@gmail.com>
77
78 * config/fpu-387.h: Use __asm__ and __volatile__ consistently.
79 (get_fpu_except_flags): Initialize result.
80
81 2013-06-17 Tobias Burnus <burnus@net-b.de>
82
83 * libgfortran.h (compile_options_t) Add fpe_summary.
84 (get_fpu_except_flags): New prototype.
85 * runtime/compile_options.c (set_options, init_compile_options):
86 Handle fpe_summary.
87 * runtime/stop.c (report_exception): New function.
88 (stop_numeric, stop_numeric_f08, stop_string, error_stop_string,
89 error_stop_numeric): Call it.
90 * config/fpu-387.h (get_fpu_except_flags): New function.
91 * config/fpu-aix.h (get_fpu_except_flags): New function.
92 * config/fpu-generic.h (get_fpu_except_flags): New function.
93 * config/fpu-glibc.h (get_fpu_except_flags): New function.
94 * config/fpu-sysv.h (get_fpu_except_flags): New function.
95 * configure.ac: Check for fpxcp.h.
96 * configure: Regenerate.
97 * config.h.in: Regenerate.
98
99 2013-06-01 Tobias Burnus <burnus@net-b.de>
100
101 PR fortran/57496
102 * io/write_float.def (ISFINITE2Q, ISFINITE2, ISFINITE2L, ISFINITE,
103 SIGNBIT2Q, SIGNBIT2, SIGNBIT2L, SIGNBIT, ISNAN2Q, ISNAN2, ISNAN2L,
104 ISNAN): New macros.
105 (output_float_FMT_G_,WRITE_FLOAT): Use them.
106
107 2013-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
108
109 * acinclude.m4 (libgfor_cv_have_as_needed): Check for -z ignore, too.
110 * configure: Regenerate.
111
112 2013-05-05 David Edelsohn <dje.gcc@gmail.com>
113
114 * caf/libcaf.h (_gfortran_caf_critical): Add a prototype.
115 (_gfortran_caf_end_critical): Same.
116
117 2013-05-04 David Edelsohn <dje.gcc@gmail.com>
118
119 * runtime/environ.c: Include unistd.h.
120 * runtime/pause.c: Test HAVE_UNISTD_H.
121 * runtime/stop.c: Same.
122 * io/open.c: Same.
123 * io/unix.c: Same.
124 * io/read.c (si_max): Protect declaration of value.
125
126 2013-04-29 Janne Blomqvist <jb@gcc.gnu.org>
127
128 * intrinsics/system_clock (gf_gettime_mono): Use variable
129 resolution for fractional seconds argument.
130 (system_clock_4): Simplify, update for gf_gettime_mono change.
131 (system_clock_8): Likewise.
132
133 2013-04-29 Janne Blomqvist <jb@gcc.gnu.org>
134
135 PR fortran/56981
136 * io/transfer.c (next_record_w_unf): First fix head marker, then
137 write tail.
138 (next_record): Call flush_if_unbuffered.
139 * io/unix.c (struct unix_stream): Add field unbuffered.
140 (flush_if_unbuffered): New function.
141 (fd_to_stream): New argument.
142 (open_external): Fix fd_to_stream call.
143 (input_stream): Likewise.
144 (output_stream): Likewise.
145 (error_stream): Likewise.
146 * io/unix.h (flush_if_unbuffered): New prototype.
147
148 2013-04-28 Janne Blomqvist <jb@gcc.gnu.org>
149
150 * intrinsics/system_clock.c (system_clock_4): Fix sign error in
151 Windows version.
152
153 2013-04-15 Tobias Burnus <burnus@net-b.de>
154
155 * list_read.c (finish_separator): Initialize variable.
156
157 2013-04-15 Janne Blomqvist <jb@gcc.gnu.org>
158
159 PR fortran/56919
160 * intrinsics/time_1.h: Check __CYGWIN__ in addition to
161 __MINGW32__.
162 * intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check
163 _POSIX_MONOTONIC_CLOCK as well.
164 (system_clock_4): Use GetTickCount on Windows.
165 (system_clock_8): Use QueryPerformanceCounter and
166 QueryPerformanceCounterFrequency on Windows.
167
168 2013-04-04 Tobias Burnus <burnus@net-b.de>
169
170 PR fortran/56810
171 * io/list_read.c (check_type): Fix kind checking for COMPLEX.
172
173 2013-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
174
175 PR libfortran/56660
176 * io/list_read.c (nml_read_obj): Do not reset the read error flag
177 inside nml_read_obj. If the read error flag is found set just exit.
178 Fix some whitespace on comments.
179 (nml_read_obj_data): Reset the read error flag before the first call
180 to nml_read_object.
181
182 2013-03-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
183
184 PR libfortran/56786
185 * io/list_read.c (nml_parse_qualifier): Remove spurious next_char call
186 when checking for EOF. Use error return mechanism when EOF detected.
187 Do not return false unless parse_err_msg and parse_err_msg_size have
188 been set. Use hit_eof.
189 (nml_get_obj_data): Likewise use the correct error mechanism.
190 * io/transfer.c (hit_eof): Do not set AFTER_ENDFILE if in namelist
191 mode.
192
193 2013-03-29 Tobias Burnus <burnus@net-b.de>
194
195 PR fortran/56737
196 * io/format.c (parse_format_list): Also cache FMT_STRING.
197 (parse_format): Update call.
198
199 2013-03-29 Tobias Burnus <burnus@net-b.de>
200
201 PR fortran/56737
202 * io/format.c (parse_format): With caching, copy
203 dtp->format string.
204 (save_parsed_format): Use dtp->format directy without
205 copying.
206
207 2013-03-29 Tobias Burnus <burnus@net-b.de>
208
209 PR fortran/56735
210 * io/list_read.c (nml_query): Only abort when
211 an error occured.
212 (namelist_read): Add goto instead of falling through.
213
214 2013-03-25 Tilo Schwarz <tilo@tilo-schwarz.de>
215
216 PR libfortran/52512
217 * io/list_read.c (nml_parse_qualifier): To check for a derived type
218 don't use the namelist head element type but the current element type.
219 (nml_get_obj_data): Add current namelist element type to
220 nml_parse_qualifier call.
221
222 2013-03-24 Tobias Burnus <burnus@net-b.de>
223
224 PR fortran/56696
225 * io/list_read.c (read_real): Fix EOF diagnostic.
226
227 2013-03-20 Tilo Schwarz <tilo@tilo-schwarz.de>
228
229 PR libfortran/51825
230 * io/list_read.c (nml_read_obj): Don't end the component loop on a
231 nested derived type, but continue with the next loop iteration.
232 (nml_get_obj_data): Don't move the first_nl pointer further in the
233 list if a qualifier was found.
234
235 2013-03-20 Tilo Schwarz <tilo@tilo-schwarz.de>
236
237 PR libfortran/48618
238 * io/open.c (st_open): Raise error for unit number < 0 only if
239 unit number does not exist already.
240
241 2013-03-19 Janne Blomqvist <jb@gcc.gnu.org>
242
243 * libgfortran.h: Include stdbool.h.
244 (enum try): Remove.
245 (notify_std): Change return type to bool.
246 * intrinsics/chmod.c: Don't include stdbool.h.
247 * intrinsics/execute_command_line.c: Likewise.
248 * io/format.c: Likewise.
249 * io/list_read.c (nml_parse_qualifier): Change return type to bool.
250 (nml_read_obj): Likewise.
251 (nml_get_obj_data): Likewise.
252 * io/transfer.c (read_block_form): Fix comment.
253 (write_buf): Change return type to bool.
254 * io/write.c: Don't include stdbool.h.
255 * io/write_float.def (output_float): Change return type to bool.
256 (output_float_FMT_G_ ## x): Change type of result variable.
257 * runtime/error.c (notify_std): Change return type to bool.
258
259 2013-03-11 Tobias Burnus <burnus@net-b.de>
260
261 * io/transfer.c (read_block_direct): Correct condition.
262 * intrinsics/execute_command_line.c (execute_command_line):
263 Remove dead code for the HAVE_FORK case.
264
265 2013-02-21 Janne Blomqvist <jb@gcc.gnu.org>
266
267 PR libfortran/30162
268 * io/open.c (test_endfile): Call stell only if size != 0.
269 * io/unix.c (raw_tell): Revert r194679.
270 (raw_size): Return size field only for regular files, otherwise 0.
271
272 2013-02-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
273
274 PR target/56347
275 * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): Remove check for
276 broken powf.
277 * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Likewise.
278 * intrinsics/c99_functions.c: Likewise.
279 * configure: Rebuilt.
280 * config.h.in: Rebuilt.
281
282 2013-02-06 Janus Weil <janus@gcc.gnu.org>
283
284 PR fortran/55978
285 * runtime/in_pack_generic.c (internal_pack): Return if base_addr is
286 NULL.
287
288 2013-01-23 Janne Blomqvist <jb@gcc.gnu.org>
289
290 * io/file_pos.c (unformatted_backspace): Use __builtin_bswapXX
291 instead of reverse_memcpy.
292 * io/io.h (reverse_memcpy): Remove prototype.
293 * io/transfer.c (reverse_memcpy): Make static, move towards
294 beginning of file.
295 (bswap_array): New function.
296 (unformatted_read): Use bswap_array to byte swap the data
297 in-place.
298 (unformatted_write): Use a larger temp buffer and bswap_array.
299 (us_read): Use __builtin_bswapXX instead of reverse_memcpy.
300 (write_us_marker): Likewise.
301
302 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
303
304 Update copyright years.
305
306 2013-01-06 Tobias Burnus <burnus@net-b.de>
307
308 PR fortran/54678
309 * intrinsics/env.c (get_environment_variable_i8): Don't use
310 uninitialized variable.
311
312 2013-01-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>
313
314 PR libfortran/55818
315 * io/list_read.c (read_real): Do not call hit_eof when EOF can be
316 treated as a value separator.
317 (parse_real): Likewise.
318 (read_logical): Likewise.
319 (read_character): Likewise.
320 (read_complex): Likewise.
321 \f
322 Copyright (C) 2013 Free Software Foundation, Inc.
323
324 Copying and distribution of this file, with or without modification,
325 are permitted in any medium without royalty provided the copyright
326 notice and this notice are preserved.