]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/fortran/ChangeLog
d53374688999ae2b57d50063b42cc975da050b47
[thirdparty/gcc.git] / gcc / fortran / ChangeLog
1 2022-05-02 Thomas Koenig <tkoenig@gcc.gnu.org>
2
3 Backported from master:
4 2022-04-29 Thomas Koenig <tkoenig@gcc.gnu.org>
5
6 * gfortran.texi: Fix exchanged period and letter.
7
8 2022-04-28 Thomas Koenig <tkoenig@gcc.gnu.org>
9
10 Backported from master:
11 2022-04-28 Thomas Koenig <tkoenig@gcc.gnu.org>
12
13 * gfortran.texi: Mention r16_ieee and r16_ibm.
14 * invoke.texi: Likewise.
15
16 2022-04-27 Mikael Morin <mikael@gcc.gnu.org>
17
18 PR fortran/103662
19 PR fortran/105379
20 * array.cc (compare_bounds): Use bool as return type.
21 Support non-constant expressions.
22 (gfc_compare_array_spec): Update call to compare_bounds.
23
24 2022-04-27 Mikael Morin <mikael@gcc.gnu.org>
25
26 PR fortran/102043
27 PR fortran/105381
28 * trans-array.cc (non_negative_strides_array_p): Inline variable
29 orig_decl and merge nested if conditions. Add condition to not
30 recurse if the next argument is the same as the current.
31
32 2022-04-25 Jakub Jelinek <jakub@redhat.com>
33 Thomas Schwinge <thomas@codesourcery.com>
34
35 PR fortran/104717
36 * trans-openmp.cc (gfc_trans_oacc_construct): Wrap construct body
37 in an extra BIND_EXPR.
38
39 2022-04-24 Mikael Morin <mikael@gcc.gnu.org>
40 Jakub Jelinek <jakub@redhat.com>
41
42 PR fortran/103662
43 * interface.cc (gfc_compare_derived_types): Support comparing
44 unlimited polymorphic fake symbols. Recursively compare class
45 descriptor types and virtual table types.
46 * resolve.cc (resolve_fl_derived): Add type to the types list
47 on unlimited polymorphic short-circuit return.
48
49 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
50 Richard Biener <rguenther@suse.de>
51
52 PR fortran/102043
53 * trans.h (gfc_build_array_ref): Add non_negative_offset
54 argument.
55 * trans.cc (gfc_build_array_ref): Ditto. Use pointer arithmetic
56 if non_negative_offset is false.
57 * trans-expr.cc (gfc_conv_substring): Set flag in the call to
58 gfc_build_array_ref.
59 * trans-array.cc (gfc_get_cfi_dim_item,
60 gfc_conv_descriptor_dimension): Same.
61 (build_array_ref): Decide on whether to set the flag and update
62 the call.
63 (gfc_conv_scalarized_array_ref): Same. New argument tmp_array.
64 (gfc_conv_tmp_array_ref): Update call to
65 gfc_conv_scalarized_ref.
66 (non_negative_strides_array_p): New function.
67
68 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
69
70 PR fortran/102043
71 * trans-array.cc (gfc_conv_expr_descriptor): Use
72 gfc_conv_tmp_array_ref.
73
74 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
75
76 PR fortran/102043
77 * trans-io.cc: Add handling for the case where the array
78 is referenced using pointer arithmetic.
79
80 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
81
82 PR fortran/102043
83 * trans-expr.cc: Pre-evaluate src and dest to variables
84 before using them.
85
86 2022-04-21 Fritz Reese <foreese@gcc.gnu.org>
87
88 PR fortran/105310
89 * trans-expr.cc (gfc_conv_union_initializer): Pass vec* by reference.
90
91 2022-04-13 Tobias Burnus <tobias@codesourcery.com>
92
93 PR fortran/105242
94 * match.cc (match_exit_cycle): Handle missing OMP LOOP, DO and SIMD
95 directives in the EXIT/CYCLE diagnostic.
96
97 2022-04-10 Harald Anlauf <anlauf@gmx.de>
98
99 PR fortran/105184
100 * array.cc (match_subscript): Reject assumed size coarray
101 specification with missing lower bound.
102 * resolve.cc (resolve_allocate_expr): Fix logic for checking
103 allocate-coshape-spec in ALLOCATE statement.
104
105 2022-04-05 Sandra Loosemore <sandra@codesourcery.com>
106
107 * trans-openmp.cc (gfc_split_omp_clauses): Fix mask for
108 EXEC_OMP_MASKED_TASKLOOP.
109
110 2022-04-05 Harald Anlauf <anlauf@gmx.de>
111
112 PR fortran/104210
113 * arith.cc (eval_intrinsic): Avoid NULL pointer dereference.
114 (gfc_zero_size_array): Likewise.
115
116 2022-04-05 Harald Anlauf <anlauf@gmx.de>
117 Steven G. Kargl <kargl@gcc.gnu.org>
118
119 PR fortran/105138
120 * intrinsic.cc (gfc_is_intrinsic): When a symbol refers to a
121 RECURSIVE procedure, it cannot be an INTRINSIC.
122
123 2022-03-30 Harald Anlauf <anlauf@gmx.de>
124
125 PR fortran/100892
126 * check.cc (gfc_check_associated): Avoid NULL pointer dereference.
127
128 2022-03-29 Harald Anlauf <anlauf@gmx.de>
129 Steven G. Kargl <kargl@gcc.gnu.org>
130
131 PR fortran/104571
132 * resolve.cc (resolve_elemental_actual): Avoid NULL pointer
133 dereference.
134
135 2022-03-29 Harald Anlauf <anlauf@gmx.de>
136
137 PR fortran/50549
138 * resolve.cc (resolve_structure_cons): Reject pointer assignments
139 of character with different lengths in structure constructor.
140
141 2022-03-25 Jakub Jelinek <jakub@redhat.com>
142
143 PR fortran/103691
144 * trans-array.cc (gfc_conv_array_initializer): If TYPE_MAX_VALUE is
145 smaller than TYPE_MIN_VALUE (i.e. empty array), ignore the
146 initializer; if TYPE_MIN_VALUE is equal to TYPE_MAX_VALUE, use just
147 the TYPE_MIN_VALUE as index instead of RANGE_EXPR.
148
149 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
150
151 PR fortran/103560
152 * scanner.cc (add_path_to_list): Don't append '/' to the
153 save include path.
154 (open_included_file): Use '/' in concatenating path + file name.
155 * module.cc (gzopen_included_file_1): Likewise.
156
157 2022-03-22 Harald Anlauf <anlauf@gmx.de>
158
159 PR fortran/104999
160 * simplify.cc (gfc_simplify_cshift): Ensure temporary holding
161 source array stride is initialized.
162
163 2022-03-19 Mikael Morin <mikael@gcc.gnu.org>
164
165 PR fortran/104228
166 PR fortran/104570
167 * parse.cc (parse_associate): Use a new distinct gfc_charlen if the
168 copied type has one whose length is not known to be constant.
169 * resolve.cc (resolve_assoc_var): Reset charlen if it’s shared with
170 the associate target regardless of the expression type.
171 Don’t reinitialize charlen if it’s deferred.
172
173 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
174
175 PR fortran/103039
176 * trans-openmp.cc (gfc_omp_clause_copy_ctor, gfc_omp_clause_dtor):
177 Only privatize pointer for associate names.
178
179 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
180
181 PR fortran/103039
182 * openmp.cc (resolve_omp_clauses): Improve associate-name diagnostic
183 for select type/rank.
184
185 2022-03-11 Tobias Burnus <tobias@codesourcery.com>
186
187 * trans-openmp.cc (gfc_trans_omp_clauses, gfc_omp_finish_clause):
188 Obtain size for mapping only if allocatable array is allocated.
189
190 2022-03-09 Harald Anlauf <anlauf@gmx.de>
191
192 PR fortran/104849
193 * expr.cc (find_array_section): Avoid NULL pointer dereference on
194 invalid array section.
195
196 2022-03-09 Tobias Burnus <tobias@codesourcery.com>
197
198 * trans-intrinsic.cc (gfc_conv_intrinsic_sizeof): Fix CLASS handling.
199
200 2022-03-08 Tobias Burnus <tobias@codesourcery.com>
201
202 PR fortran/104126
203 * trans-expr.cc (gfc_conv_gfc_desc_to_cfi_desc): Handle NULL
204 without MOLD.
205
206 2022-03-08 Harald Anlauf <anlauf@gmx.de>
207
208 PR fortran/104811
209 * frontend-passes.cc (optimize_minmaxloc): Do not attempt
210 frontend-optimization of MINLOC/MAXLOC for character arrays, as
211 there is no suitable code yet for inline expansion.
212
213 2022-03-07 Tobias Burnus <tobias@codesourcery.com>
214
215 PR fortran/99585
216 PR fortran/104430
217 * trans-expr.cc (conv_parent_component_references): Fix comment;
218 simplify comparison.
219 (gfc_maybe_dereference_var): Avoid d referencing a nonpointer.
220
221 2022-03-07 Tobias Burnus <tobias@codesourcery.com>
222
223 * array.cc (gfc_ref_dimen_size): Fix comment typo.
224 * dump-parse-tree.cc (gfc_dump_c_prototypes): Likewise.
225 * frontend-passes.cc (cfe_code): Likewise.
226 * gfortran.texi: Likewise.
227 * resolve.cc (generate_component_assignments): Likewise.
228 * simplify.cc (gfc_simplify_this_image): Likewise.
229 * trans-expr.cc (trans_scalar_class_assign,
230 gfc_maybe_dereference_var): Likewise.
231 * intrinsic.texi: Remove word duplication.
232 * invoke.texi: Likewise.
233
234 2022-03-07 Jakub Jelinek <jakub@redhat.com>
235
236 * trans-expr.cc: Fix up duplicated word issue in a comment.
237 * gfortran.h: Likewise.
238 * scanner.cc: Likewise.
239
240 2022-03-07 Martin Liska <mliska@suse.cz>
241
242 * intrinsic.cc (gfc_is_intrinsic): Remove asterisk from error
243 message.
244
245 2022-03-07 Martin Liska <mliska@suse.cz>
246
247 PR translation/90148
248 * intrinsic.cc (gfc_is_intrinsic): Put
249 quote to a proper place.
250
251 2022-03-03 Kwok Cheung Yeung <kcy@codesourcery.com>
252
253 PR fortran/104131
254 * openmp.cc (gfc_match_omp_detach): Move check for type of event
255 handle to...
256 (resolve_omp_clauses) ...here. Also check that the event handle is
257 not an array, or an array access or structure element access.
258
259 2022-03-02 Harald Anlauf <anlauf@gmx.de>
260
261 PR fortran/104573
262 * resolve.cc (resolve_structure_cons): Avoid NULL pointer
263 dereference when there is no valid component.
264
265 2022-02-24 Harald Anlauf <anlauf@gmx.de>
266
267 PR fortran/84519
268 * dump-parse-tree.cc (show_code_node): Dump QUIET specifier when
269 present.
270 * match.cc (gfc_match_stopcode): Implement parsing of F2018 QUIET
271 specifier. F2018 stopcodes may have non-default integer kind.
272 * resolve.cc (gfc_resolve_code): Add checks for QUIET argument.
273 * trans-stmt.cc (gfc_trans_stop): Pass QUIET specifier to call of
274 library function.
275
276 2022-02-22 Harald Anlauf <anlauf@gmx.de>
277
278 PR fortran/104619
279 * resolve.cc (resolve_structure_cons): Skip shape check if shape
280 of constructor cannot be determined at compile time.
281
282 2022-02-20 Harald Anlauf <anlauf@gmx.de>
283
284 PR fortran/77693
285 * data.cc (gfc_assign_data_value): If a variable in a data
286 statement has the POINTER attribute, check for allowed initial
287 data target that is compatible with pointer assignment.
288 * gfortran.h (IS_POINTER): New macro.
289
290 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
291
292 * trans-openmp.cc (gfc_trans_omp_depobj): Fix to alloc/ptr dummy
293 and for c_ptr.
294
295 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
296
297 * trans-openmp.cc (gfc_trans_omp_clauses, gfc_trans_omp_depobj):
298 Depend on the proper addr, for ptr/alloc depend on pointee.
299
300 2022-02-14 Harald Anlauf <anlauf@gmx.de>
301
302 PR fortran/104211
303 * expr.cc (find_array_section): Replace assertion by error
304 recovery when encountering bad array constructor.
305
306 2022-02-13 Mikael Morin <mikael@gcc.gnu.org>
307
308 PR fortran/104228
309 * resolve.cc (resolve_assoc_var): Also create a new character
310 length for non-dummy associate targets.
311 * trans-stmt.cc (trans_associate_var): Initialize character length
312 even if no temporary is used for the associate variable.
313
314 2022-02-10 Roger Sayle <roger@nextmovesoftware.com>
315 Tobias Burnus <tobias@codesourcery.com>
316
317 * trans-common.cc (GFC_EQUIV_FMT): New macro respecting the
318 target's NO_DOT_IN_LABEL and NO_DOLLAR_IN_LABEL preferences.
319 (build_equiv_decl): Use GFC_EQUIV_FMT here.
320
321 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
322
323 PR fortran/104329
324 * openmp.cc (resolve_omp_atomic): Defer extra-code assert after
325 other diagnostics.
326
327 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
328
329 * dump-parse-tree.cc (show_omp_clauses): Added OMP_LIST_HAS_DEVICE_ADDR
330 case.
331 * gfortran.h: Added OMP_LIST_HAS_DEVICE_ADDR.
332 * openmp.cc (enum omp_mask2): Added OMP_CLAUSE_HAS_DEVICE_ADDR.
333 (gfc_match_omp_clauses): Parse HAS_DEVICE_ADDR clause.
334 (resolve_omp_clauses): Same.
335 * trans-openmp.cc (gfc_trans_omp_variable_list): Added
336 OMP_LIST_HAS_DEVICE_ADDR case.
337 (gfc_trans_omp_clauses): Firstprivatize of array descriptors.
338
339 2022-02-09 Harald Anlauf <anlauf@gmx.de>
340
341 PR fortran/66193
342 * arith.cc (reduce_binary_ac): When reducing binary expressions,
343 try simplification. Handle case of empty constructor.
344 (reduce_binary_ca): Likewise.
345
346 2022-02-03 Harald Anlauf <anlauf@gmx.de>
347
348 PR fortran/104311
349 * check.cc (gfc_calculate_transfer_sizes): Checks for case when
350 storage size of SOURCE is greater than zero while the storage size
351 of MOLD is zero and MOLD is an array shall not depend on SIZE.
352
353 2022-02-03 Jakub Jelinek <jakub@redhat.com>
354
355 PR fortran/104328
356 * openmp.cc (is_scalar_intrinsic_expr): If must_be_var && conv_ok
357 and expr is conversion, verify it is a conversion from EXPR_VARIABLE
358 with non-NULL symtree. Check ->block->next before dereferencing it.
359
360 2022-02-01 Harald Anlauf <anlauf@gmx.de>
361
362 PR fortran/104331
363 * simplify.cc (gfc_simplify_eoshift): Avoid NULL pointer
364 dereference when shape is not set.
365
366 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
367
368 PR fortran/103790
369 * trans-array.cc (structure_alloc_comps): Prevent descriptor
370 stacking for non-array data; do not broadcast caf-tokens.
371 * trans-intrinsic.cc (conv_co_collective): Prevent generation
372 of unused descriptor.
373
374 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
375
376 Revert:
377 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
378
379 PR fortran/103790
380 * trans-array.cc (structure_alloc_comps): Prevent descriptor
381 stacking for non-array data; do not broadcast caf-tokens.
382 * trans-intrinsic.cc (conv_co_collective): Prevent generation
383 of unused descriptor.
384
385 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
386
387 PR fortran/103790
388 * trans-array.cc (structure_alloc_comps): Prevent descriptor
389 stacking for non-array data; do not broadcast caf-tokens.
390 * trans-intrinsic.cc (conv_co_collective): Prevent generation
391 of unused descriptor.
392
393 2022-01-27 Harald Anlauf <anlauf@gmx.de>
394
395 PR fortran/104128
396 * expr.cc (gfc_copy_expr): Convert internal representation of
397 string to wide char in value only for default character kind.
398 * target-memory.cc (interpret_array): Pass flag for conversion of
399 wide chars.
400 (gfc_target_interpret_expr): Likewise.
401
402 2022-01-27 Harald Anlauf <anlauf@gmx.de>
403
404 PR fortran/84784
405 * trans-intrinsic.cc (conv_intrinsic_image_status): Convert result
406 to resulting (default) integer type.
407 (conv_intrinsic_team_number): Likewise.
408 (gfc_conv_intrinsic_popcnt_poppar): Likewise.
409
410 2022-01-25 Harald Anlauf <anlauf@gmx.de>
411
412 PR fortran/104227
413 * check.cc (gfc_calculate_transfer_sizes): Fix checking of arrays
414 passed as MOLD argument to the TRANSFER intrinsic for having
415 storage size zero.
416
417 2022-01-25 Harald Anlauf <anlauf@gmx.de>
418
419 PR fortran/104212
420 * check.cc (gfc_check_norm2): Check that optional argument DIM is
421 scalar.
422 (gfc_check_parity): Likewise.
423
424 2022-01-24 Jakub Jelinek <jakub@redhat.com>
425
426 * lang.opt (fconvert=): Add EnumSet property and mention also
427 r16_ieee and r16_ibm arguments.
428 (big-endian, little-endian, native, swap): Add Set(1) property.
429 (r16_ieee, r16_ibm): New EnumValue entries with Set(2) property.
430 * trans-types.cc (gfc_init_kinds): Emit gfc_fatal_error for
431 -fconvert=r16_ieee or -fconvert=r16_ibm when R16_IEEE <=> R16_IBM
432 conversions aren't supported.
433
434 2022-01-22 Harald Anlauf <anlauf@gmx.de>
435
436 PR fortran/104127
437 * simplify.cc (gfc_simplify_transfer): Ensure that the result
438 typespec is set up for TRANSFER with MOLD of type CHARACTER
439 including character length even if the result is a zero-sized
440 array.
441
442 2022-01-20 Sandra Loosemore <sandra@codesourcery.com>
443
444 PR fortran/103695
445 PR fortran/102621
446 * gfortran.h (struct gfc_namespace) Add omp_affinity_iterator
447 field.
448 * dump-parse-tree.cc (show_iterator): Use it.
449 * openmp.cc (gfc_match_iterator): Likewise.
450 (resolve_omp_clauses): Likewise.
451 * trans-decl.cc (gfc_finish_var_decl): Likewise.
452 * trans-openmp.cc (handle_iterator): Likewise.
453
454 2022-01-18 Harald Anlauf <anlauf@gmx.de>
455
456 PR fortran/103692
457 * array.cc (gfc_expand_constructor): Handle zero-sized array
458 constructors.
459
460 2022-01-17 Martin Liska <mliska@suse.cz>
461
462 * check.cc (gfc_check_all_any): Rename .c names to .cc.
463 * class.cc (find_intrinsic_vtab): Likewise.
464 * config-lang.in: Likewise.
465 * cpp.cc (cpp_define_builtins): Likewise.
466 * data.cc (get_array_index): Likewise.
467 * decl.cc (match_clist_expr): Likewise.
468 (get_proc_name): Likewise.
469 (gfc_verify_c_interop_param): Likewise.
470 (gfc_get_pdt_instance): Likewise.
471 (gfc_match_formal_arglist): Likewise.
472 (gfc_get_type_attr_spec): Likewise.
473 * dependency.cc: Likewise.
474 * error.cc (gfc_format_decoder): Likewise.
475 * expr.cc (check_restricted): Likewise.
476 (gfc_build_default_init_expr): Likewise.
477 * f95-lang.cc: Likewise.
478 * gfc-internals.texi: Likewise.
479 * gfortran.h (enum match): Likewise.
480 (enum procedure_type): Likewise.
481 (enum oacc_routine_lop): Likewise.
482 (gfc_get_pdt_instance): Likewise.
483 (gfc_end_source_files): Likewise.
484 (gfc_mpz_set_hwi): Likewise.
485 (gfc_get_option_string): Likewise.
486 (gfc_find_sym_in_expr): Likewise.
487 (gfc_errors_to_warnings): Likewise.
488 (gfc_real_4_kind): Likewise.
489 (gfc_free_finalizer): Likewise.
490 (gfc_sym_get_dummy_args): Likewise.
491 (gfc_check_intrinsic_standard): Likewise.
492 (gfc_free_case_list): Likewise.
493 (gfc_resolve_oacc_routines): Likewise.
494 (gfc_check_vardef_context): Likewise.
495 (gfc_free_association_list): Likewise.
496 (gfc_implicit_pure_function): Likewise.
497 (gfc_ref_dimen_size): Likewise.
498 (gfc_compare_actual_formal): Likewise.
499 (gfc_resolve_wait): Likewise.
500 (gfc_dt_upper_string): Likewise.
501 (gfc_generate_module_code): Likewise.
502 (gfc_delete_bbt): Likewise.
503 (debug): Likewise.
504 (gfc_build_block_ns): Likewise.
505 (gfc_dep_difference): Likewise.
506 (gfc_invalid_null_arg): Likewise.
507 (gfc_is_finalizable): Likewise.
508 (gfc_fix_implicit_pure): Likewise.
509 (gfc_is_size_zero_array): Likewise.
510 (gfc_is_reallocatable_lhs): Likewise.
511 * gfortranspec.cc: Likewise.
512 * interface.cc (compare_actual_expr): Likewise.
513 * intrinsic.cc (add_functions): Likewise.
514 * iresolve.cc (gfc_resolve_matmul): Likewise.
515 (gfc_resolve_alarm_sub): Likewise.
516 * iso-c-binding.def: Likewise.
517 * lang-specs.h: Likewise.
518 * libgfortran.h (GFC_STDERR_UNIT_NUMBER): Likewise.
519 * match.cc (gfc_match_label): Likewise.
520 (gfc_match_symbol): Likewise.
521 (match_derived_type_spec): Likewise.
522 (copy_ts_from_selector_to_associate): Likewise.
523 * match.h (gfc_match_call): Likewise.
524 (gfc_get_common): Likewise.
525 (gfc_match_omp_end_single): Likewise.
526 (gfc_match_volatile): Likewise.
527 (gfc_match_bind_c): Likewise.
528 (gfc_match_literal_constant): Likewise.
529 (gfc_match_init_expr): Likewise.
530 (gfc_match_array_constructor): Likewise.
531 (gfc_match_end_interface): Likewise.
532 (gfc_match_print): Likewise.
533 (gfc_match_expr): Likewise.
534 * matchexp.cc (next_operator): Likewise.
535 * mathbuiltins.def: Likewise.
536 * module.cc (free_true_name): Likewise.
537 * openmp.cc (gfc_resolve_omp_parallel_blocks): Likewise.
538 (gfc_omp_save_and_clear_state): Likewise.
539 * parse.cc (parse_union): Likewise.
540 (set_syms_host_assoc): Likewise.
541 * resolve.cc (resolve_actual_arglist): Likewise.
542 (resolve_elemental_actual): Likewise.
543 (check_host_association): Likewise.
544 (resolve_typebound_function): Likewise.
545 (resolve_typebound_subroutine): Likewise.
546 (gfc_resolve_expr): Likewise.
547 (resolve_assoc_var): Likewise.
548 (resolve_typebound_procedures): Likewise.
549 (resolve_equivalence_derived): Likewise.
550 * simplify.cc (simplify_bound): Likewise.
551 * symbol.cc (gfc_set_default_type): Likewise.
552 (gfc_add_ext_attribute): Likewise.
553 * target-memory.cc (gfc_target_interpret_expr): Likewise.
554 * target-memory.h (gfc_target_interpret_expr): Likewise.
555 * trans-array.cc (gfc_get_cfi_dim_sm): Likewise.
556 (gfc_conv_shift_descriptor_lbound): Likewise.
557 (gfc_could_be_alias): Likewise.
558 (gfc_get_dataptr_offset): Likewise.
559 * trans-const.cc: Likewise.
560 * trans-decl.cc (trans_function_start): Likewise.
561 (gfc_trans_deferred_vars): Likewise.
562 (generate_local_decl): Likewise.
563 (gfc_generate_function_code): Likewise.
564 * trans-expr.cc (gfc_vptr_size_get): Likewise.
565 (gfc_trans_class_array_init_assign): Likewise.
566 (POWI_TABLE_SIZE): Likewise.
567 (gfc_conv_procedure_call): Likewise.
568 (gfc_trans_arrayfunc_assign): Likewise.
569 * trans-intrinsic.cc (gfc_conv_intrinsic_len): Likewise.
570 (gfc_conv_intrinsic_loc): Likewise.
571 (conv_intrinsic_event_query): Likewise.
572 * trans-io.cc (gfc_build_st_parameter): Likewise.
573 * trans-openmp.cc (gfc_omp_check_optional_argument): Likewise.
574 (gfc_omp_unshare_expr_r): Likewise.
575 (gfc_trans_omp_array_section): Likewise.
576 (gfc_trans_omp_clauses): Likewise.
577 * trans-stmt.cc (trans_associate_var): Likewise.
578 (gfc_trans_deallocate): Likewise.
579 * trans-stmt.h (gfc_trans_class_init_assign): Likewise.
580 (gfc_trans_deallocate): Likewise.
581 (gfc_trans_oacc_declare): Likewise.
582 * trans-types.cc: Likewise.
583 * trans-types.h (enum gfc_packed): Likewise.
584 * trans.cc (N_): Likewise.
585 (trans_code): Likewise.
586 * trans.h (gfc_build_compare_string): Likewise.
587 (gfc_conv_expr_type): Likewise.
588 (gfc_trans_deferred_vars): Likewise.
589 (getdecls): Likewise.
590 (gfc_get_array_descr_info): Likewise.
591 (gfc_omp_firstprivatize_type_sizes): Likewise.
592 (GTY): Likewise.
593
594 2022-01-17 Martin Liska <mliska@suse.cz>
595
596 * arith.c: Moved to...
597 * arith.cc: ...here.
598 * array.c: Moved to...
599 * array.cc: ...here.
600 * bbt.c: Moved to...
601 * bbt.cc: ...here.
602 * check.c: Moved to...
603 * check.cc: ...here.
604 * class.c: Moved to...
605 * class.cc: ...here.
606 * constructor.c: Moved to...
607 * constructor.cc: ...here.
608 * convert.c: Moved to...
609 * convert.cc: ...here.
610 * cpp.c: Moved to...
611 * cpp.cc: ...here.
612 * data.c: Moved to...
613 * data.cc: ...here.
614 * decl.c: Moved to...
615 * decl.cc: ...here.
616 * dependency.c: Moved to...
617 * dependency.cc: ...here.
618 * dump-parse-tree.c: Moved to...
619 * dump-parse-tree.cc: ...here.
620 * error.c: Moved to...
621 * error.cc: ...here.
622 * expr.c: Moved to...
623 * expr.cc: ...here.
624 * f95-lang.c: Moved to...
625 * f95-lang.cc: ...here.
626 * frontend-passes.c: Moved to...
627 * frontend-passes.cc: ...here.
628 * gfortranspec.c: Moved to...
629 * gfortranspec.cc: ...here.
630 * interface.c: Moved to...
631 * interface.cc: ...here.
632 * intrinsic.c: Moved to...
633 * intrinsic.cc: ...here.
634 * io.c: Moved to...
635 * io.cc: ...here.
636 * iresolve.c: Moved to...
637 * iresolve.cc: ...here.
638 * match.c: Moved to...
639 * match.cc: ...here.
640 * matchexp.c: Moved to...
641 * matchexp.cc: ...here.
642 * misc.c: Moved to...
643 * misc.cc: ...here.
644 * module.c: Moved to...
645 * module.cc: ...here.
646 * openmp.c: Moved to...
647 * openmp.cc: ...here.
648 * options.c: Moved to...
649 * options.cc: ...here.
650 * parse.c: Moved to...
651 * parse.cc: ...here.
652 * primary.c: Moved to...
653 * primary.cc: ...here.
654 * resolve.c: Moved to...
655 * resolve.cc: ...here.
656 * scanner.c: Moved to...
657 * scanner.cc: ...here.
658 * simplify.c: Moved to...
659 * simplify.cc: ...here.
660 * st.c: Moved to...
661 * st.cc: ...here.
662 * symbol.c: Moved to...
663 * symbol.cc: ...here.
664 * target-memory.c: Moved to...
665 * target-memory.cc: ...here.
666 * trans-array.c: Moved to...
667 * trans-array.cc: ...here.
668 * trans-common.c: Moved to...
669 * trans-common.cc: ...here.
670 * trans-const.c: Moved to...
671 * trans-const.cc: ...here.
672 * trans-decl.c: Moved to...
673 * trans-decl.cc: ...here.
674 * trans-expr.c: Moved to...
675 * trans-expr.cc: ...here.
676 * trans-intrinsic.c: Moved to...
677 * trans-intrinsic.cc: ...here.
678 * trans-io.c: Moved to...
679 * trans-io.cc: ...here.
680 * trans-openmp.c: Moved to...
681 * trans-openmp.cc: ...here.
682 * trans-stmt.c: Moved to...
683 * trans-stmt.cc: ...here.
684 * trans-types.c: Moved to...
685 * trans-types.cc: ...here.
686 * trans.c: Moved to...
687 * trans.cc: ...here.
688
689 2022-01-17 Andrew Stubbs <ams@codesourcery.com>
690
691 * openmp.c (gfc_match_omp_requires): Don't "sorry" dynamic_allocators.
692
693 2022-01-15 Harald Anlauf <anlauf@gmx.de>
694
695 PR fortran/83079
696 * target-memory.c (gfc_interpret_character): Result length is
697 in bytes and thus depends on the character kind.
698 * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Compute correct
699 string length for the result of the TRANSFER intrinsic and for
700 temporaries for the different character kinds.
701
702 2022-01-14 Harald Anlauf <anlauf@gmx.de>
703
704 PR fortran/99256
705 * intrinsic.c: Do not check formal argument type when checking
706 arguments of intrinsics for alternate return specifiers.
707
708 2022-01-14 Harald Anlauf <anlauf@gmx.de>
709
710 PR fortran/103782
711 * expr.c (gfc_simplify_expr): Adjust logic for when to scalarize a
712 call of an intrinsic which may have been overloaded.
713
714 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
715
716 * dump-parse-tree.c (show_omp_clauses): Handle OMP_LIST_ALLOCATE.
717 * gfortran.h (OMP_LIST_ALLOCATE): New enum value.
718 * openmp.c (enum omp_mask1): Add OMP_CLAUSE_ALLOCATE.
719 (gfc_match_omp_clauses): Handle OMP_CLAUSE_ALLOCATE
720 (OMP_PARALLEL_CLAUSES, OMP_DO_CLAUSES, OMP_SECTIONS_CLAUSES)
721 (OMP_TASK_CLAUSES, OMP_TASKLOOP_CLAUSES, OMP_TARGET_CLAUSES)
722 (OMP_TEAMS_CLAUSES, OMP_DISTRIBUTE_CLAUSES)
723 (OMP_SINGLE_CLAUSES): Add OMP_CLAUSE_ALLOCATE.
724 (OMP_TASKGROUP_CLAUSES): New.
725 (gfc_match_omp_taskgroup): Use OMP_TASKGROUP_CLAUSES instead of
726 OMP_CLAUSE_TASK_REDUCTION.
727 (resolve_omp_clauses): Handle OMP_LIST_ALLOCATE.
728 (resolve_omp_do): Avoid warning when loop iteration variable is
729 in allocate clause.
730 * trans-openmp.c (gfc_trans_omp_clauses): Handle translation of
731 allocate clause.
732 (gfc_split_omp_clauses): Update for OMP_LIST_ALLOCATE.
733
734 2022-01-13 Harald Anlauf <anlauf@gmx.de>
735
736 PR fortran/67804
737 * primary.c (gfc_match_structure_constructor): Recover from errors
738 that occurred while checking for a valid structure constructor in
739 a DATA statement.
740
741 2022-01-11 Thomas Koenig <tkoenig@gcc.gnu.org>
742
743 * libgfortran.h (unit_convert): Add flags.
744
745 2022-01-11 Jakub Jelinek <jakub@redhat.com>
746
747 * trans-types.c (gfc_init_kinds): When setting abi_kind to 17, if not
748 targetting glibc 2.32 or later and -fbuilding-libgfortran, set
749 gfc_real16_is_float128 and c_float128 in gfc_real_kinds.
750 (gfc_build_real_type): Don't set c_long_double if c_float128 is
751 already set.
752 * trans-intrinsic.c (builtin_decl_for_precision): Don't use
753 long_double_built_in if gfc_real16_is_float128 and
754 long_double_type_node == gfc_float128_type_node.
755 * lang.opt (fbuilding-libgfortran): New undocumented option.
756
757 2022-01-11 Jakub Jelinek <jakub@redhat.com>
758
759 * trans-intrinsic.c (gfc_get_intrinsic_lib_fndecl): Use
760 gfc_type_abi_kind.
761
762 2022-01-11 Jakub Jelinek <jakub@redhat.com>
763
764 * trans-io.c (transfer_array_desc): Pass abi kind instead of kind
765 to libgfortran.
766
767 2022-01-11 Jakub Jelinek <jakub@redhat.com>
768
769 * trans-io.c (transfer_namelist_element): Use gfc_type_abi_kind,
770 formatting fixes.
771 (transfer_expr): Use gfc_type_abi_kind, use *REAL128* APIs even
772 for abi_kind == 17.
773
774 2022-01-11 Jakub Jelinek <jakub@redhat.com>
775
776 * gfortran.h (gfc_real_info): Add abi_kind member.
777 (gfc_type_abi_kind): Declare.
778 * trans-types.c (gfc_init_kinds): Initialize abi_kind.
779 * intrinsic.c (gfc_type_abi_kind): New function.
780 (conv_name): Use it.
781 * iresolve.c (resolve_transformational, gfc_resolve_abs,
782 gfc_resolve_char_achar, gfc_resolve_acos, gfc_resolve_acosh,
783 gfc_resolve_aimag, gfc_resolve_and, gfc_resolve_aint, gfc_resolve_all,
784 gfc_resolve_anint, gfc_resolve_any, gfc_resolve_asin,
785 gfc_resolve_asinh, gfc_resolve_atan, gfc_resolve_atanh,
786 gfc_resolve_atan2, gfc_resolve_bessel_n2, gfc_resolve_ceiling,
787 gfc_resolve_cmplx, gfc_resolve_complex, gfc_resolve_cos,
788 gfc_resolve_cosh, gfc_resolve_count, gfc_resolve_dble,
789 gfc_resolve_dim, gfc_resolve_dot_product, gfc_resolve_dprod,
790 gfc_resolve_exp, gfc_resolve_floor, gfc_resolve_hypot,
791 gfc_resolve_int, gfc_resolve_int2, gfc_resolve_int8, gfc_resolve_long,
792 gfc_resolve_log, gfc_resolve_log10, gfc_resolve_logical,
793 gfc_resolve_matmul, gfc_resolve_minmax, gfc_resolve_maxloc,
794 gfc_resolve_findloc, gfc_resolve_maxval, gfc_resolve_merge,
795 gfc_resolve_minloc, gfc_resolve_minval, gfc_resolve_mod,
796 gfc_resolve_modulo, gfc_resolve_nearest, gfc_resolve_or,
797 gfc_resolve_real, gfc_resolve_realpart, gfc_resolve_reshape,
798 gfc_resolve_sign, gfc_resolve_sin, gfc_resolve_sinh, gfc_resolve_sqrt,
799 gfc_resolve_tan, gfc_resolve_tanh, gfc_resolve_transpose,
800 gfc_resolve_trigd, gfc_resolve_xor, gfc_resolve_random_number):
801 Likewise.
802 * trans-decl.c (gfc_build_intrinsic_function_decls): Likewise.
803
804 2022-01-10 Paul Thomas <pault@gcc.gnu.org>
805
806 PR fortran/103366
807 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Allow unlimited
808 polymorphic actual argument passed to assumed type formal.
809
810 2022-01-09 Harald Anlauf <anlauf@gmx.de>
811
812 PR fortran/103777
813 * simplify.c (gfc_simplify_maskr): Check validity of argument 'I'
814 before simplifying.
815 (gfc_simplify_maskl): Likewise.
816
817 2022-01-09 Harald Anlauf <anlauf@gmx.de>
818
819 PR fortran/101762
820 * expr.c (gfc_check_pointer_assign): For pointer initialization
821 targets, check that subscripts and substring indices in
822 specifications are constant expressions.
823
824 2022-01-09 Mikael Morin <mikael@gcc.gnu.org>
825
826 PR fortran/103789
827 * trans-array.c (arg_evaluated_for_scalarization): Add MASKL, MASKR,
828 SCAN and VERIFY to the list of intrinsics whose KIND argument is to be
829 ignored.
830
831 2022-01-07 Sandra Loosemore <sandra@codesourcery.com>
832
833 PR fortran/103898
834 * trans-intrinsic.c (gfc_conv_intrinsic_size): Make size_var
835 actually be a variable and fix surrounding code.
836
837 2022-01-06 Steve Kargl <kargl@gcc.gnu.org>
838 Sandra Loosemore <sandra@codesourcery.com>
839
840 PR fortran/103287
841 * interface.c (argument_rank_mismatch): Replace incorrect assertion
842 with return.
843
844 2022-01-05 Sandra Loosemore <sandra@codesourcery.com>
845
846 PR fortran/103258
847 * decl.c (gfc_match_char_spec): Suppress errors around call
848 to gfc_reduce_init_expr.
849 * error.c (gfc_query_suppress_errors): New.
850 * gfortran.h (gfc_query_suppress_errors): Declare.
851 * symbol.c (gfc_set_default_type): Check gfc_query_suppress_errors.
852
853 2022-01-03 Sandra Loosemore <sandra@codesourcery.com>
854
855 PR fortran/103390
856 * expr.c (gfc_is_simply_contiguous): Make it smarter about
857 function calls.
858 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Do not generate
859 copy loops for array expressions that are not "variables" (lvalues).
860
861 2022-01-03 Jakub Jelinek <jakub@redhat.com>
862
863 * gfortranspec.c (lang_specific_driver): Update copyright notice
864 dates.
865 * gfc-internals.texi: Bump @copying's copyright year.
866 * gfortran.texi: Ditto.
867 * intrinsic.texi: Ditto.
868 * invoke.texi: Ditto.
869
870 \f
871 Copyright (C) 2022 Free Software Foundation, Inc.
872
873 Copying and distribution of this file, with or without modification,
874 are permitted in any medium without royalty provided the copyright
875 notice and this notice are preserved.