]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/ChangeLog
Use __builtin_mul_overflow in xmallocarray
[thirdparty/gcc.git] / libgfortran / ChangeLog
CommitLineData
84d38abb
JB
12019-06-14 Janne Blomqvist <jb@gcc.gnu.org>
2
3 * runtime/memory.c (SIZE_MAX):Remove macro definition.
4 (xmallocarray): Use __builtin_mul_overflow.
5
88a8126a
JB
62019-05-22 Jeff Law <law@redhat.com>
7
8 PR fortran/89100
9 * io/format.c (parse_format_list): set default width when the
10 IOPARM_DT_DEC_EXT flag is set for i, f and g.
11 * io/io.h: add default_width_for_integer, default_width_for_float
12 and default_precision_for_float.
13 * io/write.c (write_boz): extra parameter giving length of data
14 corresponding to the type's kind.
15 (write_b): pass data length as extra parameter in calls to
16 write_boz.
17 (write_o): pass data length as extra parameter in calls to
18 write_boz.
19 (write_z): pass data length as extra parameter in calls to
20 write_boz.
21 (size_from_kind): also set size is default width is set.
22 * io/write_float.def (build_float_string): new paramter inserted
23 before result parameter. If default width use values passed
24 instead of the values in fnode.
25 (FORMAT_FLOAT): macro modified to check for default width and
26 calls to build_float_string to pass in default width.
27 (get_float_string): set width and precision to defaults when
28 needed.
29
ef536b41
JB
302019-05-19 Janne Blomqvist <jb@gcc.gnu.org>
31
32 PR libfortran/90038
33 * intrinsics/execute_command_line (sigchld_handler): New function.
34 (execute_command_line): Install handler for SIGCHLD.
35 * configure.ac: Check for presence of sigaction and waitpid.
36 * config.h.in: Regenerated.
37 * configure: Regenerated.
38
f8886038
JB
392019-05-17 Janne Blomqvist <jb@gcc.gnu.org>
40
41 PR libfortran/90038
42 * configure.ac (AC_CHECK_FUNCS_ONCE): Check for posix_spawn.
43 * intrinsics/execute_command_line (execute_command_line): Use
44 posix_spawn.
45 * Makefile.in: Regenerated.
46 * config.h.in: Regenerated.
47 * configure: Regenerated.
48
d3151832
JJ
492019-05-17 Jakub Jelinek <jakub@redhat.com>
50
9f65885a
JJ
51 PR fortran/54613
52 * gfortran.map (GFORTRAN_9.2): Export _gfortran_{,m,s}findloc{0,1}_r10.
53 * Makefile.am (i_findloc0_c): Add $(srcdir)/generated/findloc0_r10.c.
54 (i_findloc1_c): Add $(srcdir)/generated/findloc1_r10.c.
55 * Makefile.in: Regenerated.
56 * generated/findloc0_r10.c: Generated.
57 * generated/findloc1_r10.c: Generated.
58
d3151832
JJ
59 PR fortran/54613
60 * gfortran.map (GFORTRAN_9.2): New symbol version, export
61 _gfortran_{,m,s}findloc0_i2 in it.
62
0c15ebf1
JB
632019-05-15 Janne Blomqvist <jb@gcc.gnu.org>
64
65 PR fortran/90461
66 * io/open.c (new_unit): Don't check if the file is already open
67 for F2018.
68
5cf393b2
JJ
692019-05-02 Jakub Jelinek <jakub@redhat.com>
70
71 * Makefile.am (gfor_cdir): Remove $(MULTISUBDIR).
72 * Makefile.in: Regenerated.
73
0d78e4aa
PT
742019-04-14 Paul Thomas <pault@gcc.gnu.org>
75
76 PR fortran/89843
77 * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc): Only
78 return immediately if the source pointer is null. Bring
79 forward the extraction of the gfc type. Extract the kind so
80 that the element size can be correctly computed for sections
81 and components of derived type arrays. Remove the free of the
82 CFI descriptor since this is now done in trans-expr.c.
83 (gfc_desc_to_cfi_desc): Only allocate the CFI descriptor if it
84 is not null.
85 (CFI_section): Normalise the difference between the upper and
86 lower bounds by the stride to correctly calculate the extents
87 of the section.
88
89 PR fortran/89846
90 * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc): Use
91 the stride measure for the gfc span if it is not a multiple
92 of the element length. Otherwise use the element length.
93
94 PR fortran/90022
95 * runtime/ISO_Fortran_binding.c (CFI_is_contiguous) : Return
96 1 for true and 0 otherwise to comply with the standard. Correct
97 the contiguity check for rank 3 and greater by using the stride
98 measure of the lower dimension rather than the element length.
99
b7ca376a
JDA
1002019-03-25 John David Anglin <danglin@gcc.gnu.org>
101
102 PR libgfortran/79540
103 * io/write_float.def (build_float_string): Don't copy digits when
104 ndigits is negative.
105
934e9926
JJ
1062019-03-05 Jakub Jelinek <jakub@redhat.com>
107
108 PR libgfortran/89593
109 * caf/single.c (_gfortran_caf_sendget_by_ref): Cast &temp to
110 gfc_descriptor_t * to avoid warning.
111
140a0bdd
UB
1122019-02-26 Uroš Bizjak <ubizjak@gmail.com>
113
114 * io/transfer.c (transfer_array_inner): Do not
115 cast charlen to index_type.
116
b8f41284
DH
1172019-02-25 Dominique d'Humieres <dominiq@gcc.gnu.org>
118
119 PR libfortran/89274
120 * io/write.c (write_integer): Add width for INTEGER(16).
121
c2808389
PT
1222019-02-23 Paul Thomas <pault@gcc.gnu.org>
123
124 PR fortran/89385
125 PR fortran/89366
126 * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc) : In the
127 interchange between character and derived, the character type
128 was being set incorrectly.
129 (gfc_desc_to_cfi_desc) : Eliminate the interchange of types in
130 this function. Do not add the kind and length information to
131 the type field of structures. Lbounds were incorrectly being
132 set to zero for allocatable and pointer descriptors. Should
133 have been non-pointer, non-allocatables that received this
134 treatment.
135
05dfdd6c
UB
1362019-01-30 Uroš Bizjak <ubizjak@gmail.com>
137
8d169fc1
UB
138 PR libfortran/88678
139 Revert:
140 2016-11-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
141
142 PR libfortran/78314
143 * config/fpu-glibc.h (support_fpu_trap): Use feenableexcept.
05dfdd6c 144
de0c04f9
UB
1452019-01-30 Uroš Bizjak <ubizjak@gmail.com>
146
8d169fc1 147 PR libfortran/88678
de0c04f9
UB
148 * config/fpu-glibc.h (set_fpu_trap_exceptions): Clear stalled
149 exception flags before changing trap mode. Optimize to call
150 feenableexcept and fedisableexcept only once.
151
92ab6b83
SH
1522019-01-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
153
154 * io/async.c (init_adv_cond): Use __GTHREAD_COND_INIT_FUNCTION().
155
9faf6e70
JD
1562019-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
157
158 PR libfortran/89020
159 * io/close.c (st_close): Simplify text of error message to not
160 presume a specific cause of failure to remove file.
161
2ee43ae6
JD
1622019-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
163
164 PR libfortran/89020
165 * io/close.c (st_close): Fix typo.
166
0e34715e
JD
1672019-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
168
fac29445 169 PR libfortran/89020
0e34715e
JD
170 * io/close.c (st_close): Generate error if calls to 'remove' return
171 an error.
172
5ab99fa4
AS
1732019-01-17 Andrew Stubbs <ams@codesourcery.com>
174 Kwok Cheung Yeung <kcy@codesourcery.com>
175 Julian Brown <julian@codesourcery.com>
176 Tom de Vries <tom@codesourcery.com>
177
178 * configure.ac: Use minimal mode for amdgcn.
179 * configure: Regenerate.
180
9c5f8900
JD
1812019-01-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
182
183 PR libfortran/88776
184 * io/open.c (newunit): Free format buffer if the unit specified is for
c2808389 185 stdin, stdout, or stderr.
9c5f8900 186
9443a185
JD
1872019-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
188
189 PR libfortran/88776
190 * io/list_read.c (namelist_read): Use nml_err_ret path on read error
191 not based on stdin_unit.
192
bbf18dc5
PT
1932019-01-12 Paul Thomas <pault@gcc.gnu.org>
194
195 * ISO_Fortran_binding.h : New file.
196 * Makefile.am : Include ISO_Fortran_binding.c in the list of
197 files to compile.
198 * Makefile.in : Regenerated.
199 * gfortran.map : Add _gfortran_cfi_desc_to_gfc_desc,
200 _gfortran_gfc_desc_to_cfi_desc and the CFI API functions.
201 * runtime/ISO_Fortran_binding.c : New file containing the new
202 functions added to the map.
203
fc560ecd
JJ
2042019-01-12 Jakub Jelinek <jakub@redhat.com>
205
206 PR libfortran/88807
207 * m4/minloc0.m4: Reindent to avoid -Wmisleading-indentation warnings.
208 * generated/minloc0_4_i1.c: Regenerated.
209 * generated/minloc0_4_i2.c: Regenerated.
210 * generated/minloc0_4_i4.c: Regenerated.
211 * generated/minloc0_4_i8.c: Regenerated.
212 * generated/minloc0_4_i16.c: Regenerated.
213 * generated/minloc0_4_r4.c: Regenerated.
214 * generated/minloc0_4_r8.c: Regenerated.
215 * generated/minloc0_4_r10.c: Regenerated.
216 * generated/minloc0_4_r16.c: Regenerated.
217 * generated/minloc0_8_i1.c: Regenerated.
218 * generated/minloc0_8_i2.c: Regenerated.
219 * generated/minloc0_8_i4.c: Regenerated.
220 * generated/minloc0_8_i8.c: Regenerated.
221 * generated/minloc0_8_i16.c: Regenerated.
222 * generated/minloc0_8_r4.c: Regenerated.
223 * generated/minloc0_8_r8.c: Regenerated.
224 * generated/minloc0_8_r10.c: Regenerated.
225 * generated/minloc0_8_r16.c: Regenerated.
226 * generated/minloc0_16_i1.c: Regenerated.
227 * generated/minloc0_16_i2.c: Regenerated.
228 * generated/minloc0_16_i4.c: Regenerated.
229 * generated/minloc0_16_i8.c: Regenerated.
230 * generated/minloc0_16_i16.c: Regenerated.
231 * generated/minloc0_16_r4.c: Regenerated.
232 * generated/minloc0_16_r8.c: Regenerated.
233 * generated/minloc0_16_r10.c: Regenerated.
234 * generated/minloc0_16_r16.c: Regenerated.
235
67914693
SL
2362019-01-09 Sandra Loosemore <sandra@codesourcery.com>
237
238 PR other/16615
67914693
SL
239 * caf/single.c: Mechanically replace "can not" with "cannot".
240 * io/unit.c: Likewise.
241
419af57c 2422019-01-07 Thomas Koenig <tkoenig@gcc.gnu.org>
fc560ecd
JJ
243 Harald Anlauf <anlauf@gmx.de>
244 Tobias Burnus <burnus@gcc.gnu.org>
419af57c
TK
245
246 PR fortran/45424
247 * Makefile.am: Add intrinsics/is_contiguous.c.
248 * Makefile.in: Regenerated.
249 * gfortran.map: Add _gfortran_is_contiguous0.
250 * intrinsics/is_contiguous.c: New file.
251 * libgfortran.h: Add prototype for is_contiguous0.
252
0aa6ee36
JB
2532019-01-07 Janne Blomqvist <jb@gcc.gnu.org>
254
255 * gfortran.map (GFORTRAN_9): Make GFORTRAN_9 node depend on
256 GFORTRAN_8.
257
a5544970 2582019-01-01 Jakub Jelinek <jakub@redhat.com>
85ec4feb
JJ
259
260 Update copyright years.
818ab71a 261\f
a5544970 262Copyright (C) 2019 Free Software Foundation, Inc.
982198d5
JB
263
264Copying and distribution of this file, with or without modification,
265are permitted in any medium without royalty provided the copyright
266notice and this notice are preserved.