PR fortran/29600
[official-gcc.git] / libgfortran / ChangeLog
blob65e0099a0cd4d2bee4e889dab522a65360b6cc76
1 2015-08-26  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3         PR fortran/29600
4         * Makefile.am: Add generated/shape_i{1,2}.c
5         * Makefile.in: Regenerate.
6         * generated/shape_i1.c: New generated file.
7         * generated/shape_i2.c: New generated file.
8         * generated/shape_i4.c: Regenerate.
9         * generated/shape_i8.c: Regenerate.
10         * generated/shape_i16.c: Regenerate.
11         * gfortran.map (GFORTRAN_1.7): Add _gfortran_shape_{1,2}.
12         * m4/shape.m4: Fix parameter type.
14 2015-08-26  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16         * libgfortran.h (show_variables): Remove prototype.
17         * runtime/environ.c (print_spaces, var_source, show_integer,
18         show_boolean, show_sep, show_string): Remove functions.
19         * runtime/main.c (init): Remove dead code.
21 2015-08-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
23         * io/unit.c (get_internal_unit): Make default sign mode unspecified.
24         (init_units): Make default sign mode unspecified.
26 2015-08-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
28         * libgfortran.h (check_buffered): Remove unused prototype.
30 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
32         PR libfortran/57496
33         * io/write_float.def: Use built-in type-generic functions defined
34         by libgfortran.h for isfinite, isnan, and signbit.
36 2015-08-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
38         PR libfortran/54572
39         * Makefile.am (libgfortran_la_LDFLAGS): Link in libbacktrace.
40         (AM_CPPFLAGS): Add libbacktrace directories to include paths.
41         * Makefile.in: Regenerate.
42         * aclocal.m4: Regenerate.
43         * config.h.in: Regenerate.
44         * configure: Regenerate.
45         * configure.ac: Remove checks for strtok_r, wait, execve, pipe,
46         and dup2. Remove call to GCC_CHECK_UNWIND_GETIPINFO.
47         * libgfortran.h (full_exe_path, find_addr2line, backtrace): Remove
48         prototypes.
49         (show_backtrace): Add prototype.
50         * runtime/backtrace.c: Rework file entirely.
51         * runtime/compile_options.c (backtrace_handler): Rename backtrace
52         to show_backtrace.
53         (maybe_find_addr2line): Remove function.
54         (set_options): Remove call to maybe_find_addr2line.
55         * runtime/error.c (sys_abort): Rename backtrace to show_backtrace.
56         * runtime/main.c (store_exe_path): Empty function body.
57         (full_exe_path, gfstrtok_r, find_addr2line): Remove functions.
58         (cleanup): Don't free removed variables.
59         * runtime/minimal.c (full_exe_path): Remove function.
60         (set_args): Don't set exe_path.
62 2015-08-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
64         PR libfortran/62296
65         * intrinsics/execute_command_line.c (EXEC_INVALIDCOMMAND): New
66         error code.
67         (cmdmsg_values): New error message.
68         (set_cmdstat): Rework runtime error.
69         (execute_command_line): Handle invalid command line error status.
71 2015-08-10  Steven G. Kargl  <kargl@gcc.gnu.org>
73         PR libfortran/67140
74         * intrinsics/mvbits.c: Fix build for platforms without c_int128_t.
76 2015-08-10  Steven G. Kargl  <kargl@gcc.gnu.org>
78         PR libfortran/67140
79         * gfortran.map: Add _gfortran_mvbits_i16.
80         * intrinsics/mvbits.c: Generate mvbits for c_int128_t.
82 2015-08-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
84         PR libfortran/66936
85         * io/unix.c (__MINGW32__): Undefine HAVE_UMASK.
87 2015-08-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
89         PR libfortran/66458
90         * runtime/main.c (init): Only call set_fpu() if requested by user.
92 2015-08-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
94         * runtime/compile_options.c (set_options): Fix typos.
96 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
98         * config/fpu-387.h (get_fpu_trap_exceptions): Add temporary variable
99         to improve generated code.
101 2015-08-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
103         PR fortran/64022
104         * ieee/ieee_exceptions.F90: Support all real kinds.
105         * ieee/ieee_arithmetic.F90: Likewise.
106         * ieee/ieee_helper.c (ieee_class_helper_10,
107         ieee_class_helper_16): New functions
108         * gfortran.map (GFORTRAN_1.7): Add entries.
110 2015-07-29  Uros Bizjak  <ubizjak@gmail.com>
112         PR libgfortran/66650
113         * libgfortran.h (GFC_DTYPE_SIZE_MASK): Rewrite to avoid
114         "left shift of negative value" warning.
116 2015-07-14  Janne Blomqvist  <jb@gcc.gnu.org>
118         PR libfortran/66861
119         * io/unix.c (compare_file_filename): Verify that u->filename is
120         non-NULL before strcmp.
121         (find_file0): Likewise.
123 2015-07-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
125         PR libfortran/40267
126         * Makefile.am: Remove libgfortranbegin targets.
127         * Makefile.in: Regenerate.
128         * fmain.c: Remove.
130 2015-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
132         * acinclude.m4 (GTHREAD_USE_WEAK): Define as 0 for *-*-musl*.
133         * configure: Regenerate.
135 2015-04-21 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
137         PR libgfortran/65234
138         * io/format.c (parse_format_list): Set the seen_dd flag in all
139         cases where a data descriptor has been seen.
141 2015-04-21 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
143         PR libgfortran/56743
144         * io/list_read.c (CASE_SEPARATORS): Add case for '!'.
145         (is_separator): Add condition for '!'.
146         (eat_separator): Use notify_std to warn or errord if '!' is
147         encountered before a proper separator.
149 2015-04-14 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
151         PR libgfortran/65089
152         * io/format.h (free_format): New function to free memory
153         allocated for building format error messages.
154         * io/format.c (format_error): Add checks before freeing memory
155         to avoid potential segfaults and free formatting data when
156         needed on error conditions. Always allocate and NULL terminate
157         the string.
158         * io/transfer.c (st_read_done, st_write_done): Use new
159         free_format function to clean up memory allocations when done.
161 2015-03-28 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
163         PR libgfortran/65596
164         * io/transfer.c (data_transfer_init): If in namelist mode and
165         delimiter is not specified, set it to DELIM_QUOTE, independent
166         of -std.
167         * io/unit.c (init_units): Set flags.delim to the correct
168         initial value of DELIM_UNSPECIFIED.
170 2015-03-25 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
172         PR libgfortran/65541
173         * io/write.c (nml_write_obj): Convert '+' to '%' before emitting
174         object names in namelists.
176 2015-03-22 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
178         PR libgfortran/59513
179         * io/transfer.c (data_transfer_init): Do not error for
180         -std=legacy.
182 2015-03-16 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
184         PR libgfortran/64432
185         * intrinsics/system_clock.c (system_clock4, system_clock8):
186         Cleanup some whitespace.
188 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
190         * caf/single.c (caf_runtime_error): Revert 2014-11-28 changes.
191         * runtime/minimal.c (STRERR_MAXSZ): Don't define.
192         (runtime_error_at, sys_abort): Bring more in line with the
193         non-LIBGFOR_MINIMAL code.
194         (runtime_warning_at, internal_error): New functions.
196 2015-03-11  Janne Blomqvist  <jb@gcc.gnu.org>
198         PR libfortran/65200
199         * io/open.c (new_unit): Use gf_strerror rather than hardcoding
200         error messages for different errno values.
201         * io/unix.c (regular_file2): Handle EPERM in addition to EACCES.
203 2015-03-10  Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>
204             Tobias Burnus  <burnus@net-b.de>
206         * caf/libcaf.h (_gfortran_caf_sync_memory): New prototype.
207         * caf/single.c (_gfortran_caf_sync_memory): Implement.
208         (_gfortran_caf_sync_all, _gfortran_caf_sync_image): Add
209         __asm__ __volatile___ ("":::"memory").
211 2015-02-10 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
213         PR libgfortran/57822
214         * io/write_float.def (output_float): Apply fix of previous patch
215         to correctly calculate the exponent number of digits and take
216         care of wide character output.
218 2015-02-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
220         PR libgfortran/57822
221         * io/write_float.def (output_float): If doing g0 editing and
222         exponent is zero, do not emit exponent.
224 2015-02-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
226         PR libgfortran/60956
227         * io/fbuf.c (fbuf_flush_list): New function that only flushes
228         if current fbuf position exceeds a limit.
229         * io/fbuf.h: Declare the new function.
230         * io/io.h (enum unit_mode): Add two new modes.
231         * io/list_read.c (list_formatted_read_scalar): Call new function.
232         * io/write.c: Include fbuf.h. (list_formatted_write_scalar):
233         Call new function.
235 2015-01-24  Janne Blomqvist  <jb@gcc.gnu.org>
237         PR libfortran/64770
238         * io/unit.c (filename_from_unit): Check that u->filename != NULL
239         before calling strdup.
241 2015-01-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
243         PR libgfortran/61933
244         * io/inquire.c (inquire_via_unit): Set existing to true for
245         any negative unit that is currently connected and any positive
246         units within range of KIND=4 value.  The unit value for any out
247         of range case that may occur if the user is using a KIND=8 will
248         have been set to -2 which is reserved and can never be opened,
249         and therefore the unit does not exist.
251 2015-01-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
253         PR libgfortran/61933
254         * io/inquire.c (inquire_via_unit): Set existing to true if a
255         gfc_unit stucture was found for the given unit number.
256         * runtime/error.c (translate_error): Add case for
257         LIBERROR_INQUIRE_INTERNAL_UNIT.
259 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
261         Update copyright years.
263 2015-01-02  Tobias Burnus  <burnus@net-b.de>
265         * caf/single.c (_gfortran_caf_co_reduce): New function.
266         * caf/libcaf.h (_gfortran_caf_co_reduce): New prototype.
268 Copyright (C) 2015 Free Software Foundation, Inc.
270 Copying and distribution of this file, with or without modification,
271 are permitted in any medium without royalty provided the copyright
272 notice and this notice are preserved.