2014-01-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libgfortran / ChangeLog
blob308ae8d0023d9a8a54354d28c01fd216c5069997
1 2014-01-11  Jerry DeLisle  <jvdelisle@gcc.gnu>
2             Dominique d'Humieres  <dominiq@lps.ens.fr>
3             Steven G. Kargl  <kargl@gcc.gnu.org>
5         PR libfortran/59700
6         PR libfortran/59764
7         * io/io.h (struct st_parameter_dt): Assign expanded_read flag to
8         unused bit. Define new variable line_buffer_pos.
9         * io/list_read.c (free_saved, next_char, l_push_char,
10         read_logical, read_real): Replace use of item_count with
11         line_buffer_pos for line_buffer look ahead.
12         (read_logical, read_integer, parse_real, read_real, check_type):
13         Adjust location of free_line to after generating error messages
14         to retain the correct item count for the message. 
16 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
18         Update copyright years
20 2013-12-18  Steven G. Kargl  <kargl@gcc.gnu.org>
22         * io/read.c (read_f): Convert assert to runtime error.
24 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
26         * io/unix.c (tempfile_open): Only use the needed flag O_CLOEXEC.
28 2013-12-16  Jerry DeLisle  <jvdelisle@gcc.gnu>
30         PR libfortran/59419
31         * io/file_pos.c (st_rewind): Do proper return after
32         generate_error.
33         * io/open.c (edit_modes): Move action code inside block that
34         checks for library ok. (new_unit): Do cleanup after error.
35         (st_open): Do proper return after error.
36         * io/transfer.c (data_transfer_init): Likewise.
37         
38 2013-12-11  Tobias Burnus  <burnus@net-b.de>
40         * config/fpu-387.h (sigill_hdlr, get_fpu_rounding_mode): Emit SSE
41         instructions when __SSE_MATH__ is defined.
43 2013-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
45         * intrinsics/erfc_scaled.c (_M_2_SQRTPI): Define if missing.
47 2013-12-01  Uros Bizjak  <ubizjak@gmail.com>
49         PR libfortran/59313
50         * intrinsics/erfc_scaled.c (erfc_scaled_r16): Also provide for
51         quadruple precision long double variant.
53 2013-11-20  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
55         * intrinsics/erfc_scaled.c (erfc_scaled_r16): Don't define if
56         __float128 is not available.
58 2013-11-20  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
60         PR libfortran/49024
61         * intrinsics/erfc_scaled.c (erfc_scaled_r16): New function.
62         * intrinsics/erfc_scaled_inc.c: Do not provide quadruple
63         precision variant.
65 2013-11-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
67         PR libfortran/51828
68         * intrinsics/unpack_generic.c (unpack_internal): Let the compiler
69         know that dim > 0 to avoid warnings.
71 2013-11-15  Janne Blomqvist  <jb@gcc.gnu.org>
72             Jerry DeLisle  <jvdelisle@gcc.gnu.org>
74         PR fortran/59108
75         * io/unix.c (regular_file): Don't set O_CREAT when opening a file
76         read-only with unknown status. Mask out O_CREAT when falling back
77         to opening read-only if ACTION= is not set and read-write fails.
79 2013-11-15  Steve Ellcey  <sellcey@mips.com>
81         * configure.ac: Do not define HAVE_STRTOLD.
82         * configure: Regenerate.
84 2013-11-10  Janne Blomqvist  <jb@gcc.gnu.org>
86         * configure.ac: Check presence of mkostemp.
87         * io/unix.c (set_close_on_exec): New function.
88         (tempfile_open): Use mkostemp and O_CLOEXEC if available, fallback
89         to calling set_close_on_exec.
90         (regular_file): Add O_CLOEXEC to flags if defined.
91         (open_external): Call set_close_on_exec if O_CLOEXEC is not
92         defined.
93         * config.h.in: Regenerated.
94         * configure: Regenerated.
95         * Makefile.in: Regenerated.
96         * aclocal.m4: Regenerated.
98 2013-10-01  Tobias Burnus  <burnus@net-b.de>
100         PR fortran/55469
101         * io/list_read (parse_repeat, read_integer, read_character,
102         parse_real, read_real, check_type, list_formatted_read_scalar,
103         finish_list_read): Call list_free.
105 2013-09-20  Alan Modra  <amodra@gmail.com>
107         * configure: Regenerate.
109 2013-07-23  Uros Bizjak  <ubizjak@gmail.com>
111         * config/fpu-387.h (get_fpu_rounding_mode): Read rounding mode
112         from SSE mxcsr register on x86_64.
114 2013-07-21  Ondřej Bílka  <neleai@seznam.cz>
116         * io/transfer.c: Fix comment typos.
118 2013-07-21  Tobias Burnus  <burnus@net-b.de>
120         PR fortran/35862
121         * config/fpu-387.h (set_fpu_rounding_mode,
122         get_fpu_rounding_mode): Add missing _ to fix build.
124 2013-07-21  Tobias Burnus  <burnus@net-b.de>
125             Uros Bizjak  <ubizjak@gmail.com>
127         PR fortran/35862
128         * libgfortran.h (set_fpu_rounding_mode,
129         get_fpu_rounding_mode): New prototypes.
130         * config/fpu-387.h (set_fpu_rounding_mode,
131         get_fpu_rounding_mode): New functions.
132         * config/fpu-aix.h (set_fpu_rounding_mode,
133         get_fpu_rounding_mode): Ditto.
134         * config/fpu-generic.h (set_fpu_rounding_mode,
135         get_fpu_rounding_mode): Ditto.
136         * config/fpu-glibc.h (set_fpu_rounding_mode,
137         get_fpu_rounding_mode): Ditto.
138         * config/fpu-sysv.h (set_fpu_rounding_mode,
139         get_fpu_rounding_mode): Ditto.
140         * configure.ac: Check for fp_rnd and fp_rnd_t.
141         * io/io.h (enum unit_round): Use GFC_FPE_* for the value.
142         * io/read.c (convert_real): Set FP ronding mode.
143         * Makefile.in: Regenerate.
144         * aclocal.m4: Regenerate.
145         * config.h.in: Regenerate.
146         * configure: Regenerate.
148 2013-06-24  Tobias Burnus  <burnus@net-b.de>
150         * configure.ac: Check for fp_except and fp_except_t.
151         * config/fpu-sysv.h: Conditionally use either type.
152         * configure: Regenerate.
153         * config.h.in: Regenerate.
155 2013-06-21  Eric Botcazou  <ebotcazou@adacore.com>
157         * config/fpu-sysv.h (get_fpu_except_flags): Fix typo.
159 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
161         * config/fpu-387.h (_FPU_MASK_ALL): New.
162         (_FPU_EX_ALL): Ditto.
163         (set_fpu): Use fstcw to store x87 FPU control word. Use fnclex to
164         clear stalled exception flags.  Correctly clear stalled SSE
165         exception flags.  Simplify code.
166         (get_fpu_except_flags): Simplify code.
168 2013-06-20  Tobias Burnus  <burnus@net-b.de>
170         PR fortran/57633
171         * io/list_read.c (next_char, eat_separator): Don't set EOL for \r.
173 2013-06-19  Uros Bizjak  <ubizjak@gmail.com>
175         * config/fpu-387.h: Use __asm__ and __volatile__ consistently.
176         (get_fpu_except_flags): Initialize result.
178 2013-06-17  Tobias Burnus  <burnus@net-b.de>
180         * libgfortran.h (compile_options_t) Add fpe_summary.
181         (get_fpu_except_flags): New prototype.
182         * runtime/compile_options.c (set_options, init_compile_options):
183         Handle fpe_summary.
184         * runtime/stop.c (report_exception): New function.
185         (stop_numeric, stop_numeric_f08, stop_string, error_stop_string,
186         error_stop_numeric): Call it.
187         * config/fpu-387.h (get_fpu_except_flags): New function.
188         * config/fpu-aix.h (get_fpu_except_flags): New function.
189         * config/fpu-generic.h (get_fpu_except_flags): New function.
190         * config/fpu-glibc.h (get_fpu_except_flags): New function.
191         * config/fpu-sysv.h (get_fpu_except_flags): New function.
192         * configure.ac: Check for fpxcp.h.
193         * configure: Regenerate.
194         * config.h.in: Regenerate.
196 2013-06-01  Tobias Burnus  <burnus@net-b.de>
198         PR fortran/57496
199         * io/write_float.def (ISFINITE2Q, ISFINITE2, ISFINITE2L, ISFINITE,
200         SIGNBIT2Q, SIGNBIT2, SIGNBIT2L, SIGNBIT, ISNAN2Q, ISNAN2, ISNAN2L,
201         ISNAN): New macros.
202         (output_float_FMT_G_,WRITE_FLOAT): Use them.
204 2013-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
206         * acinclude.m4 (libgfor_cv_have_as_needed): Check for -z ignore, too.
207         * configure: Regenerate.
209 2013-05-05  David Edelsohn  <dje.gcc@gmail.com>
211         * caf/libcaf.h (_gfortran_caf_critical): Add a prototype.
212         (_gfortran_caf_end_critical): Same.
214 2013-05-04  David Edelsohn  <dje.gcc@gmail.com>
216         * runtime/environ.c: Include unistd.h.
217         * runtime/pause.c: Test HAVE_UNISTD_H.
218         * runtime/stop.c: Same.
219         * io/open.c: Same.
220         * io/unix.c: Same.
221         * io/read.c (si_max): Protect declaration of value.
223 2013-04-29  Janne Blomqvist  <jb@gcc.gnu.org>
225         * intrinsics/system_clock (gf_gettime_mono): Use variable
226         resolution for fractional seconds argument.
227         (system_clock_4): Simplify, update for gf_gettime_mono change.
228         (system_clock_8): Likewise.
230 2013-04-29  Janne Blomqvist  <jb@gcc.gnu.org>
232         PR fortran/56981
233         * io/transfer.c (next_record_w_unf): First fix head marker, then
234         write tail.
235         (next_record): Call flush_if_unbuffered.
236         * io/unix.c (struct unix_stream): Add field unbuffered.
237         (flush_if_unbuffered): New function.
238         (fd_to_stream): New argument.
239         (open_external): Fix fd_to_stream call.
240         (input_stream): Likewise.
241         (output_stream): Likewise.
242         (error_stream): Likewise.
243         * io/unix.h (flush_if_unbuffered): New prototype.
245 2013-04-28  Janne Blomqvist  <jb@gcc.gnu.org>
247         * intrinsics/system_clock.c (system_clock_4): Fix sign error in
248         Windows version.
250 2013-04-15  Tobias Burnus  <burnus@net-b.de>
252         * list_read.c (finish_separator): Initialize variable.
254 2013-04-15  Janne Blomqvist  <jb@gcc.gnu.org>
256         PR fortran/56919
257         * intrinsics/time_1.h: Check __CYGWIN__ in addition to
258         __MINGW32__.
259         * intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check
260         _POSIX_MONOTONIC_CLOCK as well.
261         (system_clock_4): Use GetTickCount on Windows.
262         (system_clock_8): Use QueryPerformanceCounter and
263         QueryPerformanceCounterFrequency on Windows.
265 2013-04-04  Tobias Burnus  <burnus@net-b.de>
267         PR fortran/56810
268         * io/list_read.c (check_type): Fix kind checking for COMPLEX.
270 2013-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
272         PR libfortran/56660
273         * io/list_read.c (nml_read_obj): Do not reset the read error flag
274         inside nml_read_obj. If the read error flag is found set just exit.
275         Fix some whitespace on comments.
276         (nml_read_obj_data): Reset the read error flag before the first call
277         to nml_read_object.
279 2013-03-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
281         PR libfortran/56786
282         * io/list_read.c (nml_parse_qualifier): Remove spurious next_char call
283         when checking for EOF. Use error return mechanism when EOF detected.
284         Do not return false unless parse_err_msg and parse_err_msg_size have
285         been set. Use hit_eof.
286         (nml_get_obj_data): Likewise use the correct error mechanism.
287         * io/transfer.c (hit_eof): Do not set AFTER_ENDFILE if in namelist
288         mode.
290 2013-03-29  Tobias Burnus  <burnus@net-b.de>
292         PR fortran/56737
293         * io/format.c (parse_format_list): Also cache FMT_STRING.
294         (parse_format): Update call.
296 2013-03-29  Tobias Burnus  <burnus@net-b.de>
298         PR fortran/56737
299         * io/format.c (parse_format): With caching, copy
300         dtp->format string.
301         (save_parsed_format): Use dtp->format directy without
302         copying.
304 2013-03-29  Tobias Burnus  <burnus@net-b.de>
306         PR fortran/56735
307         * io/list_read.c (nml_query): Only abort when
308         an error occured.
309         (namelist_read): Add goto instead of falling through.
311 2013-03-25  Tilo Schwarz  <tilo@tilo-schwarz.de>
313         PR libfortran/52512
314         * io/list_read.c (nml_parse_qualifier): To check for a derived type
315         don't use the namelist head element type but the current element type.
316         (nml_get_obj_data): Add current namelist element type to
317         nml_parse_qualifier call.
319 2013-03-24  Tobias Burnus  <burnus@net-b.de>
321         PR fortran/56696
322         * io/list_read.c (read_real): Fix EOF diagnostic.
324 2013-03-20  Tilo Schwarz  <tilo@tilo-schwarz.de>
326         PR libfortran/51825
327         * io/list_read.c (nml_read_obj): Don't end the component loop on a
328         nested derived type, but continue with the next loop iteration.
329         (nml_get_obj_data): Don't move the first_nl pointer further in the
330         list if a qualifier was found.
332 2013-03-20  Tilo Schwarz  <tilo@tilo-schwarz.de>
334         PR libfortran/48618
335         * io/open.c (st_open): Raise error for unit number < 0 only if
336         unit number does not exist already.
338 2013-03-19  Janne Blomqvist  <jb@gcc.gnu.org>
340         * libgfortran.h: Include stdbool.h.
341         (enum try): Remove.
342         (notify_std): Change return type to bool.
343         * intrinsics/chmod.c: Don't include stdbool.h.
344         * intrinsics/execute_command_line.c: Likewise.
345         * io/format.c: Likewise.
346         * io/list_read.c (nml_parse_qualifier): Change return type to bool.
347         (nml_read_obj): Likewise.
348         (nml_get_obj_data): Likewise.
349         * io/transfer.c (read_block_form): Fix comment.
350         (write_buf): Change return type to bool.
351         * io/write.c: Don't include stdbool.h.
352         * io/write_float.def (output_float): Change return type to bool.
353         (output_float_FMT_G_ ## x): Change type of result variable.
354         * runtime/error.c (notify_std): Change return type to bool.
356 2013-03-11  Tobias Burnus  <burnus@net-b.de>
358         * io/transfer.c (read_block_direct): Correct condition.
359         * intrinsics/execute_command_line.c (execute_command_line):
360         Remove dead code for the HAVE_FORK case.
362 2013-02-21  Janne Blomqvist  <jb@gcc.gnu.org>
364         PR libfortran/30162
365         * io/open.c (test_endfile): Call stell only if size != 0.
366         * io/unix.c (raw_tell): Revert r194679.
367         (raw_size): Return size field only for regular files, otherwise 0.
369 2013-02-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
371         PR target/56347
372         * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): Remove check for
373         broken powf.
374         * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Likewise.
375         * intrinsics/c99_functions.c: Likewise.
376         * configure: Rebuilt.
377         * config.h.in: Rebuilt.
379 2013-02-06  Janus Weil  <janus@gcc.gnu.org>
381         PR fortran/55978
382         * runtime/in_pack_generic.c (internal_pack): Return if base_addr is
383         NULL.
385 2013-01-23  Janne Blomqvist  <jb@gcc.gnu.org>
387         * io/file_pos.c (unformatted_backspace): Use __builtin_bswapXX
388         instead of reverse_memcpy.
389         * io/io.h (reverse_memcpy): Remove prototype.
390         * io/transfer.c (reverse_memcpy): Make static, move towards
391         beginning of file.
392         (bswap_array): New function.
393         (unformatted_read): Use bswap_array to byte swap the data
394         in-place.
395         (unformatted_write): Use a larger temp buffer and bswap_array.
396         (us_read): Use __builtin_bswapXX instead of reverse_memcpy.
397         (write_us_marker): Likewise.
399 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
401         Update copyright years.
403 2013-01-06  Tobias Burnus  <burnus@net-b.de>
405         PR fortran/54678
406         * intrinsics/env.c (get_environment_variable_i8): Don't use
407         uninitialized variable.
409 2013-01-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
411         PR libfortran/55818
412         * io/list_read.c (read_real): Do not call hit_eof when EOF can be
413         treated as a value separator.
414         (parse_real): Likewise.
415         (read_logical): Likewise.
416         (read_character): Likewise.
417         (read_complex): Likewise.
419 Copyright (C) 2013-2014 Free Software Foundation, Inc.
421 Copying and distribution of this file, with or without modification,
422 are permitted in any medium without royalty provided the copyright
423 notice and this notice are preserved.