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