1 2014-05-06 Jerry DeLisle <jvdelisle@gcc.gnu>
4 * io/list_read.c (list_formatted_read_scalar): Use eat_separator
5 and delete extraneous code.
7 2014-04-30 Tobias Burnus <burnus@net-b.de>
9 * caf/libcaf.h (_gfortran_caf_this_image, _gfortran_caf_num_images):
11 (_gfortran_caf_init): Change prototype.
12 (mpi_token_t): New typedef.
14 * caf/mpi.c (_gfortran_caf_this_image, _gfortran_caf_num_images):
16 (_gfortran_caf_init): Update.
17 (_gfortran_caf_finalize, _gfortran_caf_register,
18 _gfortran_caf_deregister): Use mpi_token_t.
19 * caf/single.c (_gfortran_caf_this_image, _gfortran_caf_num_images):
21 (_gfortran_caf_init): Update.
22 (_gfortran_caf_finalize, _gfortran_caf_register,
23 _gfortran_caf_deregister): Use mpi_token_t, simplify.
25 2014-04-26 Jerry DeLisle <jvdelisle@gcc.gnu>
28 * io/list_read.c: Add uchar typedef. (push_char4): New function
29 to save kind=4 character. (next_char_utf8): New function to read
30 a single UTF-8 encoded character value. (read_chracter): Update
31 to use the new functions for reading UTF-8 strings.
32 (list_formatted_read_scalar): Update to handle list directed
33 reads of UTF-8 strings. (nml_read_obj): Likewise update for
34 UTF-8 strings in namelists.
35 * io/write.c (nml_write_obj): Add kind=4 character support for
38 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40 * configure.ac: Quote usage of ac_cv_func_clock_gettime in if test.
41 * configure: Regenerate.
43 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
45 * config/fpu-387.h [__sun__ && __svr4__]: Remove SSE execution
48 2014-04-11 Jerry DeLisle <jvdelisle@gcc.gnu>
51 io/unit.c (is_trim_ok): If internal unit is array, do not trim.
53 2014-03-21 Jerry DeLisle <jvdelisle@gcc.gnu>
56 * io/transfer.c (data_transfer_init): If std= was specified, set
57 delim status to DELIM_NONE of no other was specified.
59 2014-03-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
61 * configure.ac: Check for presence of fcntl.
62 * configure: Regenerate.
63 * config.h.in: Regenerate.
64 * io/unix.c (set_close_on_exec): Check for HAVE_FCNTL.
66 2014-03-17 Jerry DeLisle <jvdelisle@gcc.gnu>
69 * io/list_read.c (list_formatted_read_scalar): Do not use
70 eat_separator. Explicitly set the comma and end-of-line flags.
71 Check for END condition from finish_separator.
73 2014-03-15 Jerry DeLisle <jvdelisle@gcc.gnu>
76 * io/list_read.c (finish_list_read): Read one character to check
77 for the end of the file. If it is the end, then issue the file
78 end error message. If not, use eat_line to reach the end
79 without giving error. The next attempt to read will then
80 issue the error as described above.
82 2014-03-12 Jerry DeLisle <jvdelisle@gcc.gnu>
85 * io/read.c (read_decimal): Quickly skip spaces to avoid calls
87 * io/unit.c (is_trim_ok): New helper function to check various
88 conditions to see if its OK to trim the internal unit string.
89 (get_internal_unit): Use LEN_TRIM to shorten selected internal
90 unit strings for optimizing READ. Enable this optimization for
92 * io/list_read.c (finish_list_read): Don't call eat_line for
95 2014-03-08 Jerry DeLisle <jvdelisle@gcc.gnu>
98 * io/list_read.c (next_char): Mark unlikely error checks.
99 (eat_spaces): For character array reading, skip ahead over
100 spaces rather than call next_char multiple times.
102 2014-03-08 Tobias Burnus <burnus@net-b.de>
104 * libgfortran.h (unlikely, likely): Add usage comment.
106 2014-03-08 Dominique d'Humieres <dominiq@lps.ens.fr>
109 * io/write_float.def (output_float): Remove unused variable
110 nzero_real. Replace a double space with a single one.
111 (determine_en_precision): Fix wrong handling of the EN format.
113 2014-03-03 Jerry DeLisle <jvdelisle@gcc.gnu>
116 * io/inquire.c (inquire_via_unit): In the case of
117 DELIM_UNSPECIFIED set inquire return string to "NONE".
118 * io/list_read.c (read_character): In the case of DELIM_NONE and
119 namelists, complete the character read using the namelist
121 * io/open.c (new_unit): Don't set delim status to none if not
122 specified so that DELIM_UNSPECIFIED can be used later.
123 * io/transfer.c (data_transfer_init): For namelist I/O, if the
124 unit delim status is unspecified set the current status to quote.
125 Otherwise, set current status to the unit status.
126 * io/unit.c (get_internel_unit, init_unit): Remember to set
127 flags_delim initially to DELIM_UNSPECIFIED so defaults come out
129 * io/write.c (write_character): Add a new function argument
130 "mode" to signify that raw output is to be used vs output with
131 delimiters. If the mode is set to DELIM (1) proceed with
132 delimiters. (list_formatted_write_scalar): Write the separator
133 only if a delimiter was previously specified. Update the call to
134 write_character with the mode argument given.
135 (namelist_write_newline): Use the mode argument. (nml_write_obj):
136 Use the mode argument. Remove use of tmp_delim. Write the
137 semi-colon or comma correctly only when needed with using
138 delimiters. Cleanup whitespace.
139 (namelist_write): If delim is not specified in namelist I/O,
140 default to using quotes. Get rid of the tmp_delim variable and
141 use the new mode argument in write_character.
143 2014-02-21 Tobias Burnus <burnus@net-b.de>
146 * libgfortran/io/inquire.c (yes, no): New static const char vars.
147 (inquire_via_unit): Use them. Use OPEN mode instead of using
148 POSIX's access to query about write=, read= and readwrite=.
150 2014-01-20 Jerry DeLisle <jvdelisle@gcc.gnu>
151 Dominique d'Humieres <dominiq@lps.ens.fr>
153 * io/write_float.def (output_float): Remove inadvertent test
154 code from previous patch.
156 2014-01-19 Jerry DeLisle <jvdelisle@gcc.gnu>
157 Dominique d'Humieres <dominiq@lps.ens.fr>
162 * io/write_float.def (output_float): Fix wrong handling of the
164 (output_float_FMT_G_): Fixes rounding issues with -m32.
166 2014-01-11 Jerry DeLisle <jvdelisle@gcc.gnu>
167 Dominique d'Humieres <dominiq@lps.ens.fr>
168 Steven G. Kargl <kargl@gcc.gnu.org>
172 * io/io.h (struct st_parameter_dt): Assign expanded_read flag to
173 unused bit. Define new variable line_buffer_pos.
174 * io/list_read.c (free_saved, next_char, l_push_char,
175 read_logical, read_real): Replace use of item_count with
176 line_buffer_pos for line_buffer look ahead.
177 (read_logical, read_integer, parse_real, read_real, check_type):
178 Adjust location of free_line to after generating error messages
179 to retain the correct item count for the message.
181 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
183 Update copyright years
185 2013-12-18 Steven G. Kargl <kargl@gcc.gnu.org>
187 * io/read.c (read_f): Convert assert to runtime error.
189 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
191 * io/unix.c (tempfile_open): Only use the needed flag O_CLOEXEC.
193 2013-12-16 Jerry DeLisle <jvdelisle@gcc.gnu>
196 * io/file_pos.c (st_rewind): Do proper return after
198 * io/open.c (edit_modes): Move action code inside block that
199 checks for library ok. (new_unit): Do cleanup after error.
200 (st_open): Do proper return after error.
201 * io/transfer.c (data_transfer_init): Likewise.
203 2013-12-11 Tobias Burnus <burnus@net-b.de>
205 * config/fpu-387.h (sigill_hdlr, get_fpu_rounding_mode): Emit SSE
206 instructions when __SSE_MATH__ is defined.
208 2013-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
210 * intrinsics/erfc_scaled.c (_M_2_SQRTPI): Define if missing.
212 2013-12-01 Uros Bizjak <ubizjak@gmail.com>
215 * intrinsics/erfc_scaled.c (erfc_scaled_r16): Also provide for
216 quadruple precision long double variant.
218 2013-11-20 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
220 * intrinsics/erfc_scaled.c (erfc_scaled_r16): Don't define if
221 __float128 is not available.
223 2013-11-20 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
226 * intrinsics/erfc_scaled.c (erfc_scaled_r16): New function.
227 * intrinsics/erfc_scaled_inc.c: Do not provide quadruple
230 2013-11-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
233 * intrinsics/unpack_generic.c (unpack_internal): Let the compiler
234 know that dim > 0 to avoid warnings.
236 2013-11-15 Janne Blomqvist <jb@gcc.gnu.org>
237 Jerry DeLisle <jvdelisle@gcc.gnu.org>
240 * io/unix.c (regular_file): Don't set O_CREAT when opening a file
241 read-only with unknown status. Mask out O_CREAT when falling back
242 to opening read-only if ACTION= is not set and read-write fails.
244 2013-11-15 Steve Ellcey <sellcey@mips.com>
246 * configure.ac: Do not define HAVE_STRTOLD.
247 * configure: Regenerate.
249 2013-11-10 Janne Blomqvist <jb@gcc.gnu.org>
251 * configure.ac: Check presence of mkostemp.
252 * io/unix.c (set_close_on_exec): New function.
253 (tempfile_open): Use mkostemp and O_CLOEXEC if available, fallback
254 to calling set_close_on_exec.
255 (regular_file): Add O_CLOEXEC to flags if defined.
256 (open_external): Call set_close_on_exec if O_CLOEXEC is not
258 * config.h.in: Regenerated.
259 * configure: Regenerated.
260 * Makefile.in: Regenerated.
261 * aclocal.m4: Regenerated.
263 2013-10-01 Tobias Burnus <burnus@net-b.de>
266 * io/list_read (parse_repeat, read_integer, read_character,
267 parse_real, read_real, check_type, list_formatted_read_scalar,
268 finish_list_read): Call list_free.
270 2013-09-20 Alan Modra <amodra@gmail.com>
272 * configure: Regenerate.
274 2013-07-23 Uros Bizjak <ubizjak@gmail.com>
276 * config/fpu-387.h (get_fpu_rounding_mode): Read rounding mode
277 from SSE mxcsr register on x86_64.
279 2013-07-21 OndÅ™ej BÃlka <neleai@seznam.cz>
281 * io/transfer.c: Fix comment typos.
283 2013-07-21 Tobias Burnus <burnus@net-b.de>
286 * config/fpu-387.h (set_fpu_rounding_mode,
287 get_fpu_rounding_mode): Add missing _ to fix build.
289 2013-07-21 Tobias Burnus <burnus@net-b.de>
290 Uros Bizjak <ubizjak@gmail.com>
293 * libgfortran.h (set_fpu_rounding_mode,
294 get_fpu_rounding_mode): New prototypes.
295 * config/fpu-387.h (set_fpu_rounding_mode,
296 get_fpu_rounding_mode): New functions.
297 * config/fpu-aix.h (set_fpu_rounding_mode,
298 get_fpu_rounding_mode): Ditto.
299 * config/fpu-generic.h (set_fpu_rounding_mode,
300 get_fpu_rounding_mode): Ditto.
301 * config/fpu-glibc.h (set_fpu_rounding_mode,
302 get_fpu_rounding_mode): Ditto.
303 * config/fpu-sysv.h (set_fpu_rounding_mode,
304 get_fpu_rounding_mode): Ditto.
305 * configure.ac: Check for fp_rnd and fp_rnd_t.
306 * io/io.h (enum unit_round): Use GFC_FPE_* for the value.
307 * io/read.c (convert_real): Set FP ronding mode.
308 * Makefile.in: Regenerate.
309 * aclocal.m4: Regenerate.
310 * config.h.in: Regenerate.
311 * configure: Regenerate.
313 2013-06-24 Tobias Burnus <burnus@net-b.de>
315 * configure.ac: Check for fp_except and fp_except_t.
316 * config/fpu-sysv.h: Conditionally use either type.
317 * configure: Regenerate.
318 * config.h.in: Regenerate.
320 2013-06-21 Eric Botcazou <ebotcazou@adacore.com>
322 * config/fpu-sysv.h (get_fpu_except_flags): Fix typo.
324 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
326 * config/fpu-387.h (_FPU_MASK_ALL): New.
327 (_FPU_EX_ALL): Ditto.
328 (set_fpu): Use fstcw to store x87 FPU control word. Use fnclex to
329 clear stalled exception flags. Correctly clear stalled SSE
330 exception flags. Simplify code.
331 (get_fpu_except_flags): Simplify code.
333 2013-06-20 Tobias Burnus <burnus@net-b.de>
336 * io/list_read.c (next_char, eat_separator): Don't set EOL for \r.
338 2013-06-19 Uros Bizjak <ubizjak@gmail.com>
340 * config/fpu-387.h: Use __asm__ and __volatile__ consistently.
341 (get_fpu_except_flags): Initialize result.
343 2013-06-17 Tobias Burnus <burnus@net-b.de>
345 * libgfortran.h (compile_options_t) Add fpe_summary.
346 (get_fpu_except_flags): New prototype.
347 * runtime/compile_options.c (set_options, init_compile_options):
349 * runtime/stop.c (report_exception): New function.
350 (stop_numeric, stop_numeric_f08, stop_string, error_stop_string,
351 error_stop_numeric): Call it.
352 * config/fpu-387.h (get_fpu_except_flags): New function.
353 * config/fpu-aix.h (get_fpu_except_flags): New function.
354 * config/fpu-generic.h (get_fpu_except_flags): New function.
355 * config/fpu-glibc.h (get_fpu_except_flags): New function.
356 * config/fpu-sysv.h (get_fpu_except_flags): New function.
357 * configure.ac: Check for fpxcp.h.
358 * configure: Regenerate.
359 * config.h.in: Regenerate.
361 2013-06-01 Tobias Burnus <burnus@net-b.de>
364 * io/write_float.def (ISFINITE2Q, ISFINITE2, ISFINITE2L, ISFINITE,
365 SIGNBIT2Q, SIGNBIT2, SIGNBIT2L, SIGNBIT, ISNAN2Q, ISNAN2, ISNAN2L,
367 (output_float_FMT_G_,WRITE_FLOAT): Use them.
369 2013-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
371 * acinclude.m4 (libgfor_cv_have_as_needed): Check for -z ignore, too.
372 * configure: Regenerate.
374 2013-05-05 David Edelsohn <dje.gcc@gmail.com>
376 * caf/libcaf.h (_gfortran_caf_critical): Add a prototype.
377 (_gfortran_caf_end_critical): Same.
379 2013-05-04 David Edelsohn <dje.gcc@gmail.com>
381 * runtime/environ.c: Include unistd.h.
382 * runtime/pause.c: Test HAVE_UNISTD_H.
383 * runtime/stop.c: Same.
386 * io/read.c (si_max): Protect declaration of value.
388 2013-04-29 Janne Blomqvist <jb@gcc.gnu.org>
390 * intrinsics/system_clock (gf_gettime_mono): Use variable
391 resolution for fractional seconds argument.
392 (system_clock_4): Simplify, update for gf_gettime_mono change.
393 (system_clock_8): Likewise.
395 2013-04-29 Janne Blomqvist <jb@gcc.gnu.org>
398 * io/transfer.c (next_record_w_unf): First fix head marker, then
400 (next_record): Call flush_if_unbuffered.
401 * io/unix.c (struct unix_stream): Add field unbuffered.
402 (flush_if_unbuffered): New function.
403 (fd_to_stream): New argument.
404 (open_external): Fix fd_to_stream call.
405 (input_stream): Likewise.
406 (output_stream): Likewise.
407 (error_stream): Likewise.
408 * io/unix.h (flush_if_unbuffered): New prototype.
410 2013-04-28 Janne Blomqvist <jb@gcc.gnu.org>
412 * intrinsics/system_clock.c (system_clock_4): Fix sign error in
415 2013-04-15 Tobias Burnus <burnus@net-b.de>
417 * list_read.c (finish_separator): Initialize variable.
419 2013-04-15 Janne Blomqvist <jb@gcc.gnu.org>
422 * intrinsics/time_1.h: Check __CYGWIN__ in addition to
424 * intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check
425 _POSIX_MONOTONIC_CLOCK as well.
426 (system_clock_4): Use GetTickCount on Windows.
427 (system_clock_8): Use QueryPerformanceCounter and
428 QueryPerformanceCounterFrequency on Windows.
430 2013-04-04 Tobias Burnus <burnus@net-b.de>
433 * io/list_read.c (check_type): Fix kind checking for COMPLEX.
435 2013-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
438 * io/list_read.c (nml_read_obj): Do not reset the read error flag
439 inside nml_read_obj. If the read error flag is found set just exit.
440 Fix some whitespace on comments.
441 (nml_read_obj_data): Reset the read error flag before the first call
444 2013-03-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
447 * io/list_read.c (nml_parse_qualifier): Remove spurious next_char call
448 when checking for EOF. Use error return mechanism when EOF detected.
449 Do not return false unless parse_err_msg and parse_err_msg_size have
450 been set. Use hit_eof.
451 (nml_get_obj_data): Likewise use the correct error mechanism.
452 * io/transfer.c (hit_eof): Do not set AFTER_ENDFILE if in namelist
455 2013-03-29 Tobias Burnus <burnus@net-b.de>
458 * io/format.c (parse_format_list): Also cache FMT_STRING.
459 (parse_format): Update call.
461 2013-03-29 Tobias Burnus <burnus@net-b.de>
464 * io/format.c (parse_format): With caching, copy
466 (save_parsed_format): Use dtp->format directy without
469 2013-03-29 Tobias Burnus <burnus@net-b.de>
472 * io/list_read.c (nml_query): Only abort when
474 (namelist_read): Add goto instead of falling through.
476 2013-03-25 Tilo Schwarz <tilo@tilo-schwarz.de>
479 * io/list_read.c (nml_parse_qualifier): To check for a derived type
480 don't use the namelist head element type but the current element type.
481 (nml_get_obj_data): Add current namelist element type to
482 nml_parse_qualifier call.
484 2013-03-24 Tobias Burnus <burnus@net-b.de>
487 * io/list_read.c (read_real): Fix EOF diagnostic.
489 2013-03-20 Tilo Schwarz <tilo@tilo-schwarz.de>
492 * io/list_read.c (nml_read_obj): Don't end the component loop on a
493 nested derived type, but continue with the next loop iteration.
494 (nml_get_obj_data): Don't move the first_nl pointer further in the
495 list if a qualifier was found.
497 2013-03-20 Tilo Schwarz <tilo@tilo-schwarz.de>
500 * io/open.c (st_open): Raise error for unit number < 0 only if
501 unit number does not exist already.
503 2013-03-19 Janne Blomqvist <jb@gcc.gnu.org>
505 * libgfortran.h: Include stdbool.h.
507 (notify_std): Change return type to bool.
508 * intrinsics/chmod.c: Don't include stdbool.h.
509 * intrinsics/execute_command_line.c: Likewise.
510 * io/format.c: Likewise.
511 * io/list_read.c (nml_parse_qualifier): Change return type to bool.
512 (nml_read_obj): Likewise.
513 (nml_get_obj_data): Likewise.
514 * io/transfer.c (read_block_form): Fix comment.
515 (write_buf): Change return type to bool.
516 * io/write.c: Don't include stdbool.h.
517 * io/write_float.def (output_float): Change return type to bool.
518 (output_float_FMT_G_ ## x): Change type of result variable.
519 * runtime/error.c (notify_std): Change return type to bool.
521 2013-03-11 Tobias Burnus <burnus@net-b.de>
523 * io/transfer.c (read_block_direct): Correct condition.
524 * intrinsics/execute_command_line.c (execute_command_line):
525 Remove dead code for the HAVE_FORK case.
527 2013-02-21 Janne Blomqvist <jb@gcc.gnu.org>
530 * io/open.c (test_endfile): Call stell only if size != 0.
531 * io/unix.c (raw_tell): Revert r194679.
532 (raw_size): Return size field only for regular files, otherwise 0.
534 2013-02-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
537 * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): Remove check for
539 * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Likewise.
540 * intrinsics/c99_functions.c: Likewise.
541 * configure: Rebuilt.
542 * config.h.in: Rebuilt.
544 2013-02-06 Janus Weil <janus@gcc.gnu.org>
547 * runtime/in_pack_generic.c (internal_pack): Return if base_addr is
550 2013-01-23 Janne Blomqvist <jb@gcc.gnu.org>
552 * io/file_pos.c (unformatted_backspace): Use __builtin_bswapXX
553 instead of reverse_memcpy.
554 * io/io.h (reverse_memcpy): Remove prototype.
555 * io/transfer.c (reverse_memcpy): Make static, move towards
557 (bswap_array): New function.
558 (unformatted_read): Use bswap_array to byte swap the data
560 (unformatted_write): Use a larger temp buffer and bswap_array.
561 (us_read): Use __builtin_bswapXX instead of reverse_memcpy.
562 (write_us_marker): Likewise.
564 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
566 Update copyright years.
568 2013-01-06 Tobias Burnus <burnus@net-b.de>
571 * intrinsics/env.c (get_environment_variable_i8): Don't use
572 uninitialized variable.
574 2013-01-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>
577 * io/list_read.c (read_real): Do not call hit_eof when EOF can be
578 treated as a value separator.
579 (parse_real): Likewise.
580 (read_logical): Likewise.
581 (read_character): Likewise.
582 (read_complex): Likewise.
584 Copyright (C) 2013-2014 Free Software Foundation, Inc.
586 Copying and distribution of this file, with or without modification,
587 are permitted in any medium without royalty provided the copyright
588 notice and this notice are preserved.