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