ChangeLog-2021 13 KB

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