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