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