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