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