1 2015-12-05 Juoko Orava <jouko.orava@iki.fi>
4 * io/write_float.def: Avoid marking quadmath_snprintf as an untyped
5 weak reference, which fixing linking with -static.
7 2015-11-26 Tobias Burnus <burnus@net-b.de>
8 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
10 * caf/libcaf.h (_gfortran_caf_event_post,
11 _gfortran_caf_event_wait,_gfortran_caf_event_query): New prototypes.
12 * caf/single.c (_gfortran_caf_event_post,
13 _gfortran_caf_event_wait,_gfortran_caf_event_query): Implement.
15 2015-11-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
18 * io/transfer.c (formatted_transfer_scalar_write): Reset skips count.
19 (finalize_transfer): For ADVANCE_NO, emit pending spaces and reset the
22 2015-11-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
24 * io/write_float.def (output_float): Move block determining
25 room for leading zero to before checkng g0 formatting.
27 2015-09-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
32 * io/io.h: Use unsigned values for 31-bit left shifts.
33 * io/unix.c (buf_read): Do not call memcpy() with NULL pointer arg.
34 * io/write.c (nml_write_obj): Likewise.
36 2015-09-05 Janne Blomqvist <jb@gcc.gnu.org>
39 * libgfortran.h (exit_error): New prototype.
40 * runtime/error.c (exit_error): New function.
41 (os_error): Call exit_error instead of exit.
42 (runtime_error): Likewise.
43 (runtime_error_at): Likewise.
44 (internal_error): Likewise.
45 (generate_error): Likewise.
46 (notify_std): Likewise.
47 * runtime/stop.c (error_stop_string): Likewise.
48 (error_stop_numeric): Likewise.
50 2015-09-04 Janne Blomqvist <jb@gcc.gnu.org>
52 * io/unix.h (delete_file): Remove prototype.
53 * io/unix.c (delete_file): Remove function.
54 * io/close.c (st_close): Replace delete_file and unlink with
56 * io/open.c (already_open): Replace unlink with remove.
58 2015-09-02 Janne Blomqvist <jb@gcc.gnu.org>
61 * io/write.c (gfc_itoa): Move to runtime/string.c.
62 * libgfortran.h (show_backtrace): Make arg bool.
63 (gfc_itoa): New prototype.
64 * runtime/backtrace.c (struct mystate): Change type of try_simple
65 field, add in_signal_handler field.
66 (error_callback): Print out error number, or if not in a signal
67 handler, the error message.
68 (show_backtrace): Change type of arg, change initialization of
70 (backtrace): Call show_backtrace with correct arg type.
71 * runtime/compile_options.c (backtrace_handler): Call with correct
73 * runtime/error.c (sys_abort): Likewise.
74 (gf_strerror): Handle newlocale() failure.
75 * runtime/string.c (gfc_itoa): Function moved here from
78 2015-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
81 * acinclude.m4 (LIBGFOR_GTHREAD_WEAK): Reinstate.
82 * configure.ac: Call LIBGFOR_GTHREAD_WEAK again.
83 * config.h.in: Regenerate.
84 * configure: Regenerate.
86 2015-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
89 * acinclude.m4 (LIBGFOR_GTHREAD_WEAK): Remove.
90 (LIBGFOR_CHECK_WEAKREF): New test.
91 * configure.ac: Call LIBGFOR_CHECK_WEAKREF instead of
93 * config.h.in: Regenerate.
94 * configure: Regenerate.
95 * intrinsics/system_clock.c: Use SUPPORTS_WEAKREF instead of
96 SUPPORTS_WEAK and GTHREAD_USE_WEAK.
98 2015-08-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
101 * io/unix.c (buf_read): Check for error condition and if found
102 return the error code.
104 2015-08-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
106 * acinclude.m4: Remove LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT.
107 * configure.ac: Remove checks for strcasestr, execl, close,
108 getrlimit, readlink, getppid, powl, erfl, j0l, j1l, y0l, y1l,
109 tgammal, and lgammal.
110 * config.h.in: Regenerate.
111 * configure: Regenerate.
113 2015-08-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
115 * io/unix.c (min): Remove unused macro.
117 2015-08-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
120 * intrinsics/malloc.c: Adapt comments.
122 2015-08-28 James Greenhalgh <james.greenhalgh@arm.com>
124 * configure.ac: Auto-detect newlib function support unless we
125 know there are issues when configuring for a host.
126 * configure: Regenerate.
128 2015-08-26 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
131 * Makefile.am: Add generated/shape_i{1,2}.c
132 * Makefile.in: Regenerate.
133 * generated/shape_i1.c: New generated file.
134 * generated/shape_i2.c: New generated file.
135 * generated/shape_i4.c: Regenerate.
136 * generated/shape_i8.c: Regenerate.
137 * generated/shape_i16.c: Regenerate.
138 * gfortran.map (GFORTRAN_1.7): Add _gfortran_shape_{1,2}.
139 * m4/shape.m4: Fix parameter type.
141 2015-08-26 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
143 * libgfortran.h (show_variables): Remove prototype.
144 * runtime/environ.c (print_spaces, var_source, show_integer,
145 show_boolean, show_sep, show_string): Remove functions.
146 * runtime/main.c (init): Remove dead code.
148 2015-08-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
150 * io/unit.c (get_internal_unit): Make default sign mode unspecified.
151 (init_units): Make default sign mode unspecified.
153 2015-08-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
155 * libgfortran.h (check_buffered): Remove unused prototype.
157 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
160 * io/write_float.def: Use built-in type-generic functions defined
161 by libgfortran.h for isfinite, isnan, and signbit.
163 2015-08-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
166 * Makefile.am (libgfortran_la_LDFLAGS): Link in libbacktrace.
167 (AM_CPPFLAGS): Add libbacktrace directories to include paths.
168 * Makefile.in: Regenerate.
169 * aclocal.m4: Regenerate.
170 * config.h.in: Regenerate.
171 * configure: Regenerate.
172 * configure.ac: Remove checks for strtok_r, wait, execve, pipe,
173 and dup2. Remove call to GCC_CHECK_UNWIND_GETIPINFO.
174 * libgfortran.h (full_exe_path, find_addr2line, backtrace): Remove
176 (show_backtrace): Add prototype.
177 * runtime/backtrace.c: Rework file entirely.
178 * runtime/compile_options.c (backtrace_handler): Rename backtrace
180 (maybe_find_addr2line): Remove function.
181 (set_options): Remove call to maybe_find_addr2line.
182 * runtime/error.c (sys_abort): Rename backtrace to show_backtrace.
183 * runtime/main.c (store_exe_path): Empty function body.
184 (full_exe_path, gfstrtok_r, find_addr2line): Remove functions.
185 (cleanup): Don't free removed variables.
186 * runtime/minimal.c (full_exe_path): Remove function.
187 (set_args): Don't set exe_path.
189 2015-08-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
192 * intrinsics/execute_command_line.c (EXEC_INVALIDCOMMAND): New
194 (cmdmsg_values): New error message.
195 (set_cmdstat): Rework runtime error.
196 (execute_command_line): Handle invalid command line error status.
198 2015-08-10 Steven G. Kargl <kargl@gcc.gnu.org>
201 * intrinsics/mvbits.c: Fix build for platforms without c_int128_t.
203 2015-08-10 Steven G. Kargl <kargl@gcc.gnu.org>
206 * gfortran.map: Add _gfortran_mvbits_i16.
207 * intrinsics/mvbits.c: Generate mvbits for c_int128_t.
209 2015-08-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
212 * io/unix.c (__MINGW32__): Undefine HAVE_UMASK.
214 2015-08-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
217 * runtime/main.c (init): Only call set_fpu() if requested by user.
219 2015-08-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
221 * runtime/compile_options.c (set_options): Fix typos.
223 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
225 * config/fpu-387.h (get_fpu_trap_exceptions): Add temporary variable
226 to improve generated code.
228 2015-08-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
231 * ieee/ieee_exceptions.F90: Support all real kinds.
232 * ieee/ieee_arithmetic.F90: Likewise.
233 * ieee/ieee_helper.c (ieee_class_helper_10,
234 ieee_class_helper_16): New functions
235 * gfortran.map (GFORTRAN_1.7): Add entries.
237 2015-07-29 Uros Bizjak <ubizjak@gmail.com>
240 * libgfortran.h (GFC_DTYPE_SIZE_MASK): Rewrite to avoid
241 "left shift of negative value" warning.
243 2015-07-14 Janne Blomqvist <jb@gcc.gnu.org>
246 * io/unix.c (compare_file_filename): Verify that u->filename is
247 non-NULL before strcmp.
248 (find_file0): Likewise.
250 2015-07-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
253 * Makefile.am: Remove libgfortranbegin targets.
254 * Makefile.in: Regenerate.
257 2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
259 * acinclude.m4 (GTHREAD_USE_WEAK): Define as 0 for *-*-musl*.
260 * configure: Regenerate.
262 2015-04-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
265 * io/format.c (parse_format_list): Set the seen_dd flag in all
266 cases where a data descriptor has been seen.
268 2015-04-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
271 * io/list_read.c (CASE_SEPARATORS): Add case for '!'.
272 (is_separator): Add condition for '!'.
273 (eat_separator): Use notify_std to warn or errord if '!' is
274 encountered before a proper separator.
276 2015-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
279 * io/format.h (free_format): New function to free memory
280 allocated for building format error messages.
281 * io/format.c (format_error): Add checks before freeing memory
282 to avoid potential segfaults and free formatting data when
283 needed on error conditions. Always allocate and NULL terminate
285 * io/transfer.c (st_read_done, st_write_done): Use new
286 free_format function to clean up memory allocations when done.
288 2015-03-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
291 * io/transfer.c (data_transfer_init): If in namelist mode and
292 delimiter is not specified, set it to DELIM_QUOTE, independent
294 * io/unit.c (init_units): Set flags.delim to the correct
295 initial value of DELIM_UNSPECIFIED.
297 2015-03-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
300 * io/write.c (nml_write_obj): Convert '+' to '%' before emitting
301 object names in namelists.
303 2015-03-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
306 * io/transfer.c (data_transfer_init): Do not error for
309 2015-03-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
312 * intrinsics/system_clock.c (system_clock4, system_clock8):
313 Cleanup some whitespace.
315 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
317 * caf/single.c (caf_runtime_error): Revert 2014-11-28 changes.
318 * runtime/minimal.c (STRERR_MAXSZ): Don't define.
319 (runtime_error_at, sys_abort): Bring more in line with the
320 non-LIBGFOR_MINIMAL code.
321 (runtime_warning_at, internal_error): New functions.
323 2015-03-11 Janne Blomqvist <jb@gcc.gnu.org>
326 * io/open.c (new_unit): Use gf_strerror rather than hardcoding
327 error messages for different errno values.
328 * io/unix.c (regular_file2): Handle EPERM in addition to EACCES.
330 2015-03-10 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
331 Tobias Burnus <burnus@net-b.de>
333 * caf/libcaf.h (_gfortran_caf_sync_memory): New prototype.
334 * caf/single.c (_gfortran_caf_sync_memory): Implement.
335 (_gfortran_caf_sync_all, _gfortran_caf_sync_image): Add
336 __asm__ __volatile___ ("":::"memory").
338 2015-02-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
341 * io/write_float.def (output_float): Apply fix of previous patch
342 to correctly calculate the exponent number of digits and take
343 care of wide character output.
345 2015-02-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
348 * io/write_float.def (output_float): If doing g0 editing and
349 exponent is zero, do not emit exponent.
351 2015-02-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
354 * io/fbuf.c (fbuf_flush_list): New function that only flushes
355 if current fbuf position exceeds a limit.
356 * io/fbuf.h: Declare the new function.
357 * io/io.h (enum unit_mode): Add two new modes.
358 * io/list_read.c (list_formatted_read_scalar): Call new function.
359 * io/write.c: Include fbuf.h. (list_formatted_write_scalar):
362 2015-01-24 Janne Blomqvist <jb@gcc.gnu.org>
365 * io/unit.c (filename_from_unit): Check that u->filename != NULL
366 before calling strdup.
368 2015-01-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
371 * io/inquire.c (inquire_via_unit): Set existing to true for
372 any negative unit that is currently connected and any positive
373 units within range of KIND=4 value. The unit value for any out
374 of range case that may occur if the user is using a KIND=8 will
375 have been set to -2 which is reserved and can never be opened,
376 and therefore the unit does not exist.
378 2015-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
381 * io/inquire.c (inquire_via_unit): Set existing to true if a
382 gfc_unit stucture was found for the given unit number.
383 * runtime/error.c (translate_error): Add case for
384 LIBERROR_INQUIRE_INTERNAL_UNIT.
386 2015-01-05 Jakub Jelinek <jakub@redhat.com>
388 Update copyright years.
390 2015-01-02 Tobias Burnus <burnus@net-b.de>
392 * caf/single.c (_gfortran_caf_co_reduce): New function.
393 * caf/libcaf.h (_gfortran_caf_co_reduce): New prototype.
395 Copyright (C) 2015 Free Software Foundation, Inc.
397 Copying and distribution of this file, with or without modification,
398 are permitted in any medium without royalty provided the copyright
399 notice and this notice are preserved.