libgfortran: Use remove(3) instead of unlink(2) when deleting files.
[official-gcc.git] / libgfortran / ChangeLog
blob5da6ea32fd61a4a9e861e2d27b27dd7aec0c47c1
1 2015-09-04  Janne Blomqvist  <jb@gcc.gnu.org>
3         * io/unix.h (delete_file): Remove prototype.
4         * io/unix.c (delete_file): Remove function.
5         * io/close.c (st_close): Replace delete_file and unlink with
6         remove.
7         * io/open.c (already_open): Replace unlink with remove.
9 2015-09-02  Janne Blomqvist  <jb@gcc.gnu.org>
11         PR libfortran/67414
12         * io/write.c (gfc_itoa): Move to runtime/string.c.
13         * libgfortran.h (show_backtrace): Make arg bool.
14         (gfc_itoa): New prototype.
15         * runtime/backtrace.c (struct mystate): Change type of try_simple
16         field, add in_signal_handler field.
17         (error_callback): Print out error number, or if not in a signal
18         handler, the error message.
19         (show_backtrace): Change type of arg, change initialization of
20         struct mystate.
21         (backtrace): Call show_backtrace with correct arg type.
22         * runtime/compile_options.c (backtrace_handler): Call with correct
23         arg type.
24         * runtime/error.c (sys_abort): Likewise.
25         (gf_strerror): Handle newlocale() failure.
26         * runtime/string.c (gfc_itoa): Function moved here from
27         io/write.c.
29 2015-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
31         PR libfortran/47571
32         * acinclude.m4 (LIBGFOR_GTHREAD_WEAK): Reinstate.
33         * configure.ac: Call LIBGFOR_GTHREAD_WEAK again.
34         * config.h.in: Regenerate.
35         * configure: Regenerate.
37 2015-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
39         PR libfortran/47571
40         * acinclude.m4 (LIBGFOR_GTHREAD_WEAK): Remove.
41         (LIBGFOR_CHECK_WEAKREF): New test.
42         * configure.ac: Call LIBGFOR_CHECK_WEAKREF instead of
43         LIBGFOR_GTHREAD_WEAK.
44         * config.h.in: Regenerate.
45         * configure: Regenerate.
46         * intrinsics/system_clock.c: Use SUPPORTS_WEAKREF instead of
47         SUPPORTS_WEAK and GTHREAD_USE_WEAK.
49 2015-08-29 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
51         PR libgfortran/67367
52         * io/unix.c (buf_read): Check for error condition and if found
53         return the error code.
55 2015-08-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
57         * acinclude.m4: Remove LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT.
58         * configure.ac: Remove checks for strcasestr, execl, close,
59         getrlimit, readlink, getppid, powl, erfl, j0l, j1l, y0l, y1l,
60         tgammal, and lgammal.
61         * config.h.in: Regenerate.
62         * configure: Regenerate.
64 2015-08-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
66         * io/unix.c (min): Remove unused macro.
68 2015-08-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
70         PR fortran/53668
71         * intrinsics/malloc.c: Adapt comments.
73 2015-08-28  James Greenhalgh  <james.greenhalgh@arm.com>
75         * configure.ac: Auto-detect newlib function support unless we
76         know there are issues when configuring for a host.
77         * configure: Regenerate.
79 2015-08-26  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
81         PR fortran/29600
82         * Makefile.am: Add generated/shape_i{1,2}.c
83         * Makefile.in: Regenerate.
84         * generated/shape_i1.c: New generated file.
85         * generated/shape_i2.c: New generated file.
86         * generated/shape_i4.c: Regenerate.
87         * generated/shape_i8.c: Regenerate.
88         * generated/shape_i16.c: Regenerate.
89         * gfortran.map (GFORTRAN_1.7): Add _gfortran_shape_{1,2}.
90         * m4/shape.m4: Fix parameter type.
92 2015-08-26  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
94         * libgfortran.h (show_variables): Remove prototype.
95         * runtime/environ.c (print_spaces, var_source, show_integer,
96         show_boolean, show_sep, show_string): Remove functions.
97         * runtime/main.c (init): Remove dead code.
99 2015-08-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
101         * io/unit.c (get_internal_unit): Make default sign mode unspecified.
102         (init_units): Make default sign mode unspecified.
104 2015-08-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
106         * libgfortran.h (check_buffered): Remove unused prototype.
108 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
110         PR libfortran/57496
111         * io/write_float.def: Use built-in type-generic functions defined
112         by libgfortran.h for isfinite, isnan, and signbit.
114 2015-08-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
116         PR libfortran/54572
117         * Makefile.am (libgfortran_la_LDFLAGS): Link in libbacktrace.
118         (AM_CPPFLAGS): Add libbacktrace directories to include paths.
119         * Makefile.in: Regenerate.
120         * aclocal.m4: Regenerate.
121         * config.h.in: Regenerate.
122         * configure: Regenerate.
123         * configure.ac: Remove checks for strtok_r, wait, execve, pipe,
124         and dup2. Remove call to GCC_CHECK_UNWIND_GETIPINFO.
125         * libgfortran.h (full_exe_path, find_addr2line, backtrace): Remove
126         prototypes.
127         (show_backtrace): Add prototype.
128         * runtime/backtrace.c: Rework file entirely.
129         * runtime/compile_options.c (backtrace_handler): Rename backtrace
130         to show_backtrace.
131         (maybe_find_addr2line): Remove function.
132         (set_options): Remove call to maybe_find_addr2line.
133         * runtime/error.c (sys_abort): Rename backtrace to show_backtrace.
134         * runtime/main.c (store_exe_path): Empty function body.
135         (full_exe_path, gfstrtok_r, find_addr2line): Remove functions.
136         (cleanup): Don't free removed variables.
137         * runtime/minimal.c (full_exe_path): Remove function.
138         (set_args): Don't set exe_path.
140 2015-08-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
142         PR libfortran/62296
143         * intrinsics/execute_command_line.c (EXEC_INVALIDCOMMAND): New
144         error code.
145         (cmdmsg_values): New error message.
146         (set_cmdstat): Rework runtime error.
147         (execute_command_line): Handle invalid command line error status.
149 2015-08-10  Steven G. Kargl  <kargl@gcc.gnu.org>
151         PR libfortran/67140
152         * intrinsics/mvbits.c: Fix build for platforms without c_int128_t.
154 2015-08-10  Steven G. Kargl  <kargl@gcc.gnu.org>
156         PR libfortran/67140
157         * gfortran.map: Add _gfortran_mvbits_i16.
158         * intrinsics/mvbits.c: Generate mvbits for c_int128_t.
160 2015-08-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
162         PR libfortran/66936
163         * io/unix.c (__MINGW32__): Undefine HAVE_UMASK.
165 2015-08-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
167         PR libfortran/66458
168         * runtime/main.c (init): Only call set_fpu() if requested by user.
170 2015-08-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
172         * runtime/compile_options.c (set_options): Fix typos.
174 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
176         * config/fpu-387.h (get_fpu_trap_exceptions): Add temporary variable
177         to improve generated code.
179 2015-08-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
181         PR fortran/64022
182         * ieee/ieee_exceptions.F90: Support all real kinds.
183         * ieee/ieee_arithmetic.F90: Likewise.
184         * ieee/ieee_helper.c (ieee_class_helper_10,
185         ieee_class_helper_16): New functions
186         * gfortran.map (GFORTRAN_1.7): Add entries.
188 2015-07-29  Uros Bizjak  <ubizjak@gmail.com>
190         PR libgfortran/66650
191         * libgfortran.h (GFC_DTYPE_SIZE_MASK): Rewrite to avoid
192         "left shift of negative value" warning.
194 2015-07-14  Janne Blomqvist  <jb@gcc.gnu.org>
196         PR libfortran/66861
197         * io/unix.c (compare_file_filename): Verify that u->filename is
198         non-NULL before strcmp.
199         (find_file0): Likewise.
201 2015-07-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
203         PR libfortran/40267
204         * Makefile.am: Remove libgfortranbegin targets.
205         * Makefile.in: Regenerate.
206         * fmain.c: Remove.
208 2015-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
210         * acinclude.m4 (GTHREAD_USE_WEAK): Define as 0 for *-*-musl*.
211         * configure: Regenerate.
213 2015-04-21 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
215         PR libgfortran/65234
216         * io/format.c (parse_format_list): Set the seen_dd flag in all
217         cases where a data descriptor has been seen.
219 2015-04-21 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
221         PR libgfortran/56743
222         * io/list_read.c (CASE_SEPARATORS): Add case for '!'.
223         (is_separator): Add condition for '!'.
224         (eat_separator): Use notify_std to warn or errord if '!' is
225         encountered before a proper separator.
227 2015-04-14 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
229         PR libgfortran/65089
230         * io/format.h (free_format): New function to free memory
231         allocated for building format error messages.
232         * io/format.c (format_error): Add checks before freeing memory
233         to avoid potential segfaults and free formatting data when
234         needed on error conditions. Always allocate and NULL terminate
235         the string.
236         * io/transfer.c (st_read_done, st_write_done): Use new
237         free_format function to clean up memory allocations when done.
239 2015-03-28 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
241         PR libgfortran/65596
242         * io/transfer.c (data_transfer_init): If in namelist mode and
243         delimiter is not specified, set it to DELIM_QUOTE, independent
244         of -std.
245         * io/unit.c (init_units): Set flags.delim to the correct
246         initial value of DELIM_UNSPECIFIED.
248 2015-03-25 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
250         PR libgfortran/65541
251         * io/write.c (nml_write_obj): Convert '+' to '%' before emitting
252         object names in namelists.
254 2015-03-22 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
256         PR libgfortran/59513
257         * io/transfer.c (data_transfer_init): Do not error for
258         -std=legacy.
260 2015-03-16 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
262         PR libgfortran/64432
263         * intrinsics/system_clock.c (system_clock4, system_clock8):
264         Cleanup some whitespace.
266 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
268         * caf/single.c (caf_runtime_error): Revert 2014-11-28 changes.
269         * runtime/minimal.c (STRERR_MAXSZ): Don't define.
270         (runtime_error_at, sys_abort): Bring more in line with the
271         non-LIBGFOR_MINIMAL code.
272         (runtime_warning_at, internal_error): New functions.
274 2015-03-11  Janne Blomqvist  <jb@gcc.gnu.org>
276         PR libfortran/65200
277         * io/open.c (new_unit): Use gf_strerror rather than hardcoding
278         error messages for different errno values.
279         * io/unix.c (regular_file2): Handle EPERM in addition to EACCES.
281 2015-03-10  Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>
282             Tobias Burnus  <burnus@net-b.de>
284         * caf/libcaf.h (_gfortran_caf_sync_memory): New prototype.
285         * caf/single.c (_gfortran_caf_sync_memory): Implement.
286         (_gfortran_caf_sync_all, _gfortran_caf_sync_image): Add
287         __asm__ __volatile___ ("":::"memory").
289 2015-02-10 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
291         PR libgfortran/57822
292         * io/write_float.def (output_float): Apply fix of previous patch
293         to correctly calculate the exponent number of digits and take
294         care of wide character output.
296 2015-02-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
298         PR libgfortran/57822
299         * io/write_float.def (output_float): If doing g0 editing and
300         exponent is zero, do not emit exponent.
302 2015-02-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
304         PR libgfortran/60956
305         * io/fbuf.c (fbuf_flush_list): New function that only flushes
306         if current fbuf position exceeds a limit.
307         * io/fbuf.h: Declare the new function.
308         * io/io.h (enum unit_mode): Add two new modes.
309         * io/list_read.c (list_formatted_read_scalar): Call new function.
310         * io/write.c: Include fbuf.h. (list_formatted_write_scalar):
311         Call new function.
313 2015-01-24  Janne Blomqvist  <jb@gcc.gnu.org>
315         PR libfortran/64770
316         * io/unit.c (filename_from_unit): Check that u->filename != NULL
317         before calling strdup.
319 2015-01-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
321         PR libgfortran/61933
322         * io/inquire.c (inquire_via_unit): Set existing to true for
323         any negative unit that is currently connected and any positive
324         units within range of KIND=4 value.  The unit value for any out
325         of range case that may occur if the user is using a KIND=8 will
326         have been set to -2 which is reserved and can never be opened,
327         and therefore the unit does not exist.
329 2015-01-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
331         PR libgfortran/61933
332         * io/inquire.c (inquire_via_unit): Set existing to true if a
333         gfc_unit stucture was found for the given unit number.
334         * runtime/error.c (translate_error): Add case for
335         LIBERROR_INQUIRE_INTERNAL_UNIT.
337 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
339         Update copyright years.
341 2015-01-02  Tobias Burnus  <burnus@net-b.de>
343         * caf/single.c (_gfortran_caf_co_reduce): New function.
344         * caf/libcaf.h (_gfortran_caf_co_reduce): New prototype.
346 Copyright (C) 2015 Free Software Foundation, Inc.
348 Copying and distribution of this file, with or without modification,
349 are permitted in any medium without royalty provided the copyright
350 notice and this notice are preserved.