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