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