* runtime/environ.c: Include unistd.h.
[official-gcc.git] / libgfortran / ChangeLog
blob54802747dc979350a0df53c2d6c42ae1d9a18b66
1 2013-05-04  David Edelsohn  <dje.gcc@gmail.com>
3         * runtime/environ.c: Include unistd.h.
4         * runtime/pause.c: Test HAVE_UNISTD_H.
5         * runtime/stop.c: Same.
6         * io/open.c: Same.
7         * io/unix.c: Same.
8         * io/read.c (si_max): Protect declaration of value.
10 2013-04-29  Janne Blomqvist  <jb@gcc.gnu.org>
12         * intrinsics/system_clock (gf_gettime_mono): Use variable
13         resolution for fractional seconds argument.
14         (system_clock_4): Simplify, update for gf_gettime_mono change.
15         (system_clock_8): Likewise.
17 2013-04-29  Janne Blomqvist  <jb@gcc.gnu.org>
19         PR fortran/56981
20         * io/transfer.c (next_record_w_unf): First fix head marker, then
21         write tail.
22         (next_record): Call flush_if_unbuffered.
23         * io/unix.c (struct unix_stream): Add field unbuffered.
24         (flush_if_unbuffered): New function.
25         (fd_to_stream): New argument.
26         (open_external): Fix fd_to_stream call.
27         (input_stream): Likewise.
28         (output_stream): Likewise.
29         (error_stream): Likewise.
30         * io/unix.h (flush_if_unbuffered): New prototype.
32 2013-04-28  Janne Blomqvist  <jb@gcc.gnu.org>
34         * intrinsics/system_clock.c (system_clock_4): Fix sign error in
35         Windows version.
37 2013-04-15  Tobias Burnus  <burnus@net-b.de>
39         * list_read.c (finish_separator): Initialize variable.
41 2013-04-15  Janne Blomqvist  <jb@gcc.gnu.org>
43         PR fortran/56919
44         * intrinsics/time_1.h: Check __CYGWIN__ in addition to
45         __MINGW32__.
46         * intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check
47         _POSIX_MONOTONIC_CLOCK as well.
48         (system_clock_4): Use GetTickCount on Windows.
49         (system_clock_8): Use QueryPerformanceCounter and
50         QueryPerformanceCounterFrequency on Windows.
52 2013-04-04  Tobias Burnus  <burnus@net-b.de>
54         PR fortran/56810
55         * io/list_read.c (check_type): Fix kind checking for COMPLEX.
57 2013-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
59         PR libfortran/56660
60         * io/list_read.c (nml_read_obj): Do not reset the read error flag
61         inside nml_read_obj. If the read error flag is found set just exit.
62         Fix some whitespace on comments.
63         (nml_read_obj_data): Reset the read error flag before the first call
64         to nml_read_object.
66 2013-03-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
68         PR libfortran/56786
69         * io/list_read.c (nml_parse_qualifier): Remove spurious next_char call
70         when checking for EOF. Use error return mechanism when EOF detected.
71         Do not return false unless parse_err_msg and parse_err_msg_size have
72         been set. Use hit_eof.
73         (nml_get_obj_data): Likewise use the correct error mechanism.
74         * io/transfer.c (hit_eof): Do not set AFTER_ENDFILE if in namelist
75         mode.
77 2013-03-29  Tobias Burnus  <burnus@net-b.de>
79         PR fortran/56737
80         * io/format.c (parse_format_list): Also cache FMT_STRING.
81         (parse_format): Update call.
83 2013-03-29  Tobias Burnus  <burnus@net-b.de>
85         PR fortran/56737
86         * io/format.c (parse_format): With caching, copy
87         dtp->format string.
88         (save_parsed_format): Use dtp->format directy without
89         copying.
91 2013-03-29  Tobias Burnus  <burnus@net-b.de>
93         PR fortran/56735
94         * io/list_read.c (nml_query): Only abort when
95         an error occured.
96         (namelist_read): Add goto instead of falling through.
98 2013-03-25  Tilo Schwarz  <tilo@tilo-schwarz.de>
100         PR libfortran/52512
101         * io/list_read.c (nml_parse_qualifier): To check for a derived type
102         don't use the namelist head element type but the current element type.
103         (nml_get_obj_data): Add current namelist element type to
104         nml_parse_qualifier call.
106 2013-03-24  Tobias Burnus  <burnus@net-b.de>
108         PR fortran/56696
109         * io/list_read.c (read_real): Fix EOF diagnostic.
111 2013-03-20  Tilo Schwarz  <tilo@tilo-schwarz.de>
113         PR libfortran/51825
114         * io/list_read.c (nml_read_obj): Don't end the component loop on a
115         nested derived type, but continue with the next loop iteration.
116         (nml_get_obj_data): Don't move the first_nl pointer further in the
117         list if a qualifier was found.
119 2013-03-20  Tilo Schwarz  <tilo@tilo-schwarz.de>
121         PR libfortran/48618
122         * io/open.c (st_open): Raise error for unit number < 0 only if
123         unit number does not exist already.
125 2013-03-19  Janne Blomqvist  <jb@gcc.gnu.org>
127         * libgfortran.h: Include stdbool.h.
128         (enum try): Remove.
129         (notify_std): Change return type to bool.
130         * intrinsics/chmod.c: Don't include stdbool.h.
131         * intrinsics/execute_command_line.c: Likewise.
132         * io/format.c: Likewise.
133         * io/list_read.c (nml_parse_qualifier): Change return type to bool.
134         (nml_read_obj): Likewise.
135         (nml_get_obj_data): Likewise.
136         * io/transfer.c (read_block_form): Fix comment.
137         (write_buf): Change return type to bool.
138         * io/write.c: Don't include stdbool.h.
139         * io/write_float.def (output_float): Change return type to bool.
140         (output_float_FMT_G_ ## x): Change type of result variable.
141         * runtime/error.c (notify_std): Change return type to bool.
143 2013-03-11  Tobias Burnus  <burnus@net-b.de>
145         * io/transfer.c (read_block_direct): Correct condition.
146         * intrinsics/execute_command_line.c (execute_command_line):
147         Remove dead code for the HAVE_FORK case.
149 2013-02-21  Janne Blomqvist  <jb@gcc.gnu.org>
151         PR libfortran/30162
152         * io/open.c (test_endfile): Call stell only if size != 0.
153         * io/unix.c (raw_tell): Revert r194679.
154         (raw_size): Return size field only for regular files, otherwise 0.
156 2013-02-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
158         PR target/56347
159         * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): Remove check for
160         broken powf.
161         * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Likewise.
162         * intrinsics/c99_functions.c: Likewise.
163         * configure: Rebuilt.
164         * config.h.in: Rebuilt.
166 2013-02-06  Janus Weil  <janus@gcc.gnu.org>
168         PR fortran/55978
169         * runtime/in_pack_generic.c (internal_pack): Return if base_addr is
170         NULL.
172 2013-01-23  Janne Blomqvist  <jb@gcc.gnu.org>
174         * io/file_pos.c (unformatted_backspace): Use __builtin_bswapXX
175         instead of reverse_memcpy.
176         * io/io.h (reverse_memcpy): Remove prototype.
177         * io/transfer.c (reverse_memcpy): Make static, move towards
178         beginning of file.
179         (bswap_array): New function.
180         (unformatted_read): Use bswap_array to byte swap the data
181         in-place.
182         (unformatted_write): Use a larger temp buffer and bswap_array.
183         (us_read): Use __builtin_bswapXX instead of reverse_memcpy.
184         (write_us_marker): Likewise.
186 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
188         Update copyright years.
190 2013-01-06  Tobias Burnus  <burnus@net-b.de>
192         PR fortran/54678
193         * intrinsics/env.c (get_environment_variable_i8): Don't use
194         uninitialized variable.
196 2013-01-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
198         PR libfortran/55818
199         * io/list_read.c (read_real): Do not call hit_eof when EOF can be
200         treated as a value separator.
201         (parse_real): Likewise.
202         (read_logical): Likewise.
203         (read_character): Likewise.
204         (read_complex): Likewise.
206 Copyright (C) 2013 Free Software Foundation, Inc.
208 Copying and distribution of this file, with or without modification,
209 are permitted in any medium without royalty provided the copyright
210 notice and this notice are preserved.