1 2021-12-25 Francois-Xavier Coudert <fxcoudert@gmail.com>
5 * libgfortran.h: Remove gfc_xtoa(), adjust gfc_itoa() and
7 * io/write.c (write_decimal): conversion parameter is always
8 gfc_itoa(), so remove it. Protect from overflow.
9 (xtoa): Move gfc_xtoa and update its name.
10 (xtoa_big): Renamed from ztoa_big for consistency.
11 (write_z): Adjust to new function names.
12 (write_i, write_integer): Remove last arg of write_decimal.
13 * runtime/backtrace.c (error_callback): Comment on the use of
15 * runtime/error.c (gfc_xtoa): Move to io/write.c.
16 * runtime/string.c (gfc_itoa): Take an unsigned argument,
17 remove the handling of negative values.
19 2021-12-22 Francois-Xavier Coudert <fxcoudert@gmail.com>
21 * kinds-override.h: Move GFC_REAL_16_IS_* macros...
22 * mk-kinds-h.sh: ... here.
24 2021-12-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
26 * configure.host: Add aarch64-apple-darwin support.
27 * config/fpu-aarch64.h: New file.
29 2021-12-18 François-Xavier Coudert <fxcoudert@gcc.gnu.org>
31 * libgfortran.h: include ctype.h, provide safe macros.
32 * io/format.c: use safe macros.
33 * io/list_read.c: use safe macros.
34 * io/read.c: use safe macros.
35 * io/write.c: use safe macros.
36 * runtime/environ.c: use safe macros.
38 2021-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
40 * io/file_pos.c: Fix error code.
42 2021-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
44 * intrinsics/time_1.h: Prefer clock_gettime() over
46 * intrinsics/date_and_time.c: Fix timezone wrapping.
48 2021-12-14 Harald Anlauf <anlauf@gmx.de>
51 * intrinsics/pack_generic.c (pack_internal): Handle case when the
52 array argument of PACK has one or more extents of size zero to
55 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
64 * ISO_Fortran_binding.h (CFI_type_cfunptr): Make unique type again.
65 * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc,
66 gfc_desc_to_cfi_desc): Add comment that those are no longer called
69 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
72 * intrinsics/size.c (size0, size1): Comment that now not
73 used by newer compiler code.
75 2021-09-26 Tobias Burnus <tobias@codesourcery.com>
78 * intrinsics/associated.c (associated): Also check for same rank.
80 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
83 * configure.ac (AM_FCFLAGS): Revert r12-3722 by removing
84 -Wno-missing-include-dirs.
85 * configure: Regenerate.
87 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
90 * configure.ac (AM_FCFLAGS): Add -Wno-missing-include-dirs.
91 * configure: Regenerate.
93 2021-09-17 Sandra Loosemore <sandra@codesourcery.com>
95 * ISO_Fortran_binding.h: Update comments.
96 * runtime/ISO_Fortran_binding.c: Likewise.
98 2021-09-17 Sandra Loosemore <sandra@codesourcery.com>
99 Tobias Burnus <tobias@codesourcery.com>
101 * ISO_Fortran_binding.h: Only include float.h if the C compiler
102 doesn't have predefined __LDBL_* and __DBL_* macros. Handle
103 LDBL_MANT_DIG == 53 for FreeBSD.
105 2021-09-13 Andreas Schwab <schwab@linux-m68k.org>
107 * ISO_Fortran_binding.h (CFI_type_long_double)
108 (CFI_type_long_double_Complex) [LDBL_MANT_DIG == 64 &&
109 LDBL_MIN_EXP == -16382 && LDBL_MAX_EXP == 16384]: Define.
111 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
113 * Makefile.am (gfor_built_src): Depend on
114 include/ISO_Fortran_binding.h not on ISO_Fortran_binding.h.
115 (ISO_Fortran_binding.h): Rename make target to ...
116 (include/ISO_Fortran_binding.h): ... this.
117 * Makefile.in: Regenerate.
119 2021-09-07 Sandra Loosemore <sandra@codesourcery.com>
121 * ISO_Fortran_binding-1-tmpl.h: Deleted.
122 * ISO_Fortran_binding-2-tmpl.h: Deleted.
123 * ISO_Fortran_binding-3-tmpl.h: Deleted.
124 * ISO_Fortran_binding.h: New file to replace the above.
125 * Makefile.am (gfor_cdir): Remove MULTISUBDIR.
126 (ISO_Fortran_binding.h): Simplify to just copy the file.
127 * Makefile.in: Regenerated.
128 * mk-kinds-h.sh: Revert pieces no longer needed for
129 ISO_Fortran_binding.h.
131 2021-09-02 Sandra Loosemore <sandra@codesourcery.com>
132 José Rui Faustino de Sousa <jrfsousa@gmail.com>
139 * ISO_Fortran_binding-1-tmpl.h (CFI_type_cfunptr): Make equivalent
141 * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc): Fix
142 handling of CFI_type_cptr and CFI_type_cfunptr. Additional error
143 checking and code cleanup.
144 (gfc_desc_to_cfi_desc): Likewise. Also correct kind mapping
145 for character, complex, and long double types.
147 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
149 * Makefile.am: Use configured libm availability.
150 * Makefile.in: Regenerate.
151 * configure: Regenerate.
152 * configure.ac: Use libtool macro to find libm availability.
153 * libgfortran.spec.in: Use configured libm availability.
155 2021-08-10 Tobias Burnus <tobias@codesourcery.com>
160 * Makefile.am (ISO_Fortran_binding.h): Create include/ in the build dir
161 and copy the include file to it.
162 (clean-local): Add for removing the 'include' directory.
163 * Makefile.in: Regenerate.
165 2021-07-28 Sandra Loosemore <sandra@codesourcery.com>
168 * runtime/ISO_Fortran_binding.c: Include <inttypes.h>.
169 (CFI_address): Tidy error messages and comments.
170 (CFI_allocate): Likewise.
171 (CFI_deallocate): Likewise.
172 (CFI_establish): Likewise. Add new checks for validity of
173 elem_len when it's used, plus type argument and extents.
174 (CFI_is_contiguous): Tidy error messages and comments.
175 (CFI_section): Likewise. Refactor some repetitive code to
176 make it more understandable.
177 (CFI_select_part): Likewise.
178 (CFI_setpointer): Likewise. Check that source is not an
179 unallocated allocatable array or an assumed-size array.
181 2021-07-28 Sandra Loosemore <sandra@codesourcery.com>
184 * runtime/ISO_Fortran_binding.c (CFI_section): Fix the base
185 address computation and simplify the code.
187 2021-07-28 Sandra Loosemore <sandra@codesourcery.com>
190 * runtime/ISO_Fortran_binding.c (CFI_establish): Special-case
191 CFI_type_cptr and CFI_type_cfunptr. Correct size of long double
192 on targets where it has kind 10.
194 2021-07-28 Sandra Loosemore <sandra@codesourcery.com>
195 Tobias Burnus <tobias@codesourcery.com>
198 * ISO_Fortran_binding.h: Fix hard-coded sizes and split into...
199 * ISO_Fortran_binding-1-tmpl.h: New file.
200 * ISO_Fortran_binding-2-tmpl.h: New file.
201 * ISO_Fortran_binding-3-tmpl.h: New file.
202 * Makefile.am: Add rule for generating ISO_Fortran_binding.h.
203 Adjust pathnames to that file.
204 * Makefile.in: Regenerated.
205 * mk-kinds-h.sh: New file.
206 * runtime/ISO_Fortran_binding.c: Fix include path.
208 2021-07-26 José Rui Faustino de Sousa <jrfsousa@gmail.com>
209 Tobias Burnus <tobias@codesourcery.com>
216 * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc): Add code
217 to verify the descriptor. Correct bounds calculation.
218 (gfc_desc_to_cfi_desc): Add code to verify the descriptor.
220 2021-07-22 Sandra Loosemore <sandra@codesourcery.com>
222 * runtime/ISO_Fortran_binding.c (CFI_allocate): Don't use elem_len
223 for CFI_type_signed_char.
224 (CFI_select_part): Likewise.
226 2021-07-01 Tobias Burnus <tobias@codesourcery.com>
227 Sandra Loosemore <sandra@codesourcery.com>
229 * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc):
230 Initialize version field to 0.
231 (gfc_desc_to_cfi_desc): Initialize version field to CFI_VERSION.
233 2021-06-29 Julian Brown <julian@codesourcery.com>
236 * configure.ac: Remove stanza that removes KIND=16 integers for AMD GCN.
237 * configure: Regenerate.
239 2021-06-22 Sandra Loosemore <sandra@codesourcery.com>
240 Tobias Burnus <tobias@codesourcery.com>
243 * runtime/ISO_Fortran_binding.c (CFI_allocate): Fix
246 2021-06-08 Martin Liska <mliska@suse.cz>
248 * intrinsics/chmod.c (chmod_internal): Fix typo.
249 * io/transfer.c (read_sf): Likewise.
251 2021-06-05 José Rui Faustino de Sousa <jrfsousa@gmail.com>
254 * intrinsics/associated.c (associated): have associated verify if
255 the "span" matches insted of the "elem_len".
256 * libgfortran.h (GFC_DESCRIPTOR_SPAN): add macro to retrive the
259 2021-05-22 Andre Vehreschild <vehre@gcc.gnu.org>
262 * caf/libcaf.h (_gfortran_caf_random_init): New function.
263 * caf/single.c (_gfortran_caf_random_init): New function.
264 * gfortran.map: Added fndecl.
265 * intrinsics/random_init.f90: Implement random_init.
267 2021-05-05 Tobias Burnus <tobias@codesourcery.com>
269 * intrinsics/chmod.c (chmod_internal): Only declare mode_mask var
272 2021-05-02 Tobias Burnus <tobias@codesourcery.com>
275 * io/transfer.c (st_read_done_worker, st_write_done_worker): Add new
276 arg whether to unlock unit.
277 (st_read_done, st_write_done): Call it with true.
278 * io/async.c (async_io): Call it with false.
279 * io/io.h (st_write_done_worker, st_read_done_worker): Update prototype.
281 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
283 * io/transfer.c (st_read_done_worker, st_write_done_worker):
284 Call unlock_unit here, add unit_lock lock around newunit_free call.
285 (st_read_done, st_write_done): Only call unlock_unit when not
286 calling the worker function.
287 * io/unit.c (set_internal_unit): Don't reset the unit_number
288 to the same number as this cause race warnings.
290 2021-03-05 Harald Anlauf <anlauf@gmx.de>
293 * m4/matmul_internal.m4: Invoke tuned matmul only for rank(b)>1.
294 * generated/matmul_c10.c: Regenerated.
295 * generated/matmul_c16.c: Likewise.
296 * generated/matmul_c4.c: Likewise.
297 * generated/matmul_c8.c: Likewise.
298 * generated/matmul_i1.c: Likewise.
299 * generated/matmul_i16.c: Likewise.
300 * generated/matmul_i2.c: Likewise.
301 * generated/matmul_i4.c: Likewise.
302 * generated/matmul_i8.c: Likewise.
303 * generated/matmul_r10.c: Likewise.
304 * generated/matmul_r16.c: Likewise.
305 * generated/matmul_r4.c: Likewise.
306 * generated/matmul_r8.c: Likewise.
307 * generated/matmulavx128_c10.c: Likewise.
308 * generated/matmulavx128_c16.c: Likewise.
309 * generated/matmulavx128_c4.c: Likewise.
310 * generated/matmulavx128_c8.c: Likewise.
311 * generated/matmulavx128_i1.c: Likewise.
312 * generated/matmulavx128_i16.c: Likewise.
313 * generated/matmulavx128_i2.c: Likewise.
314 * generated/matmulavx128_i4.c: Likewise.
315 * generated/matmulavx128_i8.c: Likewise.
316 * generated/matmulavx128_r10.c: Likewise.
317 * generated/matmulavx128_r16.c: Likewise.
318 * generated/matmulavx128_r4.c: Likewise.
319 * generated/matmulavx128_r8.c: Likewise.
321 2021-03-03 Vittorio Zecca <zeccav@gmail.com>
322 Tobias Burnus <tobias@codesourcery.com>
325 * runtime/string.c (gfc_itoa): Cast to unsigned before
328 2021-02-12 Steve Kargl <sgk@troutmask.apl.washington.edu>
331 * ieee/ieee_arithmetic.F90: Flip interfaces of operators .eq. to
334 2021-02-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
337 * io/transfer.c (next_record_w): Insert check for seen_dollar and if
338 so, skip issueing next record.
340 2021-01-27 Harris Snyder <hsnyder@structura.bio>
342 * runtime/ISO_Fortran_binding.c (CFI_establish): fixed
343 strides for rank >2 arrays.
345 2021-01-15 Harris Snyder <hsnyder@structura.bio>
347 * runtime/ISO_Fortran_binding.c (CFI_establish): Fixed signed
348 char arrays. Signed char or uint8_t arrays would cause
349 crashes unless an element size is specified.
351 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
353 * configure: Re-generate.
355 2021-01-01 Jakub Jelinek <jakub@redhat.com>
357 * ChangeLog-2020: Rotate ChangeLog. New file.
360 Copyright (C) 2021 Free Software Foundation, Inc.
362 Copying and distribution of this file, with or without modification,
363 are permitted in any medium without royalty provided the copyright
364 notice and this notice are preserved.