ChangeLog-2021 revision 1.1 1 1.1 mrg 2021-12-31 Iain Sandoe <iain (a] sandoe.co.uk>
2 1.1 mrg
3 1.1 mrg * runtime/string.c (gfc_itoa): Use _Static_assert directly
4 1.1 mrg instead of via the static_assert macro.
5 1.1 mrg
6 1.1 mrg 2021-12-29 Francois-Xavier Coudert <fxcoudert (a] gmail.com>
7 1.1 mrg
8 1.1 mrg * ieee/ieee_helper.c: Fix enum values.
9 1.1 mrg
10 1.1 mrg 2021-12-27 Francois-Xavier Coudert <fxcoudert (a] gmail.com>
11 1.1 mrg
12 1.1 mrg PR libfortran/98076
13 1.1 mrg * runtime/string.c (gfc_itoa): Use two args for static_assert().
14 1.1 mrg
15 1.1 mrg 2021-12-26 Francois-Xavier Coudert <fxcoudert (a] gmail.com>
16 1.1 mrg
17 1.1 mrg PR libfortran/98076
18 1.1 mrg * runtime/string.c (itoa64, itoa64_pad19): New helper functions.
19 1.1 mrg (gfc_itoa): On targets with 128-bit integers, call fast
20 1.1 mrg 64-bit functions to avoid many slow divisions.
21 1.1 mrg
22 1.1 mrg 2021-12-25 Francois-Xavier Coudert <fxcoudert (a] gmail.com>
23 1.1 mrg
24 1.1 mrg PR libfortran/81986
25 1.1 mrg PR libfortran/99191
26 1.1 mrg * libgfortran.h: Remove gfc_xtoa(), adjust gfc_itoa() and
27 1.1 mrg GFC_ITOA_BUF_SIZE.
28 1.1 mrg * io/write.c (write_decimal): conversion parameter is always
29 1.1 mrg gfc_itoa(), so remove it. Protect from overflow.
30 1.1 mrg (xtoa): Move gfc_xtoa and update its name.
31 1.1 mrg (xtoa_big): Renamed from ztoa_big for consistency.
32 1.1 mrg (write_z): Adjust to new function names.
33 1.1 mrg (write_i, write_integer): Remove last arg of write_decimal.
34 1.1 mrg * runtime/backtrace.c (error_callback): Comment on the use of
35 1.1 mrg gfc_itoa().
36 1.1 mrg * runtime/error.c (gfc_xtoa): Move to io/write.c.
37 1.1 mrg * runtime/string.c (gfc_itoa): Take an unsigned argument,
38 1.1 mrg remove the handling of negative values.
39 1.1 mrg
40 1.1 mrg 2021-12-22 Francois-Xavier Coudert <fxcoudert (a] gmail.com>
41 1.1 mrg
42 1.1 mrg * kinds-override.h: Move GFC_REAL_16_IS_* macros...
43 1.1 mrg * mk-kinds-h.sh: ... here.
44 1.1 mrg
45 1.1 mrg 2021-12-19 Francois-Xavier Coudert <fxcoudert (a] gmail.com>
46 1.1 mrg
47 1.1 mrg * configure.host: Add aarch64-apple-darwin support.
48 1.1 mrg * config/fpu-aarch64.h: New file.
49 1.1 mrg
50 1.1 mrg 2021-12-18 Franois-Xavier Coudert <fxcoudert (a] gcc.gnu.org>
51 1.1 mrg
52 1.1 mrg * libgfortran.h: include ctype.h, provide safe macros.
53 1.1 mrg * io/format.c: use safe macros.
54 1.1 mrg * io/list_read.c: use safe macros.
55 1.1 mrg * io/read.c: use safe macros.
56 1.1 mrg * io/write.c: use safe macros.
57 1.1 mrg * runtime/environ.c: use safe macros.
58 1.1 mrg
59 1.1 mrg 2021-12-16 Francois-Xavier Coudert <fxcoudert (a] gcc.gnu.org>
60 1.1 mrg
61 1.1 mrg * io/file_pos.c: Fix error code.
62 1.1 mrg
63 1.1 mrg 2021-12-16 Francois-Xavier Coudert <fxcoudert (a] gcc.gnu.org>
64 1.1 mrg
65 1.1 mrg * intrinsics/time_1.h: Prefer clock_gettime() over
66 1.1 mrg gettimeofday().
67 1.1 mrg * intrinsics/date_and_time.c: Fix timezone wrapping.
68 1.1 mrg
69 1.1 mrg 2021-12-14 Harald Anlauf <anlauf (a] gmx.de>
70 1.1 mrg
71 1.1 mrg PR libfortran/103634
72 1.1 mrg * intrinsics/pack_generic.c (pack_internal): Handle case when the
73 1.1 mrg array argument of PACK has one or more extents of size zero to
74 1.1 mrg avoid invalid reads.
75 1.1 mrg
76 1.1 mrg 2021-10-18 Tobias Burnus <tobias (a] codesourcery.com>
77 1.1 mrg
78 1.1 mrg PR fortran/102086
79 1.1 mrg PR fortran/92189
80 1.1 mrg PR fortran/92621
81 1.1 mrg PR fortran/101308
82 1.1 mrg PR fortran/101309
83 1.1 mrg PR fortran/101635
84 1.1 mrg PR fortran/92482
85 1.1 mrg * ISO_Fortran_binding.h (CFI_type_cfunptr): Make unique type again.
86 1.1 mrg * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc,
87 1.1 mrg gfc_desc_to_cfi_desc): Add comment that those are no longer called
88 1.1 mrg by new code.
89 1.1 mrg
90 1.1 mrg 2021-09-27 Tobias Burnus <tobias (a] codesourcery.com>
91 1.1 mrg
92 1.1 mrg PR fortran/94070
93 1.1 mrg * intrinsics/size.c (size0, size1): Comment that now not
94 1.1 mrg used by newer compiler code.
95 1.1 mrg
96 1.1 mrg 2021-09-26 Tobias Burnus <tobias (a] codesourcery.com>
97 1.1 mrg
98 1.1 mrg PR fortran/101334
99 1.1 mrg * intrinsics/associated.c (associated): Also check for same rank.
100 1.1 mrg
101 1.1 mrg 2021-09-22 Tobias Burnus <tobias (a] codesourcery.com>
102 1.1 mrg
103 1.1 mrg PR fortran/55534
104 1.1 mrg * configure.ac (AM_FCFLAGS): Revert r12-3722 by removing
105 1.1 mrg -Wno-missing-include-dirs.
106 1.1 mrg * configure: Regenerate.
107 1.1 mrg
108 1.1 mrg 2021-09-21 Tobias Burnus <tobias (a] codesourcery.com>
109 1.1 mrg
110 1.1 mrg PR fortran/55534
111 1.1 mrg * configure.ac (AM_FCFLAGS): Add -Wno-missing-include-dirs.
112 1.1 mrg * configure: Regenerate.
113 1.1 mrg
114 1.1 mrg 2021-09-17 Sandra Loosemore <sandra (a] codesourcery.com>
115 1.1 mrg
116 1.1 mrg * ISO_Fortran_binding.h: Update comments.
117 1.1 mrg * runtime/ISO_Fortran_binding.c: Likewise.
118 1.1 mrg
119 1.1 mrg 2021-09-17 Sandra Loosemore <sandra (a] codesourcery.com>
120 1.1 mrg Tobias Burnus <tobias (a] codesourcery.com>
121 1.1 mrg
122 1.1 mrg * ISO_Fortran_binding.h: Only include float.h if the C compiler
123 1.1 mrg doesn't have predefined __LDBL_* and __DBL_* macros. Handle
124 1.1 mrg LDBL_MANT_DIG == 53 for FreeBSD.
125 1.1 mrg
126 1.1 mrg 2021-09-13 Andreas Schwab <schwab (a] linux-m68k.org>
127 1.1 mrg
128 1.1 mrg * ISO_Fortran_binding.h (CFI_type_long_double)
129 1.1 mrg (CFI_type_long_double_Complex) [LDBL_MANT_DIG == 64 &&
130 1.1 mrg LDBL_MIN_EXP == -16382 && LDBL_MAX_EXP == 16384]: Define.
131 1.1 mrg
132 1.1 mrg 2021-09-07 Tobias Burnus <tobias (a] codesourcery.com>
133 1.1 mrg
134 1.1 mrg * Makefile.am (gfor_built_src): Depend on
135 1.1 mrg include/ISO_Fortran_binding.h not on ISO_Fortran_binding.h.
136 1.1 mrg (ISO_Fortran_binding.h): Rename make target to ...
137 1.1 mrg (include/ISO_Fortran_binding.h): ... this.
138 1.1 mrg * Makefile.in: Regenerate.
139 1.1 mrg
140 1.1 mrg 2021-09-07 Sandra Loosemore <sandra (a] codesourcery.com>
141 1.1 mrg
142 1.1 mrg * ISO_Fortran_binding-1-tmpl.h: Deleted.
143 1.1 mrg * ISO_Fortran_binding-2-tmpl.h: Deleted.
144 1.1 mrg * ISO_Fortran_binding-3-tmpl.h: Deleted.
145 1.1 mrg * ISO_Fortran_binding.h: New file to replace the above.
146 1.1 mrg * Makefile.am (gfor_cdir): Remove MULTISUBDIR.
147 1.1 mrg (ISO_Fortran_binding.h): Simplify to just copy the file.
148 1.1 mrg * Makefile.in: Regenerated.
149 1.1 mrg * mk-kinds-h.sh: Revert pieces no longer needed for
150 1.1 mrg ISO_Fortran_binding.h.
151 1.1 mrg
152 1.1 mrg 2021-09-02 Sandra Loosemore <sandra (a] codesourcery.com>
153 1.1 mrg Jos Rui Faustino de Sousa <jrfsousa (a] gmail.com>
154 1.1 mrg
155 1.1 mrg PR fortran/100907
156 1.1 mrg PR fortran/100911
157 1.1 mrg PR fortran/100914
158 1.1 mrg PR fortran/100915
159 1.1 mrg PR fortran/100917
160 1.1 mrg * ISO_Fortran_binding-1-tmpl.h (CFI_type_cfunptr): Make equivalent
161 1.1 mrg to CFI_type_cptr.
162 1.1 mrg * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc): Fix
163 1.1 mrg handling of CFI_type_cptr and CFI_type_cfunptr. Additional error
164 1.1 mrg checking and code cleanup.
165 1.1 mrg (gfc_desc_to_cfi_desc): Likewise. Also correct kind mapping
166 1.1 mrg for character, complex, and long double types.
167 1.1 mrg
168 1.1 mrg 2021-08-27 Iain Sandoe <iain (a] sandoe.co.uk>
169 1.1 mrg
170 1.1 mrg * Makefile.am: Use configured libm availability.
171 1.1 mrg * Makefile.in: Regenerate.
172 1.1 mrg * configure: Regenerate.
173 1.1 mrg * configure.ac: Use libtool macro to find libm availability.
174 1.1 mrg * libgfortran.spec.in: Use configured libm availability.
175 1.1 mrg
176 1.1 mrg 2021-08-10 Tobias Burnus <tobias (a] codesourcery.com>
177 1.1 mrg
178 1.1 mrg PR libfortran/101305
179 1.1 mrg PR fortran/101660
180 1.1 mrg PR testsuite/101847
181 1.1 mrg * Makefile.am (ISO_Fortran_binding.h): Create include/ in the build dir
182 1.1 mrg and copy the include file to it.
183 1.1 mrg (clean-local): Add for removing the 'include' directory.
184 1.1 mrg * Makefile.in: Regenerate.
185 1.1 mrg
186 1.1 mrg 2021-07-28 Sandra Loosemore <sandra (a] codesourcery.com>
187 1.1 mrg
188 1.1 mrg PR libfortran/101317
189 1.1 mrg * runtime/ISO_Fortran_binding.c: Include <inttypes.h>.
190 1.1 mrg (CFI_address): Tidy error messages and comments.
191 1.1 mrg (CFI_allocate): Likewise.
192 1.1 mrg (CFI_deallocate): Likewise.
193 1.1 mrg (CFI_establish): Likewise. Add new checks for validity of
194 1.1 mrg elem_len when it's used, plus type argument and extents.
195 1.1 mrg (CFI_is_contiguous): Tidy error messages and comments.
196 1.1 mrg (CFI_section): Likewise. Refactor some repetitive code to
197 1.1 mrg make it more understandable.
198 1.1 mrg (CFI_select_part): Likewise.
199 1.1 mrg (CFI_setpointer): Likewise. Check that source is not an
200 1.1 mrg unallocated allocatable array or an assumed-size array.
201 1.1 mrg
202 1.1 mrg 2021-07-28 Sandra Loosemore <sandra (a] codesourcery.com>
203 1.1 mrg
204 1.1 mrg PR libfortran/101310
205 1.1 mrg * runtime/ISO_Fortran_binding.c (CFI_section): Fix the base
206 1.1 mrg address computation and simplify the code.
207 1.1 mrg
208 1.1 mrg 2021-07-28 Sandra Loosemore <sandra (a] codesourcery.com>
209 1.1 mrg
210 1.1 mrg PR libfortran/101305
211 1.1 mrg * runtime/ISO_Fortran_binding.c (CFI_establish): Special-case
212 1.1 mrg CFI_type_cptr and CFI_type_cfunptr. Correct size of long double
213 1.1 mrg on targets where it has kind 10.
214 1.1 mrg
215 1.1 mrg 2021-07-28 Sandra Loosemore <sandra (a] codesourcery.com>
216 1.1 mrg Tobias Burnus <tobias (a] codesourcery.com>
217 1.1 mrg
218 1.1 mrg PR libfortran/101305
219 1.1 mrg * ISO_Fortran_binding.h: Fix hard-coded sizes and split into...
220 1.1 mrg * ISO_Fortran_binding-1-tmpl.h: New file.
221 1.1 mrg * ISO_Fortran_binding-2-tmpl.h: New file.
222 1.1 mrg * ISO_Fortran_binding-3-tmpl.h: New file.
223 1.1 mrg * Makefile.am: Add rule for generating ISO_Fortran_binding.h.
224 1.1 mrg Adjust pathnames to that file.
225 1.1 mrg * Makefile.in: Regenerated.
226 1.1 mrg * mk-kinds-h.sh: New file.
227 1.1 mrg * runtime/ISO_Fortran_binding.c: Fix include path.
228 1.1 mrg
229 1.1 mrg 2021-07-26 Jos Rui Faustino de Sousa <jrfsousa (a] gmail.com>
230 1.1 mrg Tobias Burnus <tobias (a] codesourcery.com>
231 1.1 mrg
232 1.1 mrg PR fortran/93308
233 1.1 mrg PR fortran/93963
234 1.1 mrg PR fortran/94327
235 1.1 mrg PR fortran/94331
236 1.1 mrg PR fortran/97046
237 1.1 mrg * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc): Add code
238 1.1 mrg to verify the descriptor. Correct bounds calculation.
239 1.1 mrg (gfc_desc_to_cfi_desc): Add code to verify the descriptor.
240 1.1 mrg
241 1.1 mrg 2021-07-22 Sandra Loosemore <sandra (a] codesourcery.com>
242 1.1 mrg
243 1.1 mrg * runtime/ISO_Fortran_binding.c (CFI_allocate): Don't use elem_len
244 1.1 mrg for CFI_type_signed_char.
245 1.1 mrg (CFI_select_part): Likewise.
246 1.1 mrg
247 1.1 mrg 2021-07-01 Tobias Burnus <tobias (a] codesourcery.com>
248 1.1 mrg Sandra Loosemore <sandra (a] codesourcery.com>
249 1.1 mrg
250 1.1 mrg * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc):
251 1.1 mrg Initialize version field to 0.
252 1.1 mrg (gfc_desc_to_cfi_desc): Initialize version field to CFI_VERSION.
253 1.1 mrg
254 1.1 mrg 2021-06-29 Julian Brown <julian (a] codesourcery.com>
255 1.1 mrg
256 1.1 mrg PR target/96306
257 1.1 mrg * configure.ac: Remove stanza that removes KIND=16 integers for AMD GCN.
258 1.1 mrg * configure: Regenerate.
259 1.1 mrg
260 1.1 mrg 2021-06-22 Sandra Loosemore <sandra (a] codesourcery.com>
261 1.1 mrg Tobias Burnus <tobias (a] codesourcery.com>
262 1.1 mrg
263 1.1 mrg PR fortran/93524
264 1.1 mrg * runtime/ISO_Fortran_binding.c (CFI_allocate): Fix
265 1.1 mrg sm computation.
266 1.1 mrg
267 1.1 mrg 2021-06-08 Martin Liska <mliska (a] suse.cz>
268 1.1 mrg
269 1.1 mrg * intrinsics/chmod.c (chmod_internal): Fix typo.
270 1.1 mrg * io/transfer.c (read_sf): Likewise.
271 1.1 mrg
272 1.1 mrg 2021-06-05 Jos Rui Faustino de Sousa <jrfsousa (a] gmail.com>
273 1.1 mrg
274 1.1 mrg PR fortran/100120
275 1.1 mrg * intrinsics/associated.c (associated): have associated verify if
276 1.1 mrg the "span" matches insted of the "elem_len".
277 1.1 mrg * libgfortran.h (GFC_DESCRIPTOR_SPAN): add macro to retrive the
278 1.1 mrg descriptor "span".
279 1.1 mrg
280 1.1 mrg 2021-05-22 Andre Vehreschild <vehre (a] gcc.gnu.org>
281 1.1 mrg
282 1.1 mrg PR fortran/98301
283 1.1 mrg * caf/libcaf.h (_gfortran_caf_random_init): New function.
284 1.1 mrg * caf/single.c (_gfortran_caf_random_init): New function.
285 1.1 mrg * gfortran.map: Added fndecl.
286 1.1 mrg * intrinsics/random_init.f90: Implement random_init.
287 1.1 mrg
288 1.1 mrg 2021-05-05 Tobias Burnus <tobias (a] codesourcery.com>
289 1.1 mrg
290 1.1 mrg * intrinsics/chmod.c (chmod_internal): Only declare mode_mask var
291 1.1 mrg if HAVE_UMASK.
292 1.1 mrg
293 1.1 mrg 2021-05-02 Tobias Burnus <tobias (a] codesourcery.com>
294 1.1 mrg
295 1.1 mrg PR libgomp/100352
296 1.1 mrg * io/transfer.c (st_read_done_worker, st_write_done_worker): Add new
297 1.1 mrg arg whether to unlock unit.
298 1.1 mrg (st_read_done, st_write_done): Call it with true.
299 1.1 mrg * io/async.c (async_io): Call it with false.
300 1.1 mrg * io/io.h (st_write_done_worker, st_read_done_worker): Update prototype.
301 1.1 mrg
302 1.1 mrg 2021-03-12 Tobias Burnus <tobias (a] codesourcery.com>
303 1.1 mrg
304 1.1 mrg * io/transfer.c (st_read_done_worker, st_write_done_worker):
305 1.1 mrg Call unlock_unit here, add unit_lock lock around newunit_free call.
306 1.1 mrg (st_read_done, st_write_done): Only call unlock_unit when not
307 1.1 mrg calling the worker function.
308 1.1 mrg * io/unit.c (set_internal_unit): Don't reset the unit_number
309 1.1 mrg to the same number as this cause race warnings.
310 1.1 mrg
311 1.1 mrg 2021-03-05 Harald Anlauf <anlauf (a] gmx.de>
312 1.1 mrg
313 1.1 mrg PR libfortran/99218
314 1.1 mrg * m4/matmul_internal.m4: Invoke tuned matmul only for rank(b)>1.
315 1.1 mrg * generated/matmul_c10.c: Regenerated.
316 1.1 mrg * generated/matmul_c16.c: Likewise.
317 1.1 mrg * generated/matmul_c4.c: Likewise.
318 1.1 mrg * generated/matmul_c8.c: Likewise.
319 1.1 mrg * generated/matmul_i1.c: Likewise.
320 1.1 mrg * generated/matmul_i16.c: Likewise.
321 1.1 mrg * generated/matmul_i2.c: Likewise.
322 1.1 mrg * generated/matmul_i4.c: Likewise.
323 1.1 mrg * generated/matmul_i8.c: Likewise.
324 1.1 mrg * generated/matmul_r10.c: Likewise.
325 1.1 mrg * generated/matmul_r16.c: Likewise.
326 1.1 mrg * generated/matmul_r4.c: Likewise.
327 1.1 mrg * generated/matmul_r8.c: Likewise.
328 1.1 mrg * generated/matmulavx128_c10.c: Likewise.
329 1.1 mrg * generated/matmulavx128_c16.c: Likewise.
330 1.1 mrg * generated/matmulavx128_c4.c: Likewise.
331 1.1 mrg * generated/matmulavx128_c8.c: Likewise.
332 1.1 mrg * generated/matmulavx128_i1.c: Likewise.
333 1.1 mrg * generated/matmulavx128_i16.c: Likewise.
334 1.1 mrg * generated/matmulavx128_i2.c: Likewise.
335 1.1 mrg * generated/matmulavx128_i4.c: Likewise.
336 1.1 mrg * generated/matmulavx128_i8.c: Likewise.
337 1.1 mrg * generated/matmulavx128_r10.c: Likewise.
338 1.1 mrg * generated/matmulavx128_r16.c: Likewise.
339 1.1 mrg * generated/matmulavx128_r4.c: Likewise.
340 1.1 mrg * generated/matmulavx128_r8.c: Likewise.
341 1.1 mrg
342 1.1 mrg 2021-03-03 Vittorio Zecca <zeccav (a] gmail.com>
343 1.1 mrg Tobias Burnus <tobias (a] codesourcery.com>
344 1.1 mrg
345 1.1 mrg PR libfortran/81986
346 1.1 mrg * runtime/string.c (gfc_itoa): Cast to unsigned before
347 1.1 mrg negating.
348 1.1 mrg
349 1.1 mrg 2021-02-12 Steve Kargl <sgk (a] troutmask.apl.washington.edu>
350 1.1 mrg
351 1.1 mrg PR libfortran/95647
352 1.1 mrg * ieee/ieee_arithmetic.F90: Flip interfaces of operators .eq. to
353 1.1 mrg == and .ne. to /= .
354 1.1 mrg
355 1.1 mrg 2021-02-11 Jerry DeLisle <jvdelisle (a] gcc.gnu.org>
356 1.1 mrg
357 1.1 mrg PR libfortran/98825
358 1.1 mrg * io/transfer.c (next_record_w): Insert check for seen_dollar and if
359 1.1 mrg so, skip issueing next record.
360 1.1 mrg
361 1.1 mrg 2021-01-27 Harris Snyder <hsnyder (a] structura.bio>
362 1.1 mrg
363 1.1 mrg * runtime/ISO_Fortran_binding.c (CFI_establish): fixed
364 1.1 mrg strides for rank >2 arrays.
365 1.1 mrg
366 1.1 mrg 2021-01-15 Harris Snyder <hsnyder (a] structura.bio>
367 1.1 mrg
368 1.1 mrg * runtime/ISO_Fortran_binding.c (CFI_establish): Fixed signed
369 1.1 mrg char arrays. Signed char or uint8_t arrays would cause
370 1.1 mrg crashes unless an element size is specified.
371 1.1 mrg
372 1.1 mrg 2021-01-05 Samuel Thibault <samuel.thibault (a] ens-lyon.org>
373 1.1 mrg
374 1.1 mrg * configure: Re-generate.
375 1.1 mrg
376 1.1 mrg 2021-01-01 Jakub Jelinek <jakub (a] redhat.com>
377 1.1 mrg
378 1.1 mrg * ChangeLog-2020: Rotate ChangeLog. New file.
379 1.1 mrg
381 1.1 mrg Copyright (C) 2021 Free Software Foundation, Inc.
382 1.1 mrg
383 1.1 mrg Copying and distribution of this file, with or without modification,
384 1.1 mrg are permitted in any medium without royalty provided the copyright
385 notice and this notice are preserved.
386