PR 66861 Fix null pointer crash on mingw.
[official-gcc.git] / libgfortran / ChangeLog
blob876b2c92f8a4c1f7f013cba6d230e13f05219285
1 2015-07-14  Janne Blomqvist  <jb@gcc.gnu.org>
3         PR libfortran/66861
4         * io/unix.c (compare_file_filename): Verify that u->filename is
5         non-NULL before strcmp.
6         (find_file0): Likewise.
8 2015-07-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10         PR libfortran/40267
11         * Makefile.am: Remove libgfortranbegin targets.
12         * Makefile.in: Regenerate.
13         * fmain.c: Remove.
15 2015-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17         * acinclude.m4 (GTHREAD_USE_WEAK): Define as 0 for *-*-musl*.
18         * configure: Regenerate.
20 2015-04-21 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
22         PR libgfortran/65234
23         * io/format.c (parse_format_list): Set the seen_dd flag in all
24         cases where a data descriptor has been seen.
26 2015-04-21 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
28         PR libgfortran/56743
29         * io/list_read.c (CASE_SEPARATORS): Add case for '!'.
30         (is_separator): Add condition for '!'.
31         (eat_separator): Use notify_std to warn or errord if '!' is
32         encountered before a proper separator.
34 2015-04-14 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
36         PR libgfortran/65089
37         * io/format.h (free_format): New function to free memory
38         allocated for building format error messages.
39         * io/format.c (format_error): Add checks before freeing memory
40         to avoid potential segfaults and free formatting data when
41         needed on error conditions. Always allocate and NULL terminate
42         the string.
43         * io/transfer.c (st_read_done, st_write_done): Use new
44         free_format function to clean up memory allocations when done.
46 2015-03-28 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
48         PR libgfortran/65596
49         * io/transfer.c (data_transfer_init): If in namelist mode and
50         delimiter is not specified, set it to DELIM_QUOTE, independent
51         of -std.
52         * io/unit.c (init_units): Set flags.delim to the correct
53         initial value of DELIM_UNSPECIFIED.
55 2015-03-25 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
57         PR libgfortran/65541
58         * io/write.c (nml_write_obj): Convert '+' to '%' before emitting
59         object names in namelists.
61 2015-03-22 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
63         PR libgfortran/59513
64         * io/transfer.c (data_transfer_init): Do not error for
65         -std=legacy.
67 2015-03-16 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
69         PR libgfortran/64432
70         * intrinsics/system_clock.c (system_clock4, system_clock8):
71         Cleanup some whitespace.
73 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
75         * caf/single.c (caf_runtime_error): Revert 2014-11-28 changes.
76         * runtime/minimal.c (STRERR_MAXSZ): Don't define.
77         (runtime_error_at, sys_abort): Bring more in line with the
78         non-LIBGFOR_MINIMAL code.
79         (runtime_warning_at, internal_error): New functions.
81 2015-03-11  Janne Blomqvist  <jb@gcc.gnu.org>
83         PR libfortran/65200
84         * io/open.c (new_unit): Use gf_strerror rather than hardcoding
85         error messages for different errno values.
86         * io/unix.c (regular_file2): Handle EPERM in addition to EACCES.
88 2015-03-10  Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>
89             Tobias Burnus  <burnus@net-b.de>
91         * caf/libcaf.h (_gfortran_caf_sync_memory): New prototype.
92         * caf/single.c (_gfortran_caf_sync_memory): Implement.
93         (_gfortran_caf_sync_all, _gfortran_caf_sync_image): Add
94         __asm__ __volatile___ ("":::"memory").
96 2015-02-10 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
98         PR libgfortran/57822
99         * io/write_float.def (output_float): Apply fix of previous patch
100         to correctly calculate the exponent number of digits and take
101         care of wide character output.
103 2015-02-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
105         PR libgfortran/57822
106         * io/write_float.def (output_float): If doing g0 editing and
107         exponent is zero, do not emit exponent.
109 2015-02-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
111         PR libgfortran/60956
112         * io/fbuf.c (fbuf_flush_list): New function that only flushes
113         if current fbuf position exceeds a limit.
114         * io/fbuf.h: Declare the new function.
115         * io/io.h (enum unit_mode): Add two new modes.
116         * io/list_read.c (list_formatted_read_scalar): Call new function.
117         * io/write.c: Include fbuf.h. (list_formatted_write_scalar):
118         Call new function.
120 2015-01-24  Janne Blomqvist  <jb@gcc.gnu.org>
122         PR libfortran/64770
123         * io/unit.c (filename_from_unit): Check that u->filename != NULL
124         before calling strdup.
126 2015-01-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
128         PR libgfortran/61933
129         * io/inquire.c (inquire_via_unit): Set existing to true for
130         any negative unit that is currently connected and any positive
131         units within range of KIND=4 value.  The unit value for any out
132         of range case that may occur if the user is using a KIND=8 will
133         have been set to -2 which is reserved and can never be opened,
134         and therefore the unit does not exist.
136 2015-01-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
138         PR libgfortran/61933
139         * io/inquire.c (inquire_via_unit): Set existing to true if a
140         gfc_unit stucture was found for the given unit number.
141         * runtime/error.c (translate_error): Add case for
142         LIBERROR_INQUIRE_INTERNAL_UNIT.
144 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
146         Update copyright years.
148 2015-01-02  Tobias Burnus  <burnus@net-b.de>
150         * caf/single.c (_gfortran_caf_co_reduce): New function.
151         * caf/libcaf.h (_gfortran_caf_co_reduce): New prototype.
153 Copyright (C) 2015 Free Software Foundation, Inc.
155 Copying and distribution of this file, with or without modification,
156 are permitted in any medium without royalty provided the copyright
157 notice and this notice are preserved.