1 2022-05-02 Thomas Koenig <tkoenig@gcc.gnu.org>
3 Backported from master:
4 2022-04-29 Thomas Koenig <tkoenig@gcc.gnu.org>
6 * gfortran.texi: Fix exchanged period and letter.
8 2022-04-28 Thomas Koenig <tkoenig@gcc.gnu.org>
10 Backported from master:
11 2022-04-28 Thomas Koenig <tkoenig@gcc.gnu.org>
13 * gfortran.texi: Mention r16_ieee and r16_ibm.
14 * invoke.texi: Likewise.
16 2022-04-27 Mikael Morin <mikael@gcc.gnu.org>
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.
24 2022-04-27 Mikael Morin <mikael@gcc.gnu.org>
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.
32 2022-04-25 Jakub Jelinek <jakub@redhat.com>
33 Thomas Schwinge <thomas@codesourcery.com>
36 * trans-openmp.cc (gfc_trans_oacc_construct): Wrap construct body
37 in an extra BIND_EXPR.
39 2022-04-24 Mikael Morin <mikael@gcc.gnu.org>
40 Jakub Jelinek <jakub@redhat.com>
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.
49 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
50 Richard Biener <rguenther@suse.de>
53 * trans.h (gfc_build_array_ref): Add non_negative_offset
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
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
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.
68 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
71 * trans-array.cc (gfc_conv_expr_descriptor): Use
72 gfc_conv_tmp_array_ref.
74 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
77 * trans-io.cc: Add handling for the case where the array
78 is referenced using pointer arithmetic.
80 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
83 * trans-expr.cc: Pre-evaluate src and dest to variables
86 2022-04-21 Fritz Reese <foreese@gcc.gnu.org>
89 * trans-expr.cc (gfc_conv_union_initializer): Pass vec* by reference.
91 2022-04-13 Tobias Burnus <tobias@codesourcery.com>
94 * match.cc (match_exit_cycle): Handle missing OMP LOOP, DO and SIMD
95 directives in the EXIT/CYCLE diagnostic.
97 2022-04-10 Harald Anlauf <anlauf@gmx.de>
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.
105 2022-04-05 Sandra Loosemore <sandra@codesourcery.com>
107 * trans-openmp.cc (gfc_split_omp_clauses): Fix mask for
108 EXEC_OMP_MASKED_TASKLOOP.
110 2022-04-05 Harald Anlauf <anlauf@gmx.de>
113 * arith.cc (eval_intrinsic): Avoid NULL pointer dereference.
114 (gfc_zero_size_array): Likewise.
116 2022-04-05 Harald Anlauf <anlauf@gmx.de>
117 Steven G. Kargl <kargl@gcc.gnu.org>
120 * intrinsic.cc (gfc_is_intrinsic): When a symbol refers to a
121 RECURSIVE procedure, it cannot be an INTRINSIC.
123 2022-03-30 Harald Anlauf <anlauf@gmx.de>
126 * check.cc (gfc_check_associated): Avoid NULL pointer dereference.
128 2022-03-29 Harald Anlauf <anlauf@gmx.de>
129 Steven G. Kargl <kargl@gcc.gnu.org>
132 * resolve.cc (resolve_elemental_actual): Avoid NULL pointer
135 2022-03-29 Harald Anlauf <anlauf@gmx.de>
138 * resolve.cc (resolve_structure_cons): Reject pointer assignments
139 of character with different lengths in structure constructor.
141 2022-03-25 Jakub Jelinek <jakub@redhat.com>
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.
149 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
152 * scanner.cc (add_path_to_list): Don't append '/' to the
154 (open_included_file): Use '/' in concatenating path + file name.
155 * module.cc (gzopen_included_file_1): Likewise.
157 2022-03-22 Harald Anlauf <anlauf@gmx.de>
160 * simplify.cc (gfc_simplify_cshift): Ensure temporary holding
161 source array stride is initialized.
163 2022-03-19 Mikael Morin <mikael@gcc.gnu.org>
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.
173 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
176 * trans-openmp.cc (gfc_omp_clause_copy_ctor, gfc_omp_clause_dtor):
177 Only privatize pointer for associate names.
179 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
182 * openmp.cc (resolve_omp_clauses): Improve associate-name diagnostic
183 for select type/rank.
185 2022-03-11 Tobias Burnus <tobias@codesourcery.com>
187 * trans-openmp.cc (gfc_trans_omp_clauses, gfc_omp_finish_clause):
188 Obtain size for mapping only if allocatable array is allocated.
190 2022-03-09 Harald Anlauf <anlauf@gmx.de>
193 * expr.cc (find_array_section): Avoid NULL pointer dereference on
194 invalid array section.
196 2022-03-09 Tobias Burnus <tobias@codesourcery.com>
198 * trans-intrinsic.cc (gfc_conv_intrinsic_sizeof): Fix CLASS handling.
200 2022-03-08 Tobias Burnus <tobias@codesourcery.com>
203 * trans-expr.cc (gfc_conv_gfc_desc_to_cfi_desc): Handle NULL
206 2022-03-08 Harald Anlauf <anlauf@gmx.de>
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.
213 2022-03-07 Tobias Burnus <tobias@codesourcery.com>
217 * trans-expr.cc (conv_parent_component_references): Fix comment;
219 (gfc_maybe_dereference_var): Avoid d referencing a nonpointer.
221 2022-03-07 Tobias Burnus <tobias@codesourcery.com>
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.
234 2022-03-07 Jakub Jelinek <jakub@redhat.com>
236 * trans-expr.cc: Fix up duplicated word issue in a comment.
237 * gfortran.h: Likewise.
238 * scanner.cc: Likewise.
240 2022-03-07 Martin Liska <mliska@suse.cz>
242 * intrinsic.cc (gfc_is_intrinsic): Remove asterisk from error
245 2022-03-07 Martin Liska <mliska@suse.cz>
248 * intrinsic.cc (gfc_is_intrinsic): Put
249 quote to a proper place.
251 2022-03-03 Kwok Cheung Yeung <kcy@codesourcery.com>
254 * openmp.cc (gfc_match_omp_detach): Move check for type of event
256 (resolve_omp_clauses) ...here. Also check that the event handle is
257 not an array, or an array access or structure element access.
259 2022-03-02 Harald Anlauf <anlauf@gmx.de>
262 * resolve.cc (resolve_structure_cons): Avoid NULL pointer
263 dereference when there is no valid component.
265 2022-02-24 Harald Anlauf <anlauf@gmx.de>
268 * dump-parse-tree.cc (show_code_node): Dump QUIET specifier when
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
276 2022-02-22 Harald Anlauf <anlauf@gmx.de>
279 * resolve.cc (resolve_structure_cons): Skip shape check if shape
280 of constructor cannot be determined at compile time.
282 2022-02-20 Harald Anlauf <anlauf@gmx.de>
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.
290 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
292 * trans-openmp.cc (gfc_trans_omp_depobj): Fix to alloc/ptr dummy
295 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
297 * trans-openmp.cc (gfc_trans_omp_clauses, gfc_trans_omp_depobj):
298 Depend on the proper addr, for ptr/alloc depend on pointee.
300 2022-02-14 Harald Anlauf <anlauf@gmx.de>
303 * expr.cc (find_array_section): Replace assertion by error
304 recovery when encountering bad array constructor.
306 2022-02-13 Mikael Morin <mikael@gcc.gnu.org>
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.
314 2022-02-10 Roger Sayle <roger@nextmovesoftware.com>
315 Tobias Burnus <tobias@codesourcery.com>
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.
321 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
324 * openmp.cc (resolve_omp_atomic): Defer extra-code assert after
327 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
329 * dump-parse-tree.cc (show_omp_clauses): Added OMP_LIST_HAS_DEVICE_ADDR
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.
339 2022-02-09 Harald Anlauf <anlauf@gmx.de>
342 * arith.cc (reduce_binary_ac): When reducing binary expressions,
343 try simplification. Handle case of empty constructor.
344 (reduce_binary_ca): Likewise.
346 2022-02-03 Harald Anlauf <anlauf@gmx.de>
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.
353 2022-02-03 Jakub Jelinek <jakub@redhat.com>
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.
360 2022-02-01 Harald Anlauf <anlauf@gmx.de>
363 * simplify.cc (gfc_simplify_eoshift): Avoid NULL pointer
364 dereference when shape is not set.
366 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
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.
374 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
377 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
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.
385 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
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.
393 2022-01-27 Harald Anlauf <anlauf@gmx.de>
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
400 (gfc_target_interpret_expr): Likewise.
402 2022-01-27 Harald Anlauf <anlauf@gmx.de>
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.
410 2022-01-25 Harald Anlauf <anlauf@gmx.de>
413 * check.cc (gfc_calculate_transfer_sizes): Fix checking of arrays
414 passed as MOLD argument to the TRANSFER intrinsic for having
417 2022-01-25 Harald Anlauf <anlauf@gmx.de>
420 * check.cc (gfc_check_norm2): Check that optional argument DIM is
422 (gfc_check_parity): Likewise.
424 2022-01-24 Jakub Jelinek <jakub@redhat.com>
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.
434 2022-01-22 Harald Anlauf <anlauf@gmx.de>
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
442 2022-01-20 Sandra Loosemore <sandra@codesourcery.com>
446 * gfortran.h (struct gfc_namespace) Add omp_affinity_iterator
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.
454 2022-01-18 Harald Anlauf <anlauf@gmx.de>
457 * array.cc (gfc_expand_constructor): Handle zero-sized array
460 2022-01-17 Martin Liska <mliska@suse.cz>
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.
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.
594 2022-01-17 Martin Liska <mliska@suse.cz>
596 * arith.c: Moved to...
598 * array.c: Moved to...
602 * check.c: Moved to...
604 * class.c: Moved to...
606 * constructor.c: Moved to...
607 * constructor.cc: ...here.
608 * convert.c: Moved to...
609 * convert.cc: ...here.
612 * data.c: Moved to...
614 * decl.c: Moved to...
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...
622 * expr.c: Moved to...
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.
636 * iresolve.c: Moved to...
637 * iresolve.cc: ...here.
638 * match.c: Moved to...
640 * matchexp.c: Moved to...
641 * matchexp.cc: ...here.
642 * misc.c: Moved to...
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...
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.
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...
689 2022-01-17 Andrew Stubbs <ams@codesourcery.com>
691 * openmp.c (gfc_match_omp_requires): Don't "sorry" dynamic_allocators.
693 2022-01-15 Harald Anlauf <anlauf@gmx.de>
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.
702 2022-01-14 Harald Anlauf <anlauf@gmx.de>
705 * intrinsic.c: Do not check formal argument type when checking
706 arguments of intrinsics for alternate return specifiers.
708 2022-01-14 Harald Anlauf <anlauf@gmx.de>
711 * expr.c (gfc_simplify_expr): Adjust logic for when to scalarize a
712 call of an intrinsic which may have been overloaded.
714 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
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
730 * trans-openmp.c (gfc_trans_omp_clauses): Handle translation of
732 (gfc_split_omp_clauses): Update for OMP_LIST_ALLOCATE.
734 2022-01-13 Harald Anlauf <anlauf@gmx.de>
737 * primary.c (gfc_match_structure_constructor): Recover from errors
738 that occurred while checking for a valid structure constructor in
741 2022-01-11 Thomas Koenig <tkoenig@gcc.gnu.org>
743 * libgfortran.h (unit_convert): Add flags.
745 2022-01-11 Jakub Jelinek <jakub@redhat.com>
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
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.
757 2022-01-11 Jakub Jelinek <jakub@redhat.com>
759 * trans-intrinsic.c (gfc_get_intrinsic_lib_fndecl): Use
762 2022-01-11 Jakub Jelinek <jakub@redhat.com>
764 * trans-io.c (transfer_array_desc): Pass abi kind instead of kind
767 2022-01-11 Jakub Jelinek <jakub@redhat.com>
769 * trans-io.c (transfer_namelist_element): Use gfc_type_abi_kind,
771 (transfer_expr): Use gfc_type_abi_kind, use *REAL128* APIs even
774 2022-01-11 Jakub Jelinek <jakub@redhat.com>
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.
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):
802 * trans-decl.c (gfc_build_intrinsic_function_decls): Likewise.
804 2022-01-10 Paul Thomas <pault@gcc.gnu.org>
807 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Allow unlimited
808 polymorphic actual argument passed to assumed type formal.
810 2022-01-09 Harald Anlauf <anlauf@gmx.de>
813 * simplify.c (gfc_simplify_maskr): Check validity of argument 'I'
815 (gfc_simplify_maskl): Likewise.
817 2022-01-09 Harald Anlauf <anlauf@gmx.de>
820 * expr.c (gfc_check_pointer_assign): For pointer initialization
821 targets, check that subscripts and substring indices in
822 specifications are constant expressions.
824 2022-01-09 Mikael Morin <mikael@gcc.gnu.org>
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
831 2022-01-07 Sandra Loosemore <sandra@codesourcery.com>
834 * trans-intrinsic.c (gfc_conv_intrinsic_size): Make size_var
835 actually be a variable and fix surrounding code.
837 2022-01-06 Steve Kargl <kargl@gcc.gnu.org>
838 Sandra Loosemore <sandra@codesourcery.com>
841 * interface.c (argument_rank_mismatch): Replace incorrect assertion
844 2022-01-05 Sandra Loosemore <sandra@codesourcery.com>
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.
853 2022-01-03 Sandra Loosemore <sandra@codesourcery.com>
856 * expr.c (gfc_is_simply_contiguous): Make it smarter about
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).
861 2022-01-03 Jakub Jelinek <jakub@redhat.com>
863 * gfortranspec.c (lang_specific_driver): Update copyright notice
865 * gfc-internals.texi: Bump @copying's copyright year.
866 * gfortran.texi: Ditto.
867 * intrinsic.texi: Ditto.
868 * invoke.texi: Ditto.
871 Copyright (C) 2022 Free Software Foundation, Inc.
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.