1 2013-11-10 Janne Blomqvist <jb@gcc.gnu.org>
3 * configure.ac: Check presence of mkostemp.
4 * io/unix.c (set_close_on_exec): New function.
5 (tempfile_open): Use mkostemp and O_CLOEXEC if available, fallback
6 to calling set_close_on_exec.
7 (regular_file): Add O_CLOEXEC to flags if defined.
8 (open_external): Call set_close_on_exec if O_CLOEXEC is not
10 * config.h.in: Regenerated.
11 * configure: Regenerated.
12 * Makefile.in: Regenerated.
13 * aclocal.m4: Regenerated.
15 2013-10-01 Tobias Burnus <burnus@net-b.de>
18 * io/list_read (parse_repeat, read_integer, read_character,
19 parse_real, read_real, check_type, list_formatted_read_scalar,
20 finish_list_read): Call list_free.
22 2013-09-20 Alan Modra <amodra@gmail.com>
24 * configure: Regenerate.
26 2013-07-23 Uros Bizjak <ubizjak@gmail.com>
28 * config/fpu-387.h (get_fpu_rounding_mode): Read rounding mode
29 from SSE mxcsr register on x86_64.
31 2013-07-21 Ondřej Bílka <neleai@seznam.cz>
33 * io/transfer.c: Fix comment typos.
35 2013-07-21 Tobias Burnus <burnus@net-b.de>
38 * config/fpu-387.h (set_fpu_rounding_mode,
39 get_fpu_rounding_mode): Add missing _ to fix build.
41 2013-07-21 Tobias Burnus <burnus@net-b.de>
42 Uros Bizjak <ubizjak@gmail.com>
45 * libgfortran.h (set_fpu_rounding_mode,
46 get_fpu_rounding_mode): New prototypes.
47 * config/fpu-387.h (set_fpu_rounding_mode,
48 get_fpu_rounding_mode): New functions.
49 * config/fpu-aix.h (set_fpu_rounding_mode,
50 get_fpu_rounding_mode): Ditto.
51 * config/fpu-generic.h (set_fpu_rounding_mode,
52 get_fpu_rounding_mode): Ditto.
53 * config/fpu-glibc.h (set_fpu_rounding_mode,
54 get_fpu_rounding_mode): Ditto.
55 * config/fpu-sysv.h (set_fpu_rounding_mode,
56 get_fpu_rounding_mode): Ditto.
57 * configure.ac: Check for fp_rnd and fp_rnd_t.
58 * io/io.h (enum unit_round): Use GFC_FPE_* for the value.
59 * io/read.c (convert_real): Set FP ronding mode.
60 * Makefile.in: Regenerate.
61 * aclocal.m4: Regenerate.
62 * config.h.in: Regenerate.
63 * configure: Regenerate.
65 2013-06-24 Tobias Burnus <burnus@net-b.de>
67 * configure.ac: Check for fp_except and fp_except_t.
68 * config/fpu-sysv.h: Conditionally use either type.
69 * configure: Regenerate.
70 * config.h.in: Regenerate.
72 2013-06-21 Eric Botcazou <ebotcazou@adacore.com>
74 * config/fpu-sysv.h (get_fpu_except_flags): Fix typo.
76 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
78 * config/fpu-387.h (_FPU_MASK_ALL): New.
80 (set_fpu): Use fstcw to store x87 FPU control word. Use fnclex to
81 clear stalled exception flags. Correctly clear stalled SSE
82 exception flags. Simplify code.
83 (get_fpu_except_flags): Simplify code.
85 2013-06-20 Tobias Burnus <burnus@net-b.de>
88 * io/list_read.c (next_char, eat_separator): Don't set EOL for \r.
90 2013-06-19 Uros Bizjak <ubizjak@gmail.com>
92 * config/fpu-387.h: Use __asm__ and __volatile__ consistently.
93 (get_fpu_except_flags): Initialize result.
95 2013-06-17 Tobias Burnus <burnus@net-b.de>
97 * libgfortran.h (compile_options_t) Add fpe_summary.
98 (get_fpu_except_flags): New prototype.
99 * runtime/compile_options.c (set_options, init_compile_options):
101 * runtime/stop.c (report_exception): New function.
102 (stop_numeric, stop_numeric_f08, stop_string, error_stop_string,
103 error_stop_numeric): Call it.
104 * config/fpu-387.h (get_fpu_except_flags): New function.
105 * config/fpu-aix.h (get_fpu_except_flags): New function.
106 * config/fpu-generic.h (get_fpu_except_flags): New function.
107 * config/fpu-glibc.h (get_fpu_except_flags): New function.
108 * config/fpu-sysv.h (get_fpu_except_flags): New function.
109 * configure.ac: Check for fpxcp.h.
110 * configure: Regenerate.
111 * config.h.in: Regenerate.
113 2013-06-01 Tobias Burnus <burnus@net-b.de>
116 * io/write_float.def (ISFINITE2Q, ISFINITE2, ISFINITE2L, ISFINITE,
117 SIGNBIT2Q, SIGNBIT2, SIGNBIT2L, SIGNBIT, ISNAN2Q, ISNAN2, ISNAN2L,
119 (output_float_FMT_G_,WRITE_FLOAT): Use them.
121 2013-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
123 * acinclude.m4 (libgfor_cv_have_as_needed): Check for -z ignore, too.
124 * configure: Regenerate.
126 2013-05-05 David Edelsohn <dje.gcc@gmail.com>
128 * caf/libcaf.h (_gfortran_caf_critical): Add a prototype.
129 (_gfortran_caf_end_critical): Same.
131 2013-05-04 David Edelsohn <dje.gcc@gmail.com>
133 * runtime/environ.c: Include unistd.h.
134 * runtime/pause.c: Test HAVE_UNISTD_H.
135 * runtime/stop.c: Same.
138 * io/read.c (si_max): Protect declaration of value.
140 2013-04-29 Janne Blomqvist <jb@gcc.gnu.org>
142 * intrinsics/system_clock (gf_gettime_mono): Use variable
143 resolution for fractional seconds argument.
144 (system_clock_4): Simplify, update for gf_gettime_mono change.
145 (system_clock_8): Likewise.
147 2013-04-29 Janne Blomqvist <jb@gcc.gnu.org>
150 * io/transfer.c (next_record_w_unf): First fix head marker, then
152 (next_record): Call flush_if_unbuffered.
153 * io/unix.c (struct unix_stream): Add field unbuffered.
154 (flush_if_unbuffered): New function.
155 (fd_to_stream): New argument.
156 (open_external): Fix fd_to_stream call.
157 (input_stream): Likewise.
158 (output_stream): Likewise.
159 (error_stream): Likewise.
160 * io/unix.h (flush_if_unbuffered): New prototype.
162 2013-04-28 Janne Blomqvist <jb@gcc.gnu.org>
164 * intrinsics/system_clock.c (system_clock_4): Fix sign error in
167 2013-04-15 Tobias Burnus <burnus@net-b.de>
169 * list_read.c (finish_separator): Initialize variable.
171 2013-04-15 Janne Blomqvist <jb@gcc.gnu.org>
174 * intrinsics/time_1.h: Check __CYGWIN__ in addition to
176 * intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check
177 _POSIX_MONOTONIC_CLOCK as well.
178 (system_clock_4): Use GetTickCount on Windows.
179 (system_clock_8): Use QueryPerformanceCounter and
180 QueryPerformanceCounterFrequency on Windows.
182 2013-04-04 Tobias Burnus <burnus@net-b.de>
185 * io/list_read.c (check_type): Fix kind checking for COMPLEX.
187 2013-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
190 * io/list_read.c (nml_read_obj): Do not reset the read error flag
191 inside nml_read_obj. If the read error flag is found set just exit.
192 Fix some whitespace on comments.
193 (nml_read_obj_data): Reset the read error flag before the first call
196 2013-03-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
199 * io/list_read.c (nml_parse_qualifier): Remove spurious next_char call
200 when checking for EOF. Use error return mechanism when EOF detected.
201 Do not return false unless parse_err_msg and parse_err_msg_size have
202 been set. Use hit_eof.
203 (nml_get_obj_data): Likewise use the correct error mechanism.
204 * io/transfer.c (hit_eof): Do not set AFTER_ENDFILE if in namelist
207 2013-03-29 Tobias Burnus <burnus@net-b.de>
210 * io/format.c (parse_format_list): Also cache FMT_STRING.
211 (parse_format): Update call.
213 2013-03-29 Tobias Burnus <burnus@net-b.de>
216 * io/format.c (parse_format): With caching, copy
218 (save_parsed_format): Use dtp->format directy without
221 2013-03-29 Tobias Burnus <burnus@net-b.de>
224 * io/list_read.c (nml_query): Only abort when
226 (namelist_read): Add goto instead of falling through.
228 2013-03-25 Tilo Schwarz <tilo@tilo-schwarz.de>
231 * io/list_read.c (nml_parse_qualifier): To check for a derived type
232 don't use the namelist head element type but the current element type.
233 (nml_get_obj_data): Add current namelist element type to
234 nml_parse_qualifier call.
236 2013-03-24 Tobias Burnus <burnus@net-b.de>
239 * io/list_read.c (read_real): Fix EOF diagnostic.
241 2013-03-20 Tilo Schwarz <tilo@tilo-schwarz.de>
244 * io/list_read.c (nml_read_obj): Don't end the component loop on a
245 nested derived type, but continue with the next loop iteration.
246 (nml_get_obj_data): Don't move the first_nl pointer further in the
247 list if a qualifier was found.
249 2013-03-20 Tilo Schwarz <tilo@tilo-schwarz.de>
252 * io/open.c (st_open): Raise error for unit number < 0 only if
253 unit number does not exist already.
255 2013-03-19 Janne Blomqvist <jb@gcc.gnu.org>
257 * libgfortran.h: Include stdbool.h.
259 (notify_std): Change return type to bool.
260 * intrinsics/chmod.c: Don't include stdbool.h.
261 * intrinsics/execute_command_line.c: Likewise.
262 * io/format.c: Likewise.
263 * io/list_read.c (nml_parse_qualifier): Change return type to bool.
264 (nml_read_obj): Likewise.
265 (nml_get_obj_data): Likewise.
266 * io/transfer.c (read_block_form): Fix comment.
267 (write_buf): Change return type to bool.
268 * io/write.c: Don't include stdbool.h.
269 * io/write_float.def (output_float): Change return type to bool.
270 (output_float_FMT_G_ ## x): Change type of result variable.
271 * runtime/error.c (notify_std): Change return type to bool.
273 2013-03-11 Tobias Burnus <burnus@net-b.de>
275 * io/transfer.c (read_block_direct): Correct condition.
276 * intrinsics/execute_command_line.c (execute_command_line):
277 Remove dead code for the HAVE_FORK case.
279 2013-02-21 Janne Blomqvist <jb@gcc.gnu.org>
282 * io/open.c (test_endfile): Call stell only if size != 0.
283 * io/unix.c (raw_tell): Revert r194679.
284 (raw_size): Return size field only for regular files, otherwise 0.
286 2013-02-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
289 * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): Remove check for
291 * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Likewise.
292 * intrinsics/c99_functions.c: Likewise.
293 * configure: Rebuilt.
294 * config.h.in: Rebuilt.
296 2013-02-06 Janus Weil <janus@gcc.gnu.org>
299 * runtime/in_pack_generic.c (internal_pack): Return if base_addr is
302 2013-01-23 Janne Blomqvist <jb@gcc.gnu.org>
304 * io/file_pos.c (unformatted_backspace): Use __builtin_bswapXX
305 instead of reverse_memcpy.
306 * io/io.h (reverse_memcpy): Remove prototype.
307 * io/transfer.c (reverse_memcpy): Make static, move towards
309 (bswap_array): New function.
310 (unformatted_read): Use bswap_array to byte swap the data
312 (unformatted_write): Use a larger temp buffer and bswap_array.
313 (us_read): Use __builtin_bswapXX instead of reverse_memcpy.
314 (write_us_marker): Likewise.
316 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
318 Update copyright years.
320 2013-01-06 Tobias Burnus <burnus@net-b.de>
323 * intrinsics/env.c (get_environment_variable_i8): Don't use
324 uninitialized variable.
326 2013-01-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>
329 * io/list_read.c (read_real): Do not call hit_eof when EOF can be
330 treated as a value separator.
331 (parse_real): Likewise.
332 (read_logical): Likewise.
333 (read_character): Likewise.
334 (read_complex): Likewise.
336 Copyright (C) 2013 Free Software Foundation, Inc.
338 Copying and distribution of this file, with or without modification,
339 are permitted in any medium without royalty provided the copyright
340 notice and this notice are preserved.