1 2013-07-23 Uros Bizjak <ubizjak@gmail.com>
3 * config/fpu-387.h (get_fpu_rounding_mode): Read rounding mode
4 from SSE mxcsr register on x86_64.
6 2013-07-21 Ondřej Bílka <neleai@seznam.cz>
8 * io/transfer.c: Fix comment typos.
10 2013-07-21 Tobias Burnus <burnus@net-b.de>
13 * config/fpu-387.h (set_fpu_rounding_mode,
14 get_fpu_rounding_mode): Add missing _ to fix build.
16 2013-07-21 Tobias Burnus <burnus@net-b.de>
17 Uros Bizjak <ubizjak@gmail.com>
20 * libgfortran.h (set_fpu_rounding_mode,
21 get_fpu_rounding_mode): New prototypes.
22 * config/fpu-387.h (set_fpu_rounding_mode,
23 get_fpu_rounding_mode): New functions.
24 * config/fpu-aix.h (set_fpu_rounding_mode,
25 get_fpu_rounding_mode): Ditto.
26 * config/fpu-generic.h (set_fpu_rounding_mode,
27 get_fpu_rounding_mode): Ditto.
28 * config/fpu-glibc.h (set_fpu_rounding_mode,
29 get_fpu_rounding_mode): Ditto.
30 * config/fpu-sysv.h (set_fpu_rounding_mode,
31 get_fpu_rounding_mode): Ditto.
32 * configure.ac: Check for fp_rnd and fp_rnd_t.
33 * io/io.h (enum unit_round): Use GFC_FPE_* for the value.
34 * io/read.c (convert_real): Set FP ronding mode.
35 * Makefile.in: Regenerate.
36 * aclocal.m4: Regenerate.
37 * config.h.in: Regenerate.
38 * configure: Regenerate.
40 2013-06-24 Tobias Burnus <burnus@net-b.de>
42 * configure.ac: Check for fp_except and fp_except_t.
43 * config/fpu-sysv.h: Conditionally use either type.
44 * configure: Regenerate.
45 * config.h.in: Regenerate.
47 2013-06-21 Eric Botcazou <ebotcazou@adacore.com>
49 * config/fpu-sysv.h (get_fpu_except_flags): Fix typo.
51 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
53 * config/fpu-387.h (_FPU_MASK_ALL): New.
55 (set_fpu): Use fstcw to store x87 FPU control word. Use fnclex to
56 clear stalled exception flags. Correctly clear stalled SSE
57 exception flags. Simplify code.
58 (get_fpu_except_flags): Simplify code.
60 2013-06-20 Tobias Burnus <burnus@net-b.de>
63 * io/list_read.c (next_char, eat_separator): Don't set EOL for \r.
65 2013-06-19 Uros Bizjak <ubizjak@gmail.com>
67 * config/fpu-387.h: Use __asm__ and __volatile__ consistently.
68 (get_fpu_except_flags): Initialize result.
70 2013-06-17 Tobias Burnus <burnus@net-b.de>
72 * libgfortran.h (compile_options_t) Add fpe_summary.
73 (get_fpu_except_flags): New prototype.
74 * runtime/compile_options.c (set_options, init_compile_options):
76 * runtime/stop.c (report_exception): New function.
77 (stop_numeric, stop_numeric_f08, stop_string, error_stop_string,
78 error_stop_numeric): Call it.
79 * config/fpu-387.h (get_fpu_except_flags): New function.
80 * config/fpu-aix.h (get_fpu_except_flags): New function.
81 * config/fpu-generic.h (get_fpu_except_flags): New function.
82 * config/fpu-glibc.h (get_fpu_except_flags): New function.
83 * config/fpu-sysv.h (get_fpu_except_flags): New function.
84 * configure.ac: Check for fpxcp.h.
85 * configure: Regenerate.
86 * config.h.in: Regenerate.
88 2013-06-01 Tobias Burnus <burnus@net-b.de>
91 * io/write_float.def (ISFINITE2Q, ISFINITE2, ISFINITE2L, ISFINITE,
92 SIGNBIT2Q, SIGNBIT2, SIGNBIT2L, SIGNBIT, ISNAN2Q, ISNAN2, ISNAN2L,
94 (output_float_FMT_G_,WRITE_FLOAT): Use them.
96 2013-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
98 * acinclude.m4 (libgfor_cv_have_as_needed): Check for -z ignore, too.
99 * configure: Regenerate.
101 2013-05-05 David Edelsohn <dje.gcc@gmail.com>
103 * caf/libcaf.h (_gfortran_caf_critical): Add a prototype.
104 (_gfortran_caf_end_critical): Same.
106 2013-05-04 David Edelsohn <dje.gcc@gmail.com>
108 * runtime/environ.c: Include unistd.h.
109 * runtime/pause.c: Test HAVE_UNISTD_H.
110 * runtime/stop.c: Same.
113 * io/read.c (si_max): Protect declaration of value.
115 2013-04-29 Janne Blomqvist <jb@gcc.gnu.org>
117 * intrinsics/system_clock (gf_gettime_mono): Use variable
118 resolution for fractional seconds argument.
119 (system_clock_4): Simplify, update for gf_gettime_mono change.
120 (system_clock_8): Likewise.
122 2013-04-29 Janne Blomqvist <jb@gcc.gnu.org>
125 * io/transfer.c (next_record_w_unf): First fix head marker, then
127 (next_record): Call flush_if_unbuffered.
128 * io/unix.c (struct unix_stream): Add field unbuffered.
129 (flush_if_unbuffered): New function.
130 (fd_to_stream): New argument.
131 (open_external): Fix fd_to_stream call.
132 (input_stream): Likewise.
133 (output_stream): Likewise.
134 (error_stream): Likewise.
135 * io/unix.h (flush_if_unbuffered): New prototype.
137 2013-04-28 Janne Blomqvist <jb@gcc.gnu.org>
139 * intrinsics/system_clock.c (system_clock_4): Fix sign error in
142 2013-04-15 Tobias Burnus <burnus@net-b.de>
144 * list_read.c (finish_separator): Initialize variable.
146 2013-04-15 Janne Blomqvist <jb@gcc.gnu.org>
149 * intrinsics/time_1.h: Check __CYGWIN__ in addition to
151 * intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check
152 _POSIX_MONOTONIC_CLOCK as well.
153 (system_clock_4): Use GetTickCount on Windows.
154 (system_clock_8): Use QueryPerformanceCounter and
155 QueryPerformanceCounterFrequency on Windows.
157 2013-04-04 Tobias Burnus <burnus@net-b.de>
160 * io/list_read.c (check_type): Fix kind checking for COMPLEX.
162 2013-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
165 * io/list_read.c (nml_read_obj): Do not reset the read error flag
166 inside nml_read_obj. If the read error flag is found set just exit.
167 Fix some whitespace on comments.
168 (nml_read_obj_data): Reset the read error flag before the first call
171 2013-03-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
174 * io/list_read.c (nml_parse_qualifier): Remove spurious next_char call
175 when checking for EOF. Use error return mechanism when EOF detected.
176 Do not return false unless parse_err_msg and parse_err_msg_size have
177 been set. Use hit_eof.
178 (nml_get_obj_data): Likewise use the correct error mechanism.
179 * io/transfer.c (hit_eof): Do not set AFTER_ENDFILE if in namelist
182 2013-03-29 Tobias Burnus <burnus@net-b.de>
185 * io/format.c (parse_format_list): Also cache FMT_STRING.
186 (parse_format): Update call.
188 2013-03-29 Tobias Burnus <burnus@net-b.de>
191 * io/format.c (parse_format): With caching, copy
193 (save_parsed_format): Use dtp->format directy without
196 2013-03-29 Tobias Burnus <burnus@net-b.de>
199 * io/list_read.c (nml_query): Only abort when
201 (namelist_read): Add goto instead of falling through.
203 2013-03-25 Tilo Schwarz <tilo@tilo-schwarz.de>
206 * io/list_read.c (nml_parse_qualifier): To check for a derived type
207 don't use the namelist head element type but the current element type.
208 (nml_get_obj_data): Add current namelist element type to
209 nml_parse_qualifier call.
211 2013-03-24 Tobias Burnus <burnus@net-b.de>
214 * io/list_read.c (read_real): Fix EOF diagnostic.
216 2013-03-20 Tilo Schwarz <tilo@tilo-schwarz.de>
219 * io/list_read.c (nml_read_obj): Don't end the component loop on a
220 nested derived type, but continue with the next loop iteration.
221 (nml_get_obj_data): Don't move the first_nl pointer further in the
222 list if a qualifier was found.
224 2013-03-20 Tilo Schwarz <tilo@tilo-schwarz.de>
227 * io/open.c (st_open): Raise error for unit number < 0 only if
228 unit number does not exist already.
230 2013-03-19 Janne Blomqvist <jb@gcc.gnu.org>
232 * libgfortran.h: Include stdbool.h.
234 (notify_std): Change return type to bool.
235 * intrinsics/chmod.c: Don't include stdbool.h.
236 * intrinsics/execute_command_line.c: Likewise.
237 * io/format.c: Likewise.
238 * io/list_read.c (nml_parse_qualifier): Change return type to bool.
239 (nml_read_obj): Likewise.
240 (nml_get_obj_data): Likewise.
241 * io/transfer.c (read_block_form): Fix comment.
242 (write_buf): Change return type to bool.
243 * io/write.c: Don't include stdbool.h.
244 * io/write_float.def (output_float): Change return type to bool.
245 (output_float_FMT_G_ ## x): Change type of result variable.
246 * runtime/error.c (notify_std): Change return type to bool.
248 2013-03-11 Tobias Burnus <burnus@net-b.de>
250 * io/transfer.c (read_block_direct): Correct condition.
251 * intrinsics/execute_command_line.c (execute_command_line):
252 Remove dead code for the HAVE_FORK case.
254 2013-02-21 Janne Blomqvist <jb@gcc.gnu.org>
257 * io/open.c (test_endfile): Call stell only if size != 0.
258 * io/unix.c (raw_tell): Revert r194679.
259 (raw_size): Return size field only for regular files, otherwise 0.
261 2013-02-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
264 * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): Remove check for
266 * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Likewise.
267 * intrinsics/c99_functions.c: Likewise.
268 * configure: Rebuilt.
269 * config.h.in: Rebuilt.
271 2013-02-06 Janus Weil <janus@gcc.gnu.org>
274 * runtime/in_pack_generic.c (internal_pack): Return if base_addr is
277 2013-01-23 Janne Blomqvist <jb@gcc.gnu.org>
279 * io/file_pos.c (unformatted_backspace): Use __builtin_bswapXX
280 instead of reverse_memcpy.
281 * io/io.h (reverse_memcpy): Remove prototype.
282 * io/transfer.c (reverse_memcpy): Make static, move towards
284 (bswap_array): New function.
285 (unformatted_read): Use bswap_array to byte swap the data
287 (unformatted_write): Use a larger temp buffer and bswap_array.
288 (us_read): Use __builtin_bswapXX instead of reverse_memcpy.
289 (write_us_marker): Likewise.
291 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
293 Update copyright years.
295 2013-01-06 Tobias Burnus <burnus@net-b.de>
298 * intrinsics/env.c (get_environment_variable_i8): Don't use
299 uninitialized variable.
301 2013-01-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>
304 * io/list_read.c (read_real): Do not call hit_eof when EOF can be
305 treated as a value separator.
306 (parse_real): Likewise.
307 (read_logical): Likewise.
308 (read_character): Likewise.
309 (read_complex): Likewise.
311 Copyright (C) 2013 Free Software Foundation, Inc.
313 Copying and distribution of this file, with or without modification,
314 are permitted in any medium without royalty provided the copyright
315 notice and this notice are preserved.