2015-12-02 Tobias Burnus <burnus@net-b.de>
[official-gcc.git] / libgfortran / ChangeLog
blob4843fd5046422a189b21af71e2bbed8964ce44b8
1 2015-11-26  Tobias Burnus  <burnus@net-b.de>
2             Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>
4         * caf/libcaf.h (_gfortran_caf_event_post,
5         _gfortran_caf_event_wait,_gfortran_caf_event_query): New prototypes.
6         * caf/single.c (_gfortran_caf_event_post,
7         _gfortran_caf_event_wait,_gfortran_caf_event_query): Implement.
9 2015-11-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
11         PR libfortran/52251
12         * io/transfer.c (formatted_transfer_scalar_write): Reset skips count.
13         (finalize_transfer): For ADVANCE_NO, emit pending spaces and reset the
14         skip count.
16 2015-11-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
18         * io/write_float.def (output_float): Move block determining
19         room for leading zero to before checkng g0 formatting.
21 2015-09-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
23         PR libfortran/67527
24         PR libfortran/67535
25         PR libfortran/67536
26         * io/io.h: Use unsigned values for 31-bit left shifts.
27         * io/unix.c (buf_read): Do not call memcpy() with NULL pointer arg.
28         * io/write.c (nml_write_obj): Likewise.
30 2015-09-05  Janne Blomqvist  <jb@gcc.gnu.org>
32         PR fortran/53379
33         * libgfortran.h (exit_error): New prototype.
34         * runtime/error.c (exit_error): New function.
35         (os_error): Call exit_error instead of exit.
36         (runtime_error): Likewise.
37         (runtime_error_at): Likewise.
38         (internal_error): Likewise.
39         (generate_error): Likewise.
40         (notify_std): Likewise.
41         * runtime/stop.c (error_stop_string): Likewise.
42         (error_stop_numeric): Likewise.
44 2015-09-04  Janne Blomqvist  <jb@gcc.gnu.org>
46         * io/unix.h (delete_file): Remove prototype.
47         * io/unix.c (delete_file): Remove function.
48         * io/close.c (st_close): Replace delete_file and unlink with
49         remove.
50         * io/open.c (already_open): Replace unlink with remove.
52 2015-09-02  Janne Blomqvist  <jb@gcc.gnu.org>
54         PR libfortran/67414
55         * io/write.c (gfc_itoa): Move to runtime/string.c.
56         * libgfortran.h (show_backtrace): Make arg bool.
57         (gfc_itoa): New prototype.
58         * runtime/backtrace.c (struct mystate): Change type of try_simple
59         field, add in_signal_handler field.
60         (error_callback): Print out error number, or if not in a signal
61         handler, the error message.
62         (show_backtrace): Change type of arg, change initialization of
63         struct mystate.
64         (backtrace): Call show_backtrace with correct arg type.
65         * runtime/compile_options.c (backtrace_handler): Call with correct
66         arg type.
67         * runtime/error.c (sys_abort): Likewise.
68         (gf_strerror): Handle newlocale() failure.
69         * runtime/string.c (gfc_itoa): Function moved here from
70         io/write.c.
72 2015-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
74         PR libfortran/47571
75         * acinclude.m4 (LIBGFOR_GTHREAD_WEAK): Reinstate.
76         * configure.ac: Call LIBGFOR_GTHREAD_WEAK again.
77         * config.h.in: Regenerate.
78         * configure: Regenerate.
80 2015-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
82         PR libfortran/47571
83         * acinclude.m4 (LIBGFOR_GTHREAD_WEAK): Remove.
84         (LIBGFOR_CHECK_WEAKREF): New test.
85         * configure.ac: Call LIBGFOR_CHECK_WEAKREF instead of
86         LIBGFOR_GTHREAD_WEAK.
87         * config.h.in: Regenerate.
88         * configure: Regenerate.
89         * intrinsics/system_clock.c: Use SUPPORTS_WEAKREF instead of
90         SUPPORTS_WEAK and GTHREAD_USE_WEAK.
92 2015-08-29 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
94         PR libgfortran/67367
95         * io/unix.c (buf_read): Check for error condition and if found
96         return the error code.
98 2015-08-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
100         * acinclude.m4: Remove LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT.
101         * configure.ac: Remove checks for strcasestr, execl, close,
102         getrlimit, readlink, getppid, powl, erfl, j0l, j1l, y0l, y1l,
103         tgammal, and lgammal.
104         * config.h.in: Regenerate.
105         * configure: Regenerate.
107 2015-08-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
109         * io/unix.c (min): Remove unused macro.
111 2015-08-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
113         PR fortran/53668
114         * intrinsics/malloc.c: Adapt comments.
116 2015-08-28  James Greenhalgh  <james.greenhalgh@arm.com>
118         * configure.ac: Auto-detect newlib function support unless we
119         know there are issues when configuring for a host.
120         * configure: Regenerate.
122 2015-08-26  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
124         PR fortran/29600
125         * Makefile.am: Add generated/shape_i{1,2}.c
126         * Makefile.in: Regenerate.
127         * generated/shape_i1.c: New generated file.
128         * generated/shape_i2.c: New generated file.
129         * generated/shape_i4.c: Regenerate.
130         * generated/shape_i8.c: Regenerate.
131         * generated/shape_i16.c: Regenerate.
132         * gfortran.map (GFORTRAN_1.7): Add _gfortran_shape_{1,2}.
133         * m4/shape.m4: Fix parameter type.
135 2015-08-26  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
137         * libgfortran.h (show_variables): Remove prototype.
138         * runtime/environ.c (print_spaces, var_source, show_integer,
139         show_boolean, show_sep, show_string): Remove functions.
140         * runtime/main.c (init): Remove dead code.
142 2015-08-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
144         * io/unit.c (get_internal_unit): Make default sign mode unspecified.
145         (init_units): Make default sign mode unspecified.
147 2015-08-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
149         * libgfortran.h (check_buffered): Remove unused prototype.
151 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
153         PR libfortran/57496
154         * io/write_float.def: Use built-in type-generic functions defined
155         by libgfortran.h for isfinite, isnan, and signbit.
157 2015-08-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
159         PR libfortran/54572
160         * Makefile.am (libgfortran_la_LDFLAGS): Link in libbacktrace.
161         (AM_CPPFLAGS): Add libbacktrace directories to include paths.
162         * Makefile.in: Regenerate.
163         * aclocal.m4: Regenerate.
164         * config.h.in: Regenerate.
165         * configure: Regenerate.
166         * configure.ac: Remove checks for strtok_r, wait, execve, pipe,
167         and dup2. Remove call to GCC_CHECK_UNWIND_GETIPINFO.
168         * libgfortran.h (full_exe_path, find_addr2line, backtrace): Remove
169         prototypes.
170         (show_backtrace): Add prototype.
171         * runtime/backtrace.c: Rework file entirely.
172         * runtime/compile_options.c (backtrace_handler): Rename backtrace
173         to show_backtrace.
174         (maybe_find_addr2line): Remove function.
175         (set_options): Remove call to maybe_find_addr2line.
176         * runtime/error.c (sys_abort): Rename backtrace to show_backtrace.
177         * runtime/main.c (store_exe_path): Empty function body.
178         (full_exe_path, gfstrtok_r, find_addr2line): Remove functions.
179         (cleanup): Don't free removed variables.
180         * runtime/minimal.c (full_exe_path): Remove function.
181         (set_args): Don't set exe_path.
183 2015-08-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
185         PR libfortran/62296
186         * intrinsics/execute_command_line.c (EXEC_INVALIDCOMMAND): New
187         error code.
188         (cmdmsg_values): New error message.
189         (set_cmdstat): Rework runtime error.
190         (execute_command_line): Handle invalid command line error status.
192 2015-08-10  Steven G. Kargl  <kargl@gcc.gnu.org>
194         PR libfortran/67140
195         * intrinsics/mvbits.c: Fix build for platforms without c_int128_t.
197 2015-08-10  Steven G. Kargl  <kargl@gcc.gnu.org>
199         PR libfortran/67140
200         * gfortran.map: Add _gfortran_mvbits_i16.
201         * intrinsics/mvbits.c: Generate mvbits for c_int128_t.
203 2015-08-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
205         PR libfortran/66936
206         * io/unix.c (__MINGW32__): Undefine HAVE_UMASK.
208 2015-08-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
210         PR libfortran/66458
211         * runtime/main.c (init): Only call set_fpu() if requested by user.
213 2015-08-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
215         * runtime/compile_options.c (set_options): Fix typos.
217 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
219         * config/fpu-387.h (get_fpu_trap_exceptions): Add temporary variable
220         to improve generated code.
222 2015-08-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
224         PR fortran/64022
225         * ieee/ieee_exceptions.F90: Support all real kinds.
226         * ieee/ieee_arithmetic.F90: Likewise.
227         * ieee/ieee_helper.c (ieee_class_helper_10,
228         ieee_class_helper_16): New functions
229         * gfortran.map (GFORTRAN_1.7): Add entries.
231 2015-07-29  Uros Bizjak  <ubizjak@gmail.com>
233         PR libgfortran/66650
234         * libgfortran.h (GFC_DTYPE_SIZE_MASK): Rewrite to avoid
235         "left shift of negative value" warning.
237 2015-07-14  Janne Blomqvist  <jb@gcc.gnu.org>
239         PR libfortran/66861
240         * io/unix.c (compare_file_filename): Verify that u->filename is
241         non-NULL before strcmp.
242         (find_file0): Likewise.
244 2015-07-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
246         PR libfortran/40267
247         * Makefile.am: Remove libgfortranbegin targets.
248         * Makefile.in: Regenerate.
249         * fmain.c: Remove.
251 2015-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
253         * acinclude.m4 (GTHREAD_USE_WEAK): Define as 0 for *-*-musl*.
254         * configure: Regenerate.
256 2015-04-21 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
258         PR libgfortran/65234
259         * io/format.c (parse_format_list): Set the seen_dd flag in all
260         cases where a data descriptor has been seen.
262 2015-04-21 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
264         PR libgfortran/56743
265         * io/list_read.c (CASE_SEPARATORS): Add case for '!'.
266         (is_separator): Add condition for '!'.
267         (eat_separator): Use notify_std to warn or errord if '!' is
268         encountered before a proper separator.
270 2015-04-14 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
272         PR libgfortran/65089
273         * io/format.h (free_format): New function to free memory
274         allocated for building format error messages.
275         * io/format.c (format_error): Add checks before freeing memory
276         to avoid potential segfaults and free formatting data when
277         needed on error conditions. Always allocate and NULL terminate
278         the string.
279         * io/transfer.c (st_read_done, st_write_done): Use new
280         free_format function to clean up memory allocations when done.
282 2015-03-28 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
284         PR libgfortran/65596
285         * io/transfer.c (data_transfer_init): If in namelist mode and
286         delimiter is not specified, set it to DELIM_QUOTE, independent
287         of -std.
288         * io/unit.c (init_units): Set flags.delim to the correct
289         initial value of DELIM_UNSPECIFIED.
291 2015-03-25 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
293         PR libgfortran/65541
294         * io/write.c (nml_write_obj): Convert '+' to '%' before emitting
295         object names in namelists.
297 2015-03-22 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
299         PR libgfortran/59513
300         * io/transfer.c (data_transfer_init): Do not error for
301         -std=legacy.
303 2015-03-16 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
305         PR libgfortran/64432
306         * intrinsics/system_clock.c (system_clock4, system_clock8):
307         Cleanup some whitespace.
309 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
311         * caf/single.c (caf_runtime_error): Revert 2014-11-28 changes.
312         * runtime/minimal.c (STRERR_MAXSZ): Don't define.
313         (runtime_error_at, sys_abort): Bring more in line with the
314         non-LIBGFOR_MINIMAL code.
315         (runtime_warning_at, internal_error): New functions.
317 2015-03-11  Janne Blomqvist  <jb@gcc.gnu.org>
319         PR libfortran/65200
320         * io/open.c (new_unit): Use gf_strerror rather than hardcoding
321         error messages for different errno values.
322         * io/unix.c (regular_file2): Handle EPERM in addition to EACCES.
324 2015-03-10  Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>
325             Tobias Burnus  <burnus@net-b.de>
327         * caf/libcaf.h (_gfortran_caf_sync_memory): New prototype.
328         * caf/single.c (_gfortran_caf_sync_memory): Implement.
329         (_gfortran_caf_sync_all, _gfortran_caf_sync_image): Add
330         __asm__ __volatile___ ("":::"memory").
332 2015-02-10 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
334         PR libgfortran/57822
335         * io/write_float.def (output_float): Apply fix of previous patch
336         to correctly calculate the exponent number of digits and take
337         care of wide character output.
339 2015-02-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
341         PR libgfortran/57822
342         * io/write_float.def (output_float): If doing g0 editing and
343         exponent is zero, do not emit exponent.
345 2015-02-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
347         PR libgfortran/60956
348         * io/fbuf.c (fbuf_flush_list): New function that only flushes
349         if current fbuf position exceeds a limit.
350         * io/fbuf.h: Declare the new function.
351         * io/io.h (enum unit_mode): Add two new modes.
352         * io/list_read.c (list_formatted_read_scalar): Call new function.
353         * io/write.c: Include fbuf.h. (list_formatted_write_scalar):
354         Call new function.
356 2015-01-24  Janne Blomqvist  <jb@gcc.gnu.org>
358         PR libfortran/64770
359         * io/unit.c (filename_from_unit): Check that u->filename != NULL
360         before calling strdup.
362 2015-01-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
364         PR libgfortran/61933
365         * io/inquire.c (inquire_via_unit): Set existing to true for
366         any negative unit that is currently connected and any positive
367         units within range of KIND=4 value.  The unit value for any out
368         of range case that may occur if the user is using a KIND=8 will
369         have been set to -2 which is reserved and can never be opened,
370         and therefore the unit does not exist.
372 2015-01-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
374         PR libgfortran/61933
375         * io/inquire.c (inquire_via_unit): Set existing to true if a
376         gfc_unit stucture was found for the given unit number.
377         * runtime/error.c (translate_error): Add case for
378         LIBERROR_INQUIRE_INTERNAL_UNIT.
380 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
382         Update copyright years.
384 2015-01-02  Tobias Burnus  <burnus@net-b.de>
386         * caf/single.c (_gfortran_caf_co_reduce): New function.
387         * caf/libcaf.h (_gfortran_caf_co_reduce): New prototype.
389 Copyright (C) 2015 Free Software Foundation, Inc.
391 Copying and distribution of this file, with or without modification,
392 are permitted in any medium without royalty provided the copyright
393 notice and this notice are preserved.