]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgfortran/ChangeLog
c++/modules: Stream unmergeable temporaries by value again [PR114856]
[thirdparty/gcc.git] / libgfortran / ChangeLog
1 2019-08-17 Janne Blomqvist <jb@gcc.gnu.org>
2
3 PR fortran/68401
4 * gfortran.map: Add GFORTRAN_10 node, add _gfortran_os_error_at
5 symbol.
6 * libgfortran.h (os_error_at): New prototype.
7 * runtime/error.c (os_error_at): New function.
8
9 2019-08-13 Janne Blomqvist <jb@gcc.gnu.org>
10
11 PR fortran/91414
12 * intrinsics/random.c (prng_state): Update state struct.
13 (master_state): Update to match new size.
14 (get_rand_state): Update to match new PRNG.
15 (rotl): New function.
16 (xorshift1024star): Replace with prng_next.
17 (prng_next): New function.
18 (jump): Update for new PRNG.
19 (lcg_parkmiller): Replace with splitmix64.
20 (splitmix64): New function.
21 (getosrandom): Fix return value, simplify.
22 (init_rand_state): Use getosrandom only to get 8 bytes, splitmix64
23 to fill rest of state.
24 (random_r4): Update to new function and struct names.
25 (random_r8): Likewise.
26 (random_r10): Likewise.
27 (random_r16): Likewise.
28 (arandom_r4): Liekwise.
29 (arandom_r8): Likewise.
30 (arandom_r10): Likwewise.
31 (arandom_r16): Likewise.
32 (xor_keys): Reduce size to match new PRNG.
33 (random_seed_i4): Update to new function and struct names, remove
34 special handling of variable p used in previous PRNG.
35 (random_seed_i8): Likewise.
36
37 2019-08-07 Janne Blomqvist <jb@gcc.gnu.org>
38
39 PR fortran/53796
40 * io/inquire.c (inquire_via_filename): Set recl to -1 for
41 unconnected units.
42
43 2019-07-21 Thomas König <tkoenig@gcc.gnu.org>
44
45 PR libfortran/91030
46 * io/unix.c (BUFFER_SIZE): Delete.
47 (BUFFER_FORMATTED_SIZE_DEFAULT): New variable.
48 (BUFFER_UNFORMATTED_SIZE_DEFAULT): New variable.
49 (unix_stream): Add buffer_size.
50 (buf_read): Use s->buffer_size instead of BUFFER_SIZE.
51 (buf_write): Likewise.
52 (buf_init): Add argument unformatted. Handle block sizes
53 for unformatted vs. formatted, using defaults if provided.
54 (fd_to_stream): Add argument unformatted in call to buf_init.
55 * libgfortran.h (options_t): Add buffer_size_formatted and
56 buffer_size_unformatted.
57 * runtime/environ.c (variable_table): Add
58 GFORTRAN_UNFORMATTED_BUFFER_SIZE and
59 GFORTRAN_FORMATTED_BUFFER_SIZE.
60
61 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
62 Andrew Stubbs <ams@codesourcery.com>
63
64 * configure: Regenerate.
65 * configure.ac (LIBGFOR_MINIMAL): Do not use on AMD GCN.
66
67 2019-06-14 Janne Blomqvist <jb@gcc.gnu.org>
68
69 PR fortran/65921
70 * runtime/memory.c (SIZE_MAX):Remove macro definition.
71 (xmallocarray): Use __builtin_mul_overflow.
72
73 2019-05-22 Jeff Law <law@redhat.com>
74
75 PR fortran/89100
76 * io/format.c (parse_format_list): set default width when the
77 IOPARM_DT_DEC_EXT flag is set for i, f and g.
78 * io/io.h: add default_width_for_integer, default_width_for_float
79 and default_precision_for_float.
80 * io/write.c (write_boz): extra parameter giving length of data
81 corresponding to the type's kind.
82 (write_b): pass data length as extra parameter in calls to
83 write_boz.
84 (write_o): pass data length as extra parameter in calls to
85 write_boz.
86 (write_z): pass data length as extra parameter in calls to
87 write_boz.
88 (size_from_kind): also set size is default width is set.
89 * io/write_float.def (build_float_string): new paramter inserted
90 before result parameter. If default width use values passed
91 instead of the values in fnode.
92 (FORMAT_FLOAT): macro modified to check for default width and
93 calls to build_float_string to pass in default width.
94 (get_float_string): set width and precision to defaults when
95 needed.
96
97 2019-05-19 Janne Blomqvist <jb@gcc.gnu.org>
98
99 PR libfortran/90038
100 * intrinsics/execute_command_line (sigchld_handler): New function.
101 (execute_command_line): Install handler for SIGCHLD.
102 * configure.ac: Check for presence of sigaction and waitpid.
103 * config.h.in: Regenerated.
104 * configure: Regenerated.
105
106 2019-05-17 Janne Blomqvist <jb@gcc.gnu.org>
107
108 PR libfortran/90038
109 * configure.ac (AC_CHECK_FUNCS_ONCE): Check for posix_spawn.
110 * intrinsics/execute_command_line (execute_command_line): Use
111 posix_spawn.
112 * Makefile.in: Regenerated.
113 * config.h.in: Regenerated.
114 * configure: Regenerated.
115
116 2019-05-17 Jakub Jelinek <jakub@redhat.com>
117
118 PR fortran/54613
119 * gfortran.map (GFORTRAN_9.2): Export _gfortran_{,m,s}findloc{0,1}_r10.
120 * Makefile.am (i_findloc0_c): Add $(srcdir)/generated/findloc0_r10.c.
121 (i_findloc1_c): Add $(srcdir)/generated/findloc1_r10.c.
122 * Makefile.in: Regenerated.
123 * generated/findloc0_r10.c: Generated.
124 * generated/findloc1_r10.c: Generated.
125
126 PR fortran/54613
127 * gfortran.map (GFORTRAN_9.2): New symbol version, export
128 _gfortran_{,m,s}findloc0_i2 in it.
129
130 2019-05-15 Janne Blomqvist <jb@gcc.gnu.org>
131
132 PR fortran/90461
133 * io/open.c (new_unit): Don't check if the file is already open
134 for F2018.
135
136 2019-05-02 Jakub Jelinek <jakub@redhat.com>
137
138 * Makefile.am (gfor_cdir): Remove $(MULTISUBDIR).
139 * Makefile.in: Regenerated.
140
141 2019-04-14 Paul Thomas <pault@gcc.gnu.org>
142
143 PR fortran/89843
144 * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc): Only
145 return immediately if the source pointer is null. Bring
146 forward the extraction of the gfc type. Extract the kind so
147 that the element size can be correctly computed for sections
148 and components of derived type arrays. Remove the free of the
149 CFI descriptor since this is now done in trans-expr.c.
150 (gfc_desc_to_cfi_desc): Only allocate the CFI descriptor if it
151 is not null.
152 (CFI_section): Normalise the difference between the upper and
153 lower bounds by the stride to correctly calculate the extents
154 of the section.
155
156 PR fortran/89846
157 * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc): Use
158 the stride measure for the gfc span if it is not a multiple
159 of the element length. Otherwise use the element length.
160
161 PR fortran/90022
162 * runtime/ISO_Fortran_binding.c (CFI_is_contiguous) : Return
163 1 for true and 0 otherwise to comply with the standard. Correct
164 the contiguity check for rank 3 and greater by using the stride
165 measure of the lower dimension rather than the element length.
166
167 2019-03-25 John David Anglin <danglin@gcc.gnu.org>
168
169 PR libgfortran/79540
170 * io/write_float.def (build_float_string): Don't copy digits when
171 ndigits is negative.
172
173 2019-03-05 Jakub Jelinek <jakub@redhat.com>
174
175 PR libgfortran/89593
176 * caf/single.c (_gfortran_caf_sendget_by_ref): Cast &temp to
177 gfc_descriptor_t * to avoid warning.
178
179 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
180
181 * io/transfer.c (transfer_array_inner): Do not
182 cast charlen to index_type.
183
184 2019-02-25 Dominique d'Humieres <dominiq@gcc.gnu.org>
185
186 PR libfortran/89274
187 * io/write.c (write_integer): Add width for INTEGER(16).
188
189 2019-02-23 Paul Thomas <pault@gcc.gnu.org>
190
191 PR fortran/89385
192 PR fortran/89366
193 * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc) : In the
194 interchange between character and derived, the character type
195 was being set incorrectly.
196 (gfc_desc_to_cfi_desc) : Eliminate the interchange of types in
197 this function. Do not add the kind and length information to
198 the type field of structures. Lbounds were incorrectly being
199 set to zero for allocatable and pointer descriptors. Should
200 have been non-pointer, non-allocatables that received this
201 treatment.
202
203 2019-01-30 Uroš Bizjak <ubizjak@gmail.com>
204
205 PR libfortran/88678
206 Revert:
207 2016-11-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
208
209 PR libfortran/78314
210 * config/fpu-glibc.h (support_fpu_trap): Use feenableexcept.
211
212 2019-01-30 Uroš Bizjak <ubizjak@gmail.com>
213
214 PR libfortran/88678
215 * config/fpu-glibc.h (set_fpu_trap_exceptions): Clear stalled
216 exception flags before changing trap mode. Optimize to call
217 feenableexcept and fedisableexcept only once.
218
219 2019-01-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
220
221 * io/async.c (init_adv_cond): Use __GTHREAD_COND_INIT_FUNCTION().
222
223 2019-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
224
225 PR libfortran/89020
226 * io/close.c (st_close): Simplify text of error message to not
227 presume a specific cause of failure to remove file.
228
229 2019-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
230
231 PR libfortran/89020
232 * io/close.c (st_close): Fix typo.
233
234 2019-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
235
236 PR libfortran/89020
237 * io/close.c (st_close): Generate error if calls to 'remove' return
238 an error.
239
240 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
241 Kwok Cheung Yeung <kcy@codesourcery.com>
242 Julian Brown <julian@codesourcery.com>
243 Tom de Vries <tom@codesourcery.com>
244
245 * configure.ac: Use minimal mode for amdgcn.
246 * configure: Regenerate.
247
248 2019-01-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
249
250 PR libfortran/88776
251 * io/open.c (newunit): Free format buffer if the unit specified is for
252 stdin, stdout, or stderr.
253
254 2019-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
255
256 PR libfortran/88776
257 * io/list_read.c (namelist_read): Use nml_err_ret path on read error
258 not based on stdin_unit.
259
260 2019-01-12 Paul Thomas <pault@gcc.gnu.org>
261
262 * ISO_Fortran_binding.h : New file.
263 * Makefile.am : Include ISO_Fortran_binding.c in the list of
264 files to compile.
265 * Makefile.in : Regenerated.
266 * gfortran.map : Add _gfortran_cfi_desc_to_gfc_desc,
267 _gfortran_gfc_desc_to_cfi_desc and the CFI API functions.
268 * runtime/ISO_Fortran_binding.c : New file containing the new
269 functions added to the map.
270
271 2019-01-12 Jakub Jelinek <jakub@redhat.com>
272
273 PR libfortran/88807
274 * m4/minloc0.m4: Reindent to avoid -Wmisleading-indentation warnings.
275 * generated/minloc0_4_i1.c: Regenerated.
276 * generated/minloc0_4_i2.c: Regenerated.
277 * generated/minloc0_4_i4.c: Regenerated.
278 * generated/minloc0_4_i8.c: Regenerated.
279 * generated/minloc0_4_i16.c: Regenerated.
280 * generated/minloc0_4_r4.c: Regenerated.
281 * generated/minloc0_4_r8.c: Regenerated.
282 * generated/minloc0_4_r10.c: Regenerated.
283 * generated/minloc0_4_r16.c: Regenerated.
284 * generated/minloc0_8_i1.c: Regenerated.
285 * generated/minloc0_8_i2.c: Regenerated.
286 * generated/minloc0_8_i4.c: Regenerated.
287 * generated/minloc0_8_i8.c: Regenerated.
288 * generated/minloc0_8_i16.c: Regenerated.
289 * generated/minloc0_8_r4.c: Regenerated.
290 * generated/minloc0_8_r8.c: Regenerated.
291 * generated/minloc0_8_r10.c: Regenerated.
292 * generated/minloc0_8_r16.c: Regenerated.
293 * generated/minloc0_16_i1.c: Regenerated.
294 * generated/minloc0_16_i2.c: Regenerated.
295 * generated/minloc0_16_i4.c: Regenerated.
296 * generated/minloc0_16_i8.c: Regenerated.
297 * generated/minloc0_16_i16.c: Regenerated.
298 * generated/minloc0_16_r4.c: Regenerated.
299 * generated/minloc0_16_r8.c: Regenerated.
300 * generated/minloc0_16_r10.c: Regenerated.
301 * generated/minloc0_16_r16.c: Regenerated.
302
303 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
304
305 PR other/16615
306 * caf/single.c: Mechanically replace "can not" with "cannot".
307 * io/unit.c: Likewise.
308
309 2019-01-07 Thomas Koenig <tkoenig@gcc.gnu.org>
310 Harald Anlauf <anlauf@gmx.de>
311 Tobias Burnus <burnus@gcc.gnu.org>
312
313 PR fortran/45424
314 * Makefile.am: Add intrinsics/is_contiguous.c.
315 * Makefile.in: Regenerated.
316 * gfortran.map: Add _gfortran_is_contiguous0.
317 * intrinsics/is_contiguous.c: New file.
318 * libgfortran.h: Add prototype for is_contiguous0.
319
320 2019-01-07 Janne Blomqvist <jb@gcc.gnu.org>
321
322 * gfortran.map (GFORTRAN_9): Make GFORTRAN_9 node depend on
323 GFORTRAN_8.
324
325 2019-01-01 Jakub Jelinek <jakub@redhat.com>
326
327 Update copyright years.
328 \f
329 Copyright (C) 2019 Free Software Foundation, Inc.
330
331 Copying and distribution of this file, with or without modification,
332 are permitted in any medium without royalty provided the copyright
333 notice and this notice are preserved.