1 2023-02-16 Steve Kargl <kargl@gcc.gnu.org>
3 Backported from master:
4 2023-02-15 Steve Kargl <kargl@gcc.gnu.org>
7 * resolve.cc (check_assumed_size_reference): Avoid NULL pointer
10 2023-02-10 Jakub Jelinek <jakub@redhat.com>
12 Backported from master:
13 2023-02-03 Jakub Jelinek <jakub@redhat.com>
16 * trans-decl.cc (gfc_trans_use_stmts): Call clear_slot before
19 2023-02-10 Jakub Jelinek <jakub@redhat.com>
21 Backported from master:
22 2023-01-11 Jakub Jelinek <jakub@redhat.com>
25 * f95-lang.cc (gfc_init_builtin_function): Fix up function types
26 for BUILT_IN_REALLOC and BUILT_IN_SINCOS{F,,L}. Formatting fixes.
28 2023-02-09 Steve Kargl <kargl@gcc.gnu.org>
30 Backported from master:
31 2023-02-08 Steve Kargl <kargl@gcc.gnu.org>
34 * resolve.cc (resolve_common_vars): Avoid NULL pointer dereference
35 when a symbol's location is not set.
37 2023-02-08 Harald Anlauf <anlauf@gmx.de>
39 Backported from master:
40 2023-02-07 Harald Anlauf <anlauf@gmx.de>
43 * trans-decl.cc (gfc_finish_var_decl): With -fno-automatic, do not
44 make ASSOCIATE variables TREE_STATIC.
46 2023-02-05 Mikael Morin <mikael@gcc.gnu.org>
48 Backported from master:
49 2023-01-29 Mikael Morin <mikael@gcc.gnu.org>
52 * check.cc (gfc_check_minloc_maxloc): Explicitly set argument name.
53 (gfc_check_findloc): Ditto.
55 2023-02-05 Harald Anlauf <anlauf@gmx.de>
57 Backported from master:
58 2023-02-01 Harald Anlauf <anlauf@gmx.de>
61 * expr.cc (find_array_section): Add check to prevent interpreting an
62 mpz non-integer constant as an integer.
64 2023-02-05 Harald Anlauf <anlauf@gmx.de>
66 Backported from master:
67 2023-01-28 Harald Anlauf <anlauf@gmx.de>
68 Steven G. Kargl <kargl@gcc.gnu.org>
71 * resolve.cc (compare_bound_int): Expression to compare must be of
73 (compare_bound_mpz_t): Likewise.
74 (check_dimension): Fix comment on checks applied to array section
75 and clean up associated logic.
77 2023-02-02 Harald Anlauf <anlauf@gmx.de>
79 Backported from master:
80 2023-01-28 Harald Anlauf <anlauf@gmx.de>
83 * match.cc (gfc_match_common): A USE associated name shall not appear
84 in a COMMON block (F2018:C8121).
86 2023-01-30 Tobias Burnus <tobias@codesourcery.com>
88 Backported from master:
89 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
92 * trans-openmp.cc (gfc_split_omp_clauses): Handle has_device_addr.
94 2023-01-28 Harald Anlauf <anlauf@gmx.de>
96 Backported from master:
97 2023-01-24 Harald Anlauf <anlauf@gmx.de>
100 * simplify.cc (simplify_transformation): Do not try to simplify
101 transformational intrinsic when the ARRAY argument has a NULL shape.
103 2023-01-28 Harald Anlauf <anlauf@gmx.de>
105 Backported from master:
106 2022-07-14 Harald Anlauf <anlauf@gmx.de>
107 Steven G. Kargl <kargl@gcc.gnu.org>
110 * decl.cc (add_init_expr_to_sym): Handle bad initializers for
111 implied-shape arrays.
113 2023-01-28 Harald Anlauf <anlauf@gmx.de>
115 Backported from master:
116 2023-01-17 Harald Anlauf <anlauf@gmx.de>
119 * interface.cc (get_expr_storage_size): Check that we actually have
120 an integer value before trying to extract it with mpz_get_si.
122 2023-01-28 Harald Anlauf <anlauf@gmx.de>
124 Backported from master:
125 2023-01-23 Harald Anlauf <anlauf@gmx.de>
128 * iresolve.cc (check_charlen_present): Preserve character length if
129 there is no array constructor.
131 2023-01-28 Harald Anlauf <anlauf@gmx.de>
133 Backported from master:
134 2023-01-23 Harald Anlauf <anlauf@gmx.de>
137 * interface.cc (get_expr_storage_size): Check array subscript triplets
138 that we actually have integer values before trying to extract with
141 2023-01-28 Harald Anlauf <anlauf@gmx.de>
143 Backported from master:
144 2023-01-23 Harald Anlauf <anlauf@gmx.de>
147 * dependency.cc (gfc_check_dependency): Prevent NULL pointer
148 dereference while recursively checking expressions.
150 2023-01-23 Harald Anlauf <anlauf@gmx.de>
152 Backported from master:
153 2023-01-19 Harald Anlauf <anlauf@gmx.de>
156 * expr.cc (class_allocatable): Prevent NULL pointer dereference
158 (class_pointer): Likewise.
160 2023-01-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
163 * trans-array.cc (gfc_trans_auto_array_allocation): Remove gcc_assert (!TREE_STATIC()).
165 2022-12-28 Harald Anlauf <anlauf@gmx.de>
167 Backported from master:
168 2022-12-23 Harald Anlauf <anlauf@gmx.de>
171 * array.cc (match_array_element_spec): Avoid too early simplification
172 of matched array element specs that can lead to a misinterpretation
173 when used as array bounds in array declarations.
175 2022-12-18 Paul Thomas <pault@gcc.gnu.org>
177 Backported from master:
178 2022-12-09 Paul Thomas <pault@gcc.gnu.org>
181 * resolve.cc (derived_inaccessible): Skip over allocatable components
182 to prevent an infinite loop.
184 2022-11-25 Harald Anlauf <anlauf@gmx.de>
186 Backported from master:
187 2022-11-18 Harald Anlauf <anlauf@gmx.de>
190 * interface.cc (gfc_procedure_use): Reject NULL as actual argument
191 when there is no explicit procedure interface.
193 2022-10-29 José Rui Faustino de Sousa <jrfsousa@gmail.com>
195 Backported from master:
196 2022-10-21 José Rui Faustino de Sousa <jrfsousa@gmail.com>
200 * trans-array.cc (gfc_trans_class_array): New function to
201 initialize class descriptor's TKR information.
202 * trans-array.h (gfc_trans_class_array): Add function prototype.
203 * trans-decl.cc (gfc_trans_deferred_vars): Add calls to the new
204 function for both pointers and allocatables.
206 2022-10-28 Harald Anlauf <anlauf@gmx.de>
208 Backported from master:
209 2022-10-26 Harald Anlauf <anlauf@gmx.de>
212 * symbol.cc (gfc_type_compatible): A boz-literal-constant has no type
213 and thus is not considered compatible to any type.
215 2022-10-23 Harald Anlauf <anlauf@gmx.de>
217 Backported from master:
218 2022-10-20 Harald Anlauf <anlauf@gmx.de>
219 Steven G. Kargl <kargl@gcc.gnu.org>
222 * expr.cc (find_array_section): Move check for NULL pointers so
223 that both subscript triplets and vector subscripts are covered.
225 2022-10-12 Mikael Morin <mikael@gcc.gnu.org>
227 Backported from master:
228 2022-09-25 Mikael Morin <mikael@gcc.gnu.org>
231 * trans-expr.cc (gfc_conv_procedure_call): Collect all clobbers
232 to their own separate block. Append the block of clobbers to
233 the procedure preliminary block after the argument evaluation
234 codes for all the arguments.
236 2022-10-12 Mikael Morin <mikael@gcc.gnu.org>
238 Backported from master:
239 2022-09-25 Mikael Morin <mikael@gcc.gnu.org>
242 * trans-expr.cc (gfc_conv_procedure_call): Retrieve variable
243 from the just calculated variable reference.
245 2022-10-12 Mikael Morin <mikael@gcc.gnu.org>
247 Backported from master:
248 2022-09-25 Mikael Morin <mikael@gcc.gnu.org>
250 * trans.h (gfc_conv_expr_reference): Remove add_clobber
252 * trans-expr.cc (gfc_conv_expr_reference): Ditto. Inline code
253 depending on add_clobber and conditions controlling it ...
254 (gfc_conv_procedure_call): ... to here.
256 2022-10-08 José Rui Faustino de Sousa <jrfsousa@gmail.com>
258 Backported from master:
259 2022-10-01 José Rui Faustino de Sousa <jrfsousa@gmail.com>
263 * trans-expr.cc (gfc_conv_class_to_class): Add code to have
264 assumed-rank arrays recognized as full arrays and fix the type
265 of the array assignment.
266 (gfc_conv_procedure_call): Change order of code blocks such that
267 the free of ALLOCATABLE dummy arguments with INTENT(OUT) occurs
270 2022-10-01 José Rui Faustino de Sousa <jrfsousa@gmail.com>
272 Backported from master:
273 2022-09-22 José Rui Faustino de Sousa <jrfsousa@gmail.com>
276 * trans-array.cc (gfc_is_reallocatable_lhs): Add select rank
277 temporary associate names as possible targets of automatic
280 2022-10-01 José Rui Faustino de Sousa <jrfsousa@gmail.com>
282 Backported from master:
283 2022-09-20 José Rui Faustino de Sousa <jrfsousa@gmail.com>
286 * trans-types.cc (create_fn_spec): Fix function attributes when
287 passing polymorphic pointers.
289 2022-09-29 Harald Anlauf <anlauf@gmx.de>
291 Backported from master:
292 2022-09-27 Harald Anlauf <anlauf@gmx.de>
295 * simplify.cc (gfc_simplify_unpack): Replace assert by condition
296 that terminates simplification when there are not enough elements
297 in the constructor of argument VECTOR.
299 2022-09-29 Harald Anlauf <anlauf@gmx.de>
301 Backported from master:
302 2022-09-22 Harald Anlauf <anlauf@gmx.de>
305 * trans-decl.cc (generate_coarray_sym_init): Skip symbol
306 if attr.associate_var.
308 2022-09-29 Harald Anlauf <anlauf@gmx.de>
310 Backported from master:
311 2022-09-20 Harald Anlauf <anlauf@gmx.de>
314 * expr.cc (gfc_simplify_expr): Avoid NULL pointer dereference.
316 2022-09-22 Harald Anlauf <anlauf@gmx.de>
318 Backported from master:
319 2022-09-20 Harald Anlauf <anlauf@gmx.de>
322 * simplify.cc (gfc_simplify_findloc): Do not try to simplify
323 intrinsic FINDLOC when the ARRAY argument has a NULL shape.
325 2022-09-16 Harald Anlauf <anlauf@gmx.de>
327 Backported from master:
328 2022-09-15 Harald Anlauf <anlauf@gmx.de>
331 * simplify.cc (gfc_simplify_pack): Check for NULL pointer dereferences
332 while walking through constructors (error recovery).
334 2022-09-16 José Rui Faustino de Sousa <jrfsousa@gmail.com>
336 Backported from master:
337 2022-09-03 José Rui Faustino de Sousa <jrfsousa@gmail.com>
340 * trans-expr.cc (trans_class_assignment): Add if clause to handle
341 derived type in the LHS.
343 2022-09-05 José Rui Faustino de Sousa <jrfsousa@gmail.com>
345 Backported from master:
346 2022-09-04 José Rui Faustino de Sousa <jrfsousa@gmail.com>
349 * trans-expr.cc (gfc_conv_procedure_call): Add handling of pointer
352 2022-08-30 Tobias Burnus <tobias@codesourcery.com>
354 Backported from master:
355 2022-08-25 Tobias Burnus <tobias@codesourcery.com>
357 * parse.cc (parse_omp_structured_block): When parsing strictly
358 structured blocks, issue an error if the end-directive comes
359 before the 'end block'.
361 2022-08-29 Jakub Jelinek <jakub@redhat.com>
363 Backported from master:
364 2022-08-26 Jakub Jelinek <jakub@redhat.com>
367 * trans-intrinsic.cc: Include realmpfr.h.
368 (conv_intrinsic_ieee_value): New function.
369 (gfc_conv_ieee_arithmetic_function): Handle ieee_value.
371 2022-08-29 Jakub Jelinek <jakub@redhat.com>
373 Backported from master:
374 2022-08-26 Jakub Jelinek <jakub@redhat.com>
377 * f95-lang.cc (gfc_init_builtin_functions): Initialize
379 * libgfortran.h (IEEE_OTHER_VALUE, IEEE_SIGNALING_NAN,
380 IEEE_QUIET_NAN, IEEE_NEGATIVE_INF, IEEE_NEGATIVE_NORMAL,
381 IEEE_NEGATIVE_DENORMAL, IEEE_NEGATIVE_SUBNORMAL,
382 IEEE_NEGATIVE_ZERO, IEEE_POSITIVE_ZERO, IEEE_POSITIVE_DENORMAL,
383 IEEE_POSITIVE_SUBNORMAL, IEEE_POSITIVE_NORMAL, IEEE_POSITIVE_INF):
385 * trans-intrinsic.cc (conv_intrinsic_ieee_class): New function.
386 (gfc_conv_ieee_arithmetic_function): Handle ieee_class.
388 2022-08-26 Harald Anlauf <anlauf@gmx.de>
390 Backported from master:
391 2022-08-24 Harald Anlauf <anlauf@gmx.de>
394 * simplify.cc (simplify_size): The size expression of an array cannot
395 be simplified if an error occurs while resolving the array spec.
397 2022-08-23 Tobias Burnus <tobias@codesourcery.com>
399 Backported from master:
400 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
403 * openmp.cc (gfc_match_omp_declare_simd): Accept module procedures.
405 2022-08-19 Release Manager
407 * GCC 12.2.0 released.
409 2022-07-26 Harald Anlauf <anlauf@gmx.de>
411 Backported from master:
412 2022-07-26 Harald Anlauf <anlauf@gmx.de>
415 * interface.cc (get_sym_storage_size): Array bounds and character
416 length can only be of integer type.
418 2022-07-20 Harald Anlauf <anlauf@gmx.de>
420 Backported from master:
421 2022-07-20 Harald Anlauf <anlauf@gmx.de>
424 * openmp.cc (gfc_match_iterator): Remove left-over code from
425 development that could lead to a crash on invalid input.
427 2022-07-16 Steve Kargl <kargl@gcc.gnu.org>
429 Backported from master:
430 2022-07-15 Steve Kargl <kargl@gcc.gnu.org>
433 * trans-decl.cc (gfc_generate_return): Do not generate conflicting
434 fake results for functions with no result variable under -ff2c.
436 2022-07-03 Harald Anlauf <anlauf@gmx.de>
438 Backported from master:
439 2022-06-30 Harald Anlauf <anlauf@gmx.de>
440 Steven G. Kargl <kargl@gcc.gnu.org>
446 * decl.cc (gfc_match_data_decl): Reject CLASS entity declaration
447 when it is given the PARAMETER attribute.
449 2022-07-03 Harald Anlauf <anlauf@gmx.de>
451 Backported from master:
452 2022-06-29 Harald Anlauf <anlauf@gmx.de>
453 Steven G. Kargl <kargl@gcc.gnu.org>
456 * simplify.cc (gfc_simplify_extends_type_of): Do not attempt to
457 simplify when one of the arguments is a CLASS variable that was
458 not properly declared.
460 2022-06-30 Harald Anlauf <anlauf@gmx.de>
462 Backported from master:
463 2022-06-26 Harald Anlauf <anlauf@gmx.de>
466 * decl.cc (variable_decl): Adjust upper bounds for explicit-shape
467 specs with constant bound expressions to ensure non-negative
470 2022-06-30 Harald Anlauf <anlauf@gmx.de>
472 Backported from master:
473 2022-06-26 Harald Anlauf <anlauf@gmx.de>
476 * simplify.cc (gfc_simplify_index): Replace old simplification
477 code by the equivalent of the runtime library implementation. Use
478 HOST_WIDE_INT instead of int for string index, length variables.
480 2022-06-30 Harald Anlauf <anlauf@gmx.de>
482 Backported from master:
483 2022-06-24 Harald Anlauf <anlauf@gmx.de>
486 * check.cc (gfc_check_unpack): Try to simplify MASK argument to
487 UNPACK so that checking of the VECTOR argument can work when MASK
490 2022-05-13 Harald Anlauf <anlauf@gmx.de>
492 Backported from master:
493 2022-05-11 Harald Anlauf <anlauf@gmx.de>
494 Steven G. Kargl <kargl@gcc.gnu.org>
497 * expr.cc (find_array_section): Correct logic to avoid NULL
498 pointer dereference on invalid array section.
500 2022-05-06 Release Manager
502 * GCC 12.1.0 released.
504 2022-05-02 Thomas Koenig <tkoenig@gcc.gnu.org>
506 Backported from master:
507 2022-04-29 Thomas Koenig <tkoenig@gcc.gnu.org>
509 * gfortran.texi: Fix exchanged period and letter.
511 2022-04-28 Thomas Koenig <tkoenig@gcc.gnu.org>
513 Backported from master:
514 2022-04-28 Thomas Koenig <tkoenig@gcc.gnu.org>
516 * gfortran.texi: Mention r16_ieee and r16_ibm.
517 * invoke.texi: Likewise.
519 2022-04-27 Mikael Morin <mikael@gcc.gnu.org>
523 * array.cc (compare_bounds): Use bool as return type.
524 Support non-constant expressions.
525 (gfc_compare_array_spec): Update call to compare_bounds.
527 2022-04-27 Mikael Morin <mikael@gcc.gnu.org>
531 * trans-array.cc (non_negative_strides_array_p): Inline variable
532 orig_decl and merge nested if conditions. Add condition to not
533 recurse if the next argument is the same as the current.
535 2022-04-25 Jakub Jelinek <jakub@redhat.com>
536 Thomas Schwinge <thomas@codesourcery.com>
539 * trans-openmp.cc (gfc_trans_oacc_construct): Wrap construct body
540 in an extra BIND_EXPR.
542 2022-04-24 Mikael Morin <mikael@gcc.gnu.org>
543 Jakub Jelinek <jakub@redhat.com>
546 * interface.cc (gfc_compare_derived_types): Support comparing
547 unlimited polymorphic fake symbols. Recursively compare class
548 descriptor types and virtual table types.
549 * resolve.cc (resolve_fl_derived): Add type to the types list
550 on unlimited polymorphic short-circuit return.
552 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
553 Richard Biener <rguenther@suse.de>
556 * trans.h (gfc_build_array_ref): Add non_negative_offset
558 * trans.cc (gfc_build_array_ref): Ditto. Use pointer arithmetic
559 if non_negative_offset is false.
560 * trans-expr.cc (gfc_conv_substring): Set flag in the call to
562 * trans-array.cc (gfc_get_cfi_dim_item,
563 gfc_conv_descriptor_dimension): Same.
564 (build_array_ref): Decide on whether to set the flag and update
566 (gfc_conv_scalarized_array_ref): Same. New argument tmp_array.
567 (gfc_conv_tmp_array_ref): Update call to
568 gfc_conv_scalarized_ref.
569 (non_negative_strides_array_p): New function.
571 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
574 * trans-array.cc (gfc_conv_expr_descriptor): Use
575 gfc_conv_tmp_array_ref.
577 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
580 * trans-io.cc: Add handling for the case where the array
581 is referenced using pointer arithmetic.
583 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
586 * trans-expr.cc: Pre-evaluate src and dest to variables
589 2022-04-21 Fritz Reese <foreese@gcc.gnu.org>
592 * trans-expr.cc (gfc_conv_union_initializer): Pass vec* by reference.
594 2022-04-13 Tobias Burnus <tobias@codesourcery.com>
597 * match.cc (match_exit_cycle): Handle missing OMP LOOP, DO and SIMD
598 directives in the EXIT/CYCLE diagnostic.
600 2022-04-10 Harald Anlauf <anlauf@gmx.de>
603 * array.cc (match_subscript): Reject assumed size coarray
604 specification with missing lower bound.
605 * resolve.cc (resolve_allocate_expr): Fix logic for checking
606 allocate-coshape-spec in ALLOCATE statement.
608 2022-04-05 Sandra Loosemore <sandra@codesourcery.com>
610 * trans-openmp.cc (gfc_split_omp_clauses): Fix mask for
611 EXEC_OMP_MASKED_TASKLOOP.
613 2022-04-05 Harald Anlauf <anlauf@gmx.de>
616 * arith.cc (eval_intrinsic): Avoid NULL pointer dereference.
617 (gfc_zero_size_array): Likewise.
619 2022-04-05 Harald Anlauf <anlauf@gmx.de>
620 Steven G. Kargl <kargl@gcc.gnu.org>
623 * intrinsic.cc (gfc_is_intrinsic): When a symbol refers to a
624 RECURSIVE procedure, it cannot be an INTRINSIC.
626 2022-03-30 Harald Anlauf <anlauf@gmx.de>
629 * check.cc (gfc_check_associated): Avoid NULL pointer dereference.
631 2022-03-29 Harald Anlauf <anlauf@gmx.de>
632 Steven G. Kargl <kargl@gcc.gnu.org>
635 * resolve.cc (resolve_elemental_actual): Avoid NULL pointer
638 2022-03-29 Harald Anlauf <anlauf@gmx.de>
641 * resolve.cc (resolve_structure_cons): Reject pointer assignments
642 of character with different lengths in structure constructor.
644 2022-03-25 Jakub Jelinek <jakub@redhat.com>
647 * trans-array.cc (gfc_conv_array_initializer): If TYPE_MAX_VALUE is
648 smaller than TYPE_MIN_VALUE (i.e. empty array), ignore the
649 initializer; if TYPE_MIN_VALUE is equal to TYPE_MAX_VALUE, use just
650 the TYPE_MIN_VALUE as index instead of RANGE_EXPR.
652 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
655 * scanner.cc (add_path_to_list): Don't append '/' to the
657 (open_included_file): Use '/' in concatenating path + file name.
658 * module.cc (gzopen_included_file_1): Likewise.
660 2022-03-22 Harald Anlauf <anlauf@gmx.de>
663 * simplify.cc (gfc_simplify_cshift): Ensure temporary holding
664 source array stride is initialized.
666 2022-03-19 Mikael Morin <mikael@gcc.gnu.org>
670 * parse.cc (parse_associate): Use a new distinct gfc_charlen if the
671 copied type has one whose length is not known to be constant.
672 * resolve.cc (resolve_assoc_var): Reset charlen if it’s shared with
673 the associate target regardless of the expression type.
674 Don’t reinitialize charlen if it’s deferred.
676 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
679 * trans-openmp.cc (gfc_omp_clause_copy_ctor, gfc_omp_clause_dtor):
680 Only privatize pointer for associate names.
682 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
685 * openmp.cc (resolve_omp_clauses): Improve associate-name diagnostic
686 for select type/rank.
688 2022-03-11 Tobias Burnus <tobias@codesourcery.com>
690 * trans-openmp.cc (gfc_trans_omp_clauses, gfc_omp_finish_clause):
691 Obtain size for mapping only if allocatable array is allocated.
693 2022-03-09 Harald Anlauf <anlauf@gmx.de>
696 * expr.cc (find_array_section): Avoid NULL pointer dereference on
697 invalid array section.
699 2022-03-09 Tobias Burnus <tobias@codesourcery.com>
701 * trans-intrinsic.cc (gfc_conv_intrinsic_sizeof): Fix CLASS handling.
703 2022-03-08 Tobias Burnus <tobias@codesourcery.com>
706 * trans-expr.cc (gfc_conv_gfc_desc_to_cfi_desc): Handle NULL
709 2022-03-08 Harald Anlauf <anlauf@gmx.de>
712 * frontend-passes.cc (optimize_minmaxloc): Do not attempt
713 frontend-optimization of MINLOC/MAXLOC for character arrays, as
714 there is no suitable code yet for inline expansion.
716 2022-03-07 Tobias Burnus <tobias@codesourcery.com>
720 * trans-expr.cc (conv_parent_component_references): Fix comment;
722 (gfc_maybe_dereference_var): Avoid d referencing a nonpointer.
724 2022-03-07 Tobias Burnus <tobias@codesourcery.com>
726 * array.cc (gfc_ref_dimen_size): Fix comment typo.
727 * dump-parse-tree.cc (gfc_dump_c_prototypes): Likewise.
728 * frontend-passes.cc (cfe_code): Likewise.
729 * gfortran.texi: Likewise.
730 * resolve.cc (generate_component_assignments): Likewise.
731 * simplify.cc (gfc_simplify_this_image): Likewise.
732 * trans-expr.cc (trans_scalar_class_assign,
733 gfc_maybe_dereference_var): Likewise.
734 * intrinsic.texi: Remove word duplication.
735 * invoke.texi: Likewise.
737 2022-03-07 Jakub Jelinek <jakub@redhat.com>
739 * trans-expr.cc: Fix up duplicated word issue in a comment.
740 * gfortran.h: Likewise.
741 * scanner.cc: Likewise.
743 2022-03-07 Martin Liska <mliska@suse.cz>
745 * intrinsic.cc (gfc_is_intrinsic): Remove asterisk from error
748 2022-03-07 Martin Liska <mliska@suse.cz>
751 * intrinsic.cc (gfc_is_intrinsic): Put
752 quote to a proper place.
754 2022-03-03 Kwok Cheung Yeung <kcy@codesourcery.com>
757 * openmp.cc (gfc_match_omp_detach): Move check for type of event
759 (resolve_omp_clauses) ...here. Also check that the event handle is
760 not an array, or an array access or structure element access.
762 2022-03-02 Harald Anlauf <anlauf@gmx.de>
765 * resolve.cc (resolve_structure_cons): Avoid NULL pointer
766 dereference when there is no valid component.
768 2022-02-24 Harald Anlauf <anlauf@gmx.de>
771 * dump-parse-tree.cc (show_code_node): Dump QUIET specifier when
773 * match.cc (gfc_match_stopcode): Implement parsing of F2018 QUIET
774 specifier. F2018 stopcodes may have non-default integer kind.
775 * resolve.cc (gfc_resolve_code): Add checks for QUIET argument.
776 * trans-stmt.cc (gfc_trans_stop): Pass QUIET specifier to call of
779 2022-02-22 Harald Anlauf <anlauf@gmx.de>
782 * resolve.cc (resolve_structure_cons): Skip shape check if shape
783 of constructor cannot be determined at compile time.
785 2022-02-20 Harald Anlauf <anlauf@gmx.de>
788 * data.cc (gfc_assign_data_value): If a variable in a data
789 statement has the POINTER attribute, check for allowed initial
790 data target that is compatible with pointer assignment.
791 * gfortran.h (IS_POINTER): New macro.
793 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
795 * trans-openmp.cc (gfc_trans_omp_depobj): Fix to alloc/ptr dummy
798 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
800 * trans-openmp.cc (gfc_trans_omp_clauses, gfc_trans_omp_depobj):
801 Depend on the proper addr, for ptr/alloc depend on pointee.
803 2022-02-14 Harald Anlauf <anlauf@gmx.de>
806 * expr.cc (find_array_section): Replace assertion by error
807 recovery when encountering bad array constructor.
809 2022-02-13 Mikael Morin <mikael@gcc.gnu.org>
812 * resolve.cc (resolve_assoc_var): Also create a new character
813 length for non-dummy associate targets.
814 * trans-stmt.cc (trans_associate_var): Initialize character length
815 even if no temporary is used for the associate variable.
817 2022-02-10 Roger Sayle <roger@nextmovesoftware.com>
818 Tobias Burnus <tobias@codesourcery.com>
820 * trans-common.cc (GFC_EQUIV_FMT): New macro respecting the
821 target's NO_DOT_IN_LABEL and NO_DOLLAR_IN_LABEL preferences.
822 (build_equiv_decl): Use GFC_EQUIV_FMT here.
824 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
827 * openmp.cc (resolve_omp_atomic): Defer extra-code assert after
830 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
832 * dump-parse-tree.cc (show_omp_clauses): Added OMP_LIST_HAS_DEVICE_ADDR
834 * gfortran.h: Added OMP_LIST_HAS_DEVICE_ADDR.
835 * openmp.cc (enum omp_mask2): Added OMP_CLAUSE_HAS_DEVICE_ADDR.
836 (gfc_match_omp_clauses): Parse HAS_DEVICE_ADDR clause.
837 (resolve_omp_clauses): Same.
838 * trans-openmp.cc (gfc_trans_omp_variable_list): Added
839 OMP_LIST_HAS_DEVICE_ADDR case.
840 (gfc_trans_omp_clauses): Firstprivatize of array descriptors.
842 2022-02-09 Harald Anlauf <anlauf@gmx.de>
845 * arith.cc (reduce_binary_ac): When reducing binary expressions,
846 try simplification. Handle case of empty constructor.
847 (reduce_binary_ca): Likewise.
849 2022-02-03 Harald Anlauf <anlauf@gmx.de>
852 * check.cc (gfc_calculate_transfer_sizes): Checks for case when
853 storage size of SOURCE is greater than zero while the storage size
854 of MOLD is zero and MOLD is an array shall not depend on SIZE.
856 2022-02-03 Jakub Jelinek <jakub@redhat.com>
859 * openmp.cc (is_scalar_intrinsic_expr): If must_be_var && conv_ok
860 and expr is conversion, verify it is a conversion from EXPR_VARIABLE
861 with non-NULL symtree. Check ->block->next before dereferencing it.
863 2022-02-01 Harald Anlauf <anlauf@gmx.de>
866 * simplify.cc (gfc_simplify_eoshift): Avoid NULL pointer
867 dereference when shape is not set.
869 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
872 * trans-array.cc (structure_alloc_comps): Prevent descriptor
873 stacking for non-array data; do not broadcast caf-tokens.
874 * trans-intrinsic.cc (conv_co_collective): Prevent generation
875 of unused descriptor.
877 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
880 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
883 * trans-array.cc (structure_alloc_comps): Prevent descriptor
884 stacking for non-array data; do not broadcast caf-tokens.
885 * trans-intrinsic.cc (conv_co_collective): Prevent generation
886 of unused descriptor.
888 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
891 * trans-array.cc (structure_alloc_comps): Prevent descriptor
892 stacking for non-array data; do not broadcast caf-tokens.
893 * trans-intrinsic.cc (conv_co_collective): Prevent generation
894 of unused descriptor.
896 2022-01-27 Harald Anlauf <anlauf@gmx.de>
899 * expr.cc (gfc_copy_expr): Convert internal representation of
900 string to wide char in value only for default character kind.
901 * target-memory.cc (interpret_array): Pass flag for conversion of
903 (gfc_target_interpret_expr): Likewise.
905 2022-01-27 Harald Anlauf <anlauf@gmx.de>
908 * trans-intrinsic.cc (conv_intrinsic_image_status): Convert result
909 to resulting (default) integer type.
910 (conv_intrinsic_team_number): Likewise.
911 (gfc_conv_intrinsic_popcnt_poppar): Likewise.
913 2022-01-25 Harald Anlauf <anlauf@gmx.de>
916 * check.cc (gfc_calculate_transfer_sizes): Fix checking of arrays
917 passed as MOLD argument to the TRANSFER intrinsic for having
920 2022-01-25 Harald Anlauf <anlauf@gmx.de>
923 * check.cc (gfc_check_norm2): Check that optional argument DIM is
925 (gfc_check_parity): Likewise.
927 2022-01-24 Jakub Jelinek <jakub@redhat.com>
929 * lang.opt (fconvert=): Add EnumSet property and mention also
930 r16_ieee and r16_ibm arguments.
931 (big-endian, little-endian, native, swap): Add Set(1) property.
932 (r16_ieee, r16_ibm): New EnumValue entries with Set(2) property.
933 * trans-types.cc (gfc_init_kinds): Emit gfc_fatal_error for
934 -fconvert=r16_ieee or -fconvert=r16_ibm when R16_IEEE <=> R16_IBM
935 conversions aren't supported.
937 2022-01-22 Harald Anlauf <anlauf@gmx.de>
940 * simplify.cc (gfc_simplify_transfer): Ensure that the result
941 typespec is set up for TRANSFER with MOLD of type CHARACTER
942 including character length even if the result is a zero-sized
945 2022-01-20 Sandra Loosemore <sandra@codesourcery.com>
949 * gfortran.h (struct gfc_namespace) Add omp_affinity_iterator
951 * dump-parse-tree.cc (show_iterator): Use it.
952 * openmp.cc (gfc_match_iterator): Likewise.
953 (resolve_omp_clauses): Likewise.
954 * trans-decl.cc (gfc_finish_var_decl): Likewise.
955 * trans-openmp.cc (handle_iterator): Likewise.
957 2022-01-18 Harald Anlauf <anlauf@gmx.de>
960 * array.cc (gfc_expand_constructor): Handle zero-sized array
963 2022-01-17 Martin Liska <mliska@suse.cz>
965 * check.cc (gfc_check_all_any): Rename .c names to .cc.
966 * class.cc (find_intrinsic_vtab): Likewise.
967 * config-lang.in: Likewise.
968 * cpp.cc (cpp_define_builtins): Likewise.
969 * data.cc (get_array_index): Likewise.
970 * decl.cc (match_clist_expr): Likewise.
971 (get_proc_name): Likewise.
972 (gfc_verify_c_interop_param): Likewise.
973 (gfc_get_pdt_instance): Likewise.
974 (gfc_match_formal_arglist): Likewise.
975 (gfc_get_type_attr_spec): Likewise.
976 * dependency.cc: Likewise.
977 * error.cc (gfc_format_decoder): Likewise.
978 * expr.cc (check_restricted): Likewise.
979 (gfc_build_default_init_expr): Likewise.
980 * f95-lang.cc: Likewise.
981 * gfc-internals.texi: Likewise.
982 * gfortran.h (enum match): Likewise.
983 (enum procedure_type): Likewise.
984 (enum oacc_routine_lop): Likewise.
985 (gfc_get_pdt_instance): Likewise.
986 (gfc_end_source_files): Likewise.
987 (gfc_mpz_set_hwi): Likewise.
988 (gfc_get_option_string): Likewise.
989 (gfc_find_sym_in_expr): Likewise.
990 (gfc_errors_to_warnings): Likewise.
991 (gfc_real_4_kind): Likewise.
992 (gfc_free_finalizer): Likewise.
993 (gfc_sym_get_dummy_args): Likewise.
994 (gfc_check_intrinsic_standard): Likewise.
995 (gfc_free_case_list): Likewise.
996 (gfc_resolve_oacc_routines): Likewise.
997 (gfc_check_vardef_context): Likewise.
998 (gfc_free_association_list): Likewise.
999 (gfc_implicit_pure_function): Likewise.
1000 (gfc_ref_dimen_size): Likewise.
1001 (gfc_compare_actual_formal): Likewise.
1002 (gfc_resolve_wait): Likewise.
1003 (gfc_dt_upper_string): Likewise.
1004 (gfc_generate_module_code): Likewise.
1005 (gfc_delete_bbt): Likewise.
1007 (gfc_build_block_ns): Likewise.
1008 (gfc_dep_difference): Likewise.
1009 (gfc_invalid_null_arg): Likewise.
1010 (gfc_is_finalizable): Likewise.
1011 (gfc_fix_implicit_pure): Likewise.
1012 (gfc_is_size_zero_array): Likewise.
1013 (gfc_is_reallocatable_lhs): Likewise.
1014 * gfortranspec.cc: Likewise.
1015 * interface.cc (compare_actual_expr): Likewise.
1016 * intrinsic.cc (add_functions): Likewise.
1017 * iresolve.cc (gfc_resolve_matmul): Likewise.
1018 (gfc_resolve_alarm_sub): Likewise.
1019 * iso-c-binding.def: Likewise.
1020 * lang-specs.h: Likewise.
1021 * libgfortran.h (GFC_STDERR_UNIT_NUMBER): Likewise.
1022 * match.cc (gfc_match_label): Likewise.
1023 (gfc_match_symbol): Likewise.
1024 (match_derived_type_spec): Likewise.
1025 (copy_ts_from_selector_to_associate): Likewise.
1026 * match.h (gfc_match_call): Likewise.
1027 (gfc_get_common): Likewise.
1028 (gfc_match_omp_end_single): Likewise.
1029 (gfc_match_volatile): Likewise.
1030 (gfc_match_bind_c): Likewise.
1031 (gfc_match_literal_constant): Likewise.
1032 (gfc_match_init_expr): Likewise.
1033 (gfc_match_array_constructor): Likewise.
1034 (gfc_match_end_interface): Likewise.
1035 (gfc_match_print): Likewise.
1036 (gfc_match_expr): Likewise.
1037 * matchexp.cc (next_operator): Likewise.
1038 * mathbuiltins.def: Likewise.
1039 * module.cc (free_true_name): Likewise.
1040 * openmp.cc (gfc_resolve_omp_parallel_blocks): Likewise.
1041 (gfc_omp_save_and_clear_state): Likewise.
1042 * parse.cc (parse_union): Likewise.
1043 (set_syms_host_assoc): Likewise.
1044 * resolve.cc (resolve_actual_arglist): Likewise.
1045 (resolve_elemental_actual): Likewise.
1046 (check_host_association): Likewise.
1047 (resolve_typebound_function): Likewise.
1048 (resolve_typebound_subroutine): Likewise.
1049 (gfc_resolve_expr): Likewise.
1050 (resolve_assoc_var): Likewise.
1051 (resolve_typebound_procedures): Likewise.
1052 (resolve_equivalence_derived): Likewise.
1053 * simplify.cc (simplify_bound): Likewise.
1054 * symbol.cc (gfc_set_default_type): Likewise.
1055 (gfc_add_ext_attribute): Likewise.
1056 * target-memory.cc (gfc_target_interpret_expr): Likewise.
1057 * target-memory.h (gfc_target_interpret_expr): Likewise.
1058 * trans-array.cc (gfc_get_cfi_dim_sm): Likewise.
1059 (gfc_conv_shift_descriptor_lbound): Likewise.
1060 (gfc_could_be_alias): Likewise.
1061 (gfc_get_dataptr_offset): Likewise.
1062 * trans-const.cc: Likewise.
1063 * trans-decl.cc (trans_function_start): Likewise.
1064 (gfc_trans_deferred_vars): Likewise.
1065 (generate_local_decl): Likewise.
1066 (gfc_generate_function_code): Likewise.
1067 * trans-expr.cc (gfc_vptr_size_get): Likewise.
1068 (gfc_trans_class_array_init_assign): Likewise.
1069 (POWI_TABLE_SIZE): Likewise.
1070 (gfc_conv_procedure_call): Likewise.
1071 (gfc_trans_arrayfunc_assign): Likewise.
1072 * trans-intrinsic.cc (gfc_conv_intrinsic_len): Likewise.
1073 (gfc_conv_intrinsic_loc): Likewise.
1074 (conv_intrinsic_event_query): Likewise.
1075 * trans-io.cc (gfc_build_st_parameter): Likewise.
1076 * trans-openmp.cc (gfc_omp_check_optional_argument): Likewise.
1077 (gfc_omp_unshare_expr_r): Likewise.
1078 (gfc_trans_omp_array_section): Likewise.
1079 (gfc_trans_omp_clauses): Likewise.
1080 * trans-stmt.cc (trans_associate_var): Likewise.
1081 (gfc_trans_deallocate): Likewise.
1082 * trans-stmt.h (gfc_trans_class_init_assign): Likewise.
1083 (gfc_trans_deallocate): Likewise.
1084 (gfc_trans_oacc_declare): Likewise.
1085 * trans-types.cc: Likewise.
1086 * trans-types.h (enum gfc_packed): Likewise.
1087 * trans.cc (N_): Likewise.
1088 (trans_code): Likewise.
1089 * trans.h (gfc_build_compare_string): Likewise.
1090 (gfc_conv_expr_type): Likewise.
1091 (gfc_trans_deferred_vars): Likewise.
1092 (getdecls): Likewise.
1093 (gfc_get_array_descr_info): Likewise.
1094 (gfc_omp_firstprivatize_type_sizes): Likewise.
1097 2022-01-17 Martin Liska <mliska@suse.cz>
1099 * arith.c: Moved to...
1100 * arith.cc: ...here.
1101 * array.c: Moved to...
1102 * array.cc: ...here.
1103 * bbt.c: Moved to...
1105 * check.c: Moved to...
1106 * check.cc: ...here.
1107 * class.c: Moved to...
1108 * class.cc: ...here.
1109 * constructor.c: Moved to...
1110 * constructor.cc: ...here.
1111 * convert.c: Moved to...
1112 * convert.cc: ...here.
1113 * cpp.c: Moved to...
1115 * data.c: Moved to...
1117 * decl.c: Moved to...
1119 * dependency.c: Moved to...
1120 * dependency.cc: ...here.
1121 * dump-parse-tree.c: Moved to...
1122 * dump-parse-tree.cc: ...here.
1123 * error.c: Moved to...
1124 * error.cc: ...here.
1125 * expr.c: Moved to...
1127 * f95-lang.c: Moved to...
1128 * f95-lang.cc: ...here.
1129 * frontend-passes.c: Moved to...
1130 * frontend-passes.cc: ...here.
1131 * gfortranspec.c: Moved to...
1132 * gfortranspec.cc: ...here.
1133 * interface.c: Moved to...
1134 * interface.cc: ...here.
1135 * intrinsic.c: Moved to...
1136 * intrinsic.cc: ...here.
1139 * iresolve.c: Moved to...
1140 * iresolve.cc: ...here.
1141 * match.c: Moved to...
1142 * match.cc: ...here.
1143 * matchexp.c: Moved to...
1144 * matchexp.cc: ...here.
1145 * misc.c: Moved to...
1147 * module.c: Moved to...
1148 * module.cc: ...here.
1149 * openmp.c: Moved to...
1150 * openmp.cc: ...here.
1151 * options.c: Moved to...
1152 * options.cc: ...here.
1153 * parse.c: Moved to...
1154 * parse.cc: ...here.
1155 * primary.c: Moved to...
1156 * primary.cc: ...here.
1157 * resolve.c: Moved to...
1158 * resolve.cc: ...here.
1159 * scanner.c: Moved to...
1160 * scanner.cc: ...here.
1161 * simplify.c: Moved to...
1162 * simplify.cc: ...here.
1165 * symbol.c: Moved to...
1166 * symbol.cc: ...here.
1167 * target-memory.c: Moved to...
1168 * target-memory.cc: ...here.
1169 * trans-array.c: Moved to...
1170 * trans-array.cc: ...here.
1171 * trans-common.c: Moved to...
1172 * trans-common.cc: ...here.
1173 * trans-const.c: Moved to...
1174 * trans-const.cc: ...here.
1175 * trans-decl.c: Moved to...
1176 * trans-decl.cc: ...here.
1177 * trans-expr.c: Moved to...
1178 * trans-expr.cc: ...here.
1179 * trans-intrinsic.c: Moved to...
1180 * trans-intrinsic.cc: ...here.
1181 * trans-io.c: Moved to...
1182 * trans-io.cc: ...here.
1183 * trans-openmp.c: Moved to...
1184 * trans-openmp.cc: ...here.
1185 * trans-stmt.c: Moved to...
1186 * trans-stmt.cc: ...here.
1187 * trans-types.c: Moved to...
1188 * trans-types.cc: ...here.
1189 * trans.c: Moved to...
1190 * trans.cc: ...here.
1192 2022-01-17 Andrew Stubbs <ams@codesourcery.com>
1194 * openmp.c (gfc_match_omp_requires): Don't "sorry" dynamic_allocators.
1196 2022-01-15 Harald Anlauf <anlauf@gmx.de>
1199 * target-memory.c (gfc_interpret_character): Result length is
1200 in bytes and thus depends on the character kind.
1201 * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Compute correct
1202 string length for the result of the TRANSFER intrinsic and for
1203 temporaries for the different character kinds.
1205 2022-01-14 Harald Anlauf <anlauf@gmx.de>
1208 * intrinsic.c: Do not check formal argument type when checking
1209 arguments of intrinsics for alternate return specifiers.
1211 2022-01-14 Harald Anlauf <anlauf@gmx.de>
1214 * expr.c (gfc_simplify_expr): Adjust logic for when to scalarize a
1215 call of an intrinsic which may have been overloaded.
1217 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
1219 * dump-parse-tree.c (show_omp_clauses): Handle OMP_LIST_ALLOCATE.
1220 * gfortran.h (OMP_LIST_ALLOCATE): New enum value.
1221 * openmp.c (enum omp_mask1): Add OMP_CLAUSE_ALLOCATE.
1222 (gfc_match_omp_clauses): Handle OMP_CLAUSE_ALLOCATE
1223 (OMP_PARALLEL_CLAUSES, OMP_DO_CLAUSES, OMP_SECTIONS_CLAUSES)
1224 (OMP_TASK_CLAUSES, OMP_TASKLOOP_CLAUSES, OMP_TARGET_CLAUSES)
1225 (OMP_TEAMS_CLAUSES, OMP_DISTRIBUTE_CLAUSES)
1226 (OMP_SINGLE_CLAUSES): Add OMP_CLAUSE_ALLOCATE.
1227 (OMP_TASKGROUP_CLAUSES): New.
1228 (gfc_match_omp_taskgroup): Use OMP_TASKGROUP_CLAUSES instead of
1229 OMP_CLAUSE_TASK_REDUCTION.
1230 (resolve_omp_clauses): Handle OMP_LIST_ALLOCATE.
1231 (resolve_omp_do): Avoid warning when loop iteration variable is
1233 * trans-openmp.c (gfc_trans_omp_clauses): Handle translation of
1235 (gfc_split_omp_clauses): Update for OMP_LIST_ALLOCATE.
1237 2022-01-13 Harald Anlauf <anlauf@gmx.de>
1240 * primary.c (gfc_match_structure_constructor): Recover from errors
1241 that occurred while checking for a valid structure constructor in
1244 2022-01-11 Thomas Koenig <tkoenig@gcc.gnu.org>
1246 * libgfortran.h (unit_convert): Add flags.
1248 2022-01-11 Jakub Jelinek <jakub@redhat.com>
1250 * trans-types.c (gfc_init_kinds): When setting abi_kind to 17, if not
1251 targetting glibc 2.32 or later and -fbuilding-libgfortran, set
1252 gfc_real16_is_float128 and c_float128 in gfc_real_kinds.
1253 (gfc_build_real_type): Don't set c_long_double if c_float128 is
1255 * trans-intrinsic.c (builtin_decl_for_precision): Don't use
1256 long_double_built_in if gfc_real16_is_float128 and
1257 long_double_type_node == gfc_float128_type_node.
1258 * lang.opt (fbuilding-libgfortran): New undocumented option.
1260 2022-01-11 Jakub Jelinek <jakub@redhat.com>
1262 * trans-intrinsic.c (gfc_get_intrinsic_lib_fndecl): Use
1265 2022-01-11 Jakub Jelinek <jakub@redhat.com>
1267 * trans-io.c (transfer_array_desc): Pass abi kind instead of kind
1270 2022-01-11 Jakub Jelinek <jakub@redhat.com>
1272 * trans-io.c (transfer_namelist_element): Use gfc_type_abi_kind,
1274 (transfer_expr): Use gfc_type_abi_kind, use *REAL128* APIs even
1277 2022-01-11 Jakub Jelinek <jakub@redhat.com>
1279 * gfortran.h (gfc_real_info): Add abi_kind member.
1280 (gfc_type_abi_kind): Declare.
1281 * trans-types.c (gfc_init_kinds): Initialize abi_kind.
1282 * intrinsic.c (gfc_type_abi_kind): New function.
1283 (conv_name): Use it.
1284 * iresolve.c (resolve_transformational, gfc_resolve_abs,
1285 gfc_resolve_char_achar, gfc_resolve_acos, gfc_resolve_acosh,
1286 gfc_resolve_aimag, gfc_resolve_and, gfc_resolve_aint, gfc_resolve_all,
1287 gfc_resolve_anint, gfc_resolve_any, gfc_resolve_asin,
1288 gfc_resolve_asinh, gfc_resolve_atan, gfc_resolve_atanh,
1289 gfc_resolve_atan2, gfc_resolve_bessel_n2, gfc_resolve_ceiling,
1290 gfc_resolve_cmplx, gfc_resolve_complex, gfc_resolve_cos,
1291 gfc_resolve_cosh, gfc_resolve_count, gfc_resolve_dble,
1292 gfc_resolve_dim, gfc_resolve_dot_product, gfc_resolve_dprod,
1293 gfc_resolve_exp, gfc_resolve_floor, gfc_resolve_hypot,
1294 gfc_resolve_int, gfc_resolve_int2, gfc_resolve_int8, gfc_resolve_long,
1295 gfc_resolve_log, gfc_resolve_log10, gfc_resolve_logical,
1296 gfc_resolve_matmul, gfc_resolve_minmax, gfc_resolve_maxloc,
1297 gfc_resolve_findloc, gfc_resolve_maxval, gfc_resolve_merge,
1298 gfc_resolve_minloc, gfc_resolve_minval, gfc_resolve_mod,
1299 gfc_resolve_modulo, gfc_resolve_nearest, gfc_resolve_or,
1300 gfc_resolve_real, gfc_resolve_realpart, gfc_resolve_reshape,
1301 gfc_resolve_sign, gfc_resolve_sin, gfc_resolve_sinh, gfc_resolve_sqrt,
1302 gfc_resolve_tan, gfc_resolve_tanh, gfc_resolve_transpose,
1303 gfc_resolve_trigd, gfc_resolve_xor, gfc_resolve_random_number):
1305 * trans-decl.c (gfc_build_intrinsic_function_decls): Likewise.
1307 2022-01-10 Paul Thomas <pault@gcc.gnu.org>
1310 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Allow unlimited
1311 polymorphic actual argument passed to assumed type formal.
1313 2022-01-09 Harald Anlauf <anlauf@gmx.de>
1316 * simplify.c (gfc_simplify_maskr): Check validity of argument 'I'
1318 (gfc_simplify_maskl): Likewise.
1320 2022-01-09 Harald Anlauf <anlauf@gmx.de>
1323 * expr.c (gfc_check_pointer_assign): For pointer initialization
1324 targets, check that subscripts and substring indices in
1325 specifications are constant expressions.
1327 2022-01-09 Mikael Morin <mikael@gcc.gnu.org>
1330 * trans-array.c (arg_evaluated_for_scalarization): Add MASKL, MASKR,
1331 SCAN and VERIFY to the list of intrinsics whose KIND argument is to be
1334 2022-01-07 Sandra Loosemore <sandra@codesourcery.com>
1337 * trans-intrinsic.c (gfc_conv_intrinsic_size): Make size_var
1338 actually be a variable and fix surrounding code.
1340 2022-01-06 Steve Kargl <kargl@gcc.gnu.org>
1341 Sandra Loosemore <sandra@codesourcery.com>
1344 * interface.c (argument_rank_mismatch): Replace incorrect assertion
1347 2022-01-05 Sandra Loosemore <sandra@codesourcery.com>
1350 * decl.c (gfc_match_char_spec): Suppress errors around call
1351 to gfc_reduce_init_expr.
1352 * error.c (gfc_query_suppress_errors): New.
1353 * gfortran.h (gfc_query_suppress_errors): Declare.
1354 * symbol.c (gfc_set_default_type): Check gfc_query_suppress_errors.
1356 2022-01-03 Sandra Loosemore <sandra@codesourcery.com>
1359 * expr.c (gfc_is_simply_contiguous): Make it smarter about
1361 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Do not generate
1362 copy loops for array expressions that are not "variables" (lvalues).
1364 2022-01-03 Jakub Jelinek <jakub@redhat.com>
1366 * gfortranspec.c (lang_specific_driver): Update copyright notice
1368 * gfc-internals.texi: Bump @copying's copyright year.
1369 * gfortran.texi: Ditto.
1370 * intrinsic.texi: Ditto.
1371 * invoke.texi: Ditto.
1374 Copyright (C) 2022 Free Software Foundation, Inc.
1376 Copying and distribution of this file, with or without modification,
1377 are permitted in any medium without royalty provided the copyright
1378 notice and this notice are preserved.