Using gen_int_mode instead of GEN_INT to avoid ICE caused by type promotion.
[gcc.git] / libgfortran / ChangeLog
1 2020-08-20 Mark Eggleston <markeggleston@gcc.gnu.org>
2
3 PR fortran/96436
4 * io/format.c (parse_format_list): Add new local variable
5 "standard" to hold the required standard to check. If the
6 format width is zero select standard depending on descriptor.
7 Call notification_std using the new standard variable.
8
9 2020-08-17 David Edelsohn <dje.gcc@gmail.com>
10 Clement Chigot <clement.chigot@atos.net>
11
12 * config/t-aix: Add complementary mode object file to libcaf_single.a.
13
14 2020-08-03 Tobias Burnus <tobias@codesourcery.com>
15
16 * caf/single.c (_gfortran_caf_lock): Fix typo.
17
18 2020-07-26 Tobias Burnus <tobias@codesourcery.com>
19
20 PR target/96306
21 * configure.ac: Add LIBGOMP_CHECKED_INT_KINDS and
22 LIBGOMP_CHECKED_REAL_KINDS and use it for to skip
23 integer kind=16 checks for amdgcn.
24 * Makefile.am (kinds.h, selected_int_kind.inc,
25 selected_real_kind.inc): Pass them on.
26 * mk-kinds-h.sh: Takes to-be-check kinds as argument.
27 * mk-sik-inc.sh: Likewise.
28 * mk-srk-inc.sh: Likewise.
29 * Makefile.in: Regenerate.
30 * configure: Regenerate.
31
32 2020-07-24 Dominique d'Humieres <dhumieres.dominique@free.fr>
33
34 PR fortran/93567
35 * io/write_float.def (determine_en_precision): Fix switch between
36 FMT_E and FMT_F.
37
38 2020-07-24 Dominique d'Humieres <dhumieres.dominique@free.fr>
39
40 PR fortran/93592
41 * io/write_float.def (build_float_string): Do not reset
42 nbefore for FMT_F and FMT_EN.
43
44 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
45
46 * config/t-aix: Set BITS from compiler cpp macro.
47
48 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
49
50 * Makefile.am: Use -include.
51 * Makefile.in: Regenerate.
52
53 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
54
55 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
56 * Makefile.in: Regenerate.
57 * configure.ac (tmake_file): Substitute.
58 * configure: Regenerate.
59 * configure.host: Add system configury stanza. Define tmake_file.
60 * config/t-aix: New file.
61
62 2020-06-13 Thomas Koenig <tkoenig@gcc.gnu.org>
63
64 PR libfortran/95313
65 * io/write.c (ztoa_big): Disable -Wstringop-overflow for one
66 line.
67
68 2020-06-08 Harald Anlauf <anlauf@gmx.de>
69
70 PR fortran/95091
71 * io/transfer.c (finalize_transfer): Fix type in error message.
72
73 2020-06-01 Uroš Bizjak <ubizjak@gmail.com>
74
75 PR libfortran/95418
76 * config/fpu-387.h (struct fenv): Add __attribute__ ((gcc_struct)).
77
78 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
79
80 PR bootstrap/95413
81 * configure: Regenerated.
82
83 2020-05-29 Jakub Jelinek <jakub@redhat.com>
84
85 PR libfortran/95390
86 * Makefile.am (i_findloc0_c): Add findloc0_i10.c.
87 (i_findloc1_c): Add findloc1_i10.c.
88 * gfortran.map (GFORTRAN_10.2): New symbol version, export
89 _gfortran_{,m,s}findloc{0,1}_c10 symbols.
90 * Makefile.in: Regenerated.
91 * generated/findloc0_c10.c: Generated.
92 * generated/findloc1_c10.c: Generated.
93
94 2020-05-28 Harald Anlauf <anlauf@gmx.de>
95
96 PR libfortran/95104
97 * io/unit.c (unlock_unit): Guard by check for NULL pointer.
98
99 2020-05-26 Harald Anlauf <anlauf@gmx.de>
100 Steven G. Kargl <kargl@gcc.gnu.org>
101
102 PR libfortran/95104
103 * io/transfer.c (st_wait_async): Do not dereference NULL pointer.
104
105 2020-05-26 Harald Anlauf <anlauf@gmx.de>
106
107 PR fortran/95195
108 * io/transfer.c (finalize_transfer): Generate runtime error for
109 namelist input/output to unformatted file.
110
111 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
112
113 PR libfortran/95191
114 * io/async.c (async_wait_id): Generate error if ID is higher
115 than the highest current ID.
116 * runtime/error.c (translate_error): Handle LIBERROR_BAD_WAIT_ID.
117
118 2020-05-21 H.J. Lu <hongjiu.lu@intel.com>
119
120 * m4/matmul.m4: Don't include <config/i386/cpuinfo.h>. Use
121 __builtin_cpu_is/__builtin_cpu_supports
122 * generated/matmul_c10.c: Regenerated.
123 * generated/matmul_c16.c: Likewise.
124 * generated/matmul_c4.c: Likewise.
125 * generated/matmul_c8.c: Likewise.
126 * generated/matmul_i1.c: Likewise.
127 * generated/matmul_i16.c: Likewise.
128 * generated/matmul_i2.c: Likewise.
129 * generated/matmul_i4.c: Likewise.
130 * generated/matmul_i8.c: Likewise.
131 * generated/matmul_r10.c: Likewise.
132 * generated/matmul_r16.c: Likewise.
133 * generated/matmul_r4.c: Likewise.
134 * generated/matmul_r8.c: Likewise.
135
136 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
137
138 PR bootstrap/95147
139 * configure: Regenerated.
140
141 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
142
143 PR libfortran/95119
144 * io/close.c (close_status): Add CLOSE_INVALID.
145 (st_close): Return early on invalid STATUS parameter.
146
147 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
148
149 * configure: Regenerated.
150
151 2020-05-06 Uroš Bizjak <ubizjak@gmail.com>
152
153 * config/fpu-387.h (__math_force_eval): Remove.
154 (__math_force_eval_div): New define.
155 (local_feraiseexcept): Use __math_force_eval_div to use
156 generic division to generate INVALID, DIVZERO and INEXACT
157 exceptions.
158 (struct fenv): Define named struct instead of typedef.
159
160 2020-05-01 Uroš Bizjak <ubizjak@gmail.com>
161
162 * config/fpu-387.h (__math_force_eval): New define.
163 (local_feraiseexcept): Use __math_force_eval to evaluate
164 generic division to generate INVALID and DIVZERO exceptions.
165
166 2020-04-22 Fritz Reese <foreese@gcc.gnu.org>
167
168 * intrinsics/trigd.c, intrinsics/trigd_lib.inc, intrinsics/trigd.inc:
169 Guard against unavailable math functions.
170 Use suffixes from kinds.h based on the REAL kind.
171
172 2020-04-22 Jakub Jelinek <jakub@redhat.com>
173
174 PR libfortran/94694
175 PR libfortran/94586
176 * configure.ac: Add math func checks for fmaf, fma and fmal. Add
177 HAVE_INLINE_BUILTIN_COPYSIGN check.
178 * c99_protos.h (copysign, fmaf, fma, fmal): Provide fallback
179 prototypes.
180 (HAVE_COPYSIGN, HAVE_FMAF, HAVE_FMA, HAVE_FMAL): Define if not
181 defined and fallback version is provided.
182 * intrinsics/c99_functions.c (copysign, fmaf, fma, fmal): Provide
183 fallback implementations if possible
184 * configure: Regenerated.
185 * config.h.in: Regenerated.
186
187 2020-04-19 Uroš Bizjak <ubizjak@gmail.com>
188
189 * config/fpu-387.h (local_feraiseexcept) [__SSE_MATH__]:
190 Remove unneeded assignments to volatile memory.
191
192 2020-04-01 Fritz Reese <foreese@gcc.gnu.org>
193 Steven G. Kargl <kargl@gcc.gnu.org>
194
195 PR fortran/93871
196 * Makefile.am, Makefile.in: New make rule for intrinsics/trigd.c.
197 * gfortran.map: New routines for {sind, cosd, tand}X{r4, r8, r10, r16}.
198 * intrinsics/trigd.c, intrinsics/trigd_lib.inc, intrinsics/trigd.inc:
199 New files. Defines native degree-valued trig functions.
200
201 2020-02-18 Thomas Koenig <tkoenig@gcc.gnu.org>
202
203 PR fortran/93599
204 * io/async.c (destroy_adv_cond): Do not destroy lock.
205 (async_io): Make sure au->lock is locked for finishing of thread.
206 Do not lock/unlock around signalling emptysignal. Unlock au->lock
207 before return.
208 (init_adv_cond): Do not initialize lock.
209 (enqueue_transfer): Unlock after signal.
210 (enqueue_done_id): Likewise.
211 (enqueue_done): Likewise.
212 (enqueue_close): Likewise.
213 (enqueue_data_transfer): Likewise.
214 (async_wait_id): Do not lock/unlock around signalling au->work.
215 (async_wait): Unlock after signal.
216 * io/async.h (SIGNAL): Add comment about needed au->lock.
217 Remove locking/unlocking of advcond->lock.
218 (WAIT_SIGNAL_MUTEX): Add comment. Remove locking/unlocking of
219 advcond->lock. Unlock mutex only at the end. Loop on
220 __ghread_cond_wait returning zero.
221 (REVOKE_SIGNAL): Add comment. Remove locking/unlocking of
222 advcond->lock.
223 (struct adv_cond): Remove mutex from struct.
224
225 2020-02-12 Sandra Loosemore <sandra@codesourcery.com>
226
227 PR libstdc++/79193
228 PR libstdc++/88999
229
230 * configure: Regenerated.
231
232 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
233
234 * configure.ac: Handle `--with-toolexeclibdir='.
235 * Makefile.in: Regenerate.
236 * aclocal.m4: Regenerate.
237 * configure: Regenerate.
238
239 2020-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
240
241 PR libfortran/93234
242 * io/unit.c (set_internal_unit): Set round and sign flags
243 correctly.
244
245 2020-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
246
247 PR libfortran/90374
248 * io/format.c (parse_format_list): Zero width not allowed with
249 FMT_D.
250 * io/write_float.def (build_float_string): Include range of
251 higher exponent values that require wider width.
252
253 2020-01-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
254
255 PR libfortran/90374
256 * io/format.c (parse_format_list): Implement the E0 exponent
257 width to provide smallest possible width for exponent fields.
258 Refactor code for correct parsing and better readability of the
259 code.
260 * io/io.h (write_real_w0): Change interface to pass in pointer
261 to fnode.
262 * io/transfer.c: Update all calls to write_real_w0 to use the
263 new interface.
264 * io/write.c ((write_real_w0): Use the new interface with fnode
265 to access both the decimal precision and exponent widths used in
266 build_float_string.
267 * io/write_float.def (build_float_string): Use the passed in
268 exponent width to calculate the used width in the case of E0.
269
270 2020-01-01 Jakub Jelinek <jakub@redhat.com>
271
272 Update copyright years.
273 \f
274 Copyright (C) 2020 Free Software Foundation, Inc.
275
276 Copying and distribution of this file, with or without modification,
277 are permitted in any medium without royalty provided the copyright
278 notice and this notice are preserved.