1 2022-03-19 Tobias Burnus <tobias@codesourcery.com>
3 Backported from master:
4 2022-03-07 Tobias Burnus <tobias@codesourcery.com>
8 * trans-expr.c (conv_parent_component_references): Fix comment;
10 (gfc_maybe_dereference_var): Avoid d referencing a nonpointer.
12 2022-03-17 Michael Meissner <meissner@linux.ibm.com>
15 * trans-intrinsic.c (build_round_expr): If int type is larger than
16 long long, do the round and convert to the integer type. Do not
17 try to find a floating point type the exact size of the integer
18 type. Backport patch from 2021-04-22 on the trunk.
20 2022-03-13 Harald Anlauf <anlauf@gmx.de>
22 Backported from master:
23 2022-03-08 Harald Anlauf <anlauf@gmx.de>
26 * frontend-passes.c (optimize_minmaxloc): Do not attempt
27 frontend-optimization of MINLOC/MAXLOC for character arrays, as
28 there is no suitable code yet for inline expansion.
30 2022-02-23 Harald Anlauf <anlauf@gmx.de>
32 Backported from master:
33 2022-02-22 Harald Anlauf <anlauf@gmx.de>
36 * resolve.c (resolve_structure_cons): Skip shape check if shape
37 of constructor cannot be determined at compile time.
39 2022-02-20 Harald Anlauf <anlauf@gmx.de>
41 Backported from master:
42 2022-02-09 Harald Anlauf <anlauf@gmx.de>
45 * arith.c (reduce_binary_ac): When reducing binary expressions,
46 try simplification. Handle case of empty constructor.
47 (reduce_binary_ca): Likewise.
49 2022-02-16 Harald Anlauf <anlauf@gmx.de>
51 Backported from master:
52 2022-02-14 Harald Anlauf <anlauf@gmx.de>
55 * expr.c (find_array_section): Replace assertion by error
56 recovery when encountering bad array constructor.
58 2022-02-14 Andre Vehreschild <vehre@gcc.gnu.org>
62 * trans-intrinsic.c (conv_co_collective): Check stat for null ptr
63 before dereferrencing.
65 2022-02-14 Andre Vehreschild <vehre@gcc.gnu.org>
68 Backported from master.
69 * trans-array.c (structure_alloc_comps): Prevent descriptor
70 stacking for non-array data; do not broadcast caf-tokens.
71 * trans-intrinsic.c (conv_co_collective): Prevent generation
74 2022-02-04 Harald Anlauf <anlauf@gmx.de>
76 Backported from master:
77 2022-02-03 Harald Anlauf <anlauf@gmx.de>
80 * check.c (gfc_calculate_transfer_sizes): Checks for case when
81 storage size of SOURCE is greater than zero while the storage size
82 of MOLD is zero and MOLD is an array shall not depend on SIZE.
84 2022-02-02 Harald Anlauf <anlauf@gmx.de>
86 Backported from master:
87 2022-02-01 Harald Anlauf <anlauf@gmx.de>
90 * simplify.c (gfc_simplify_eoshift): Avoid NULL pointer
91 dereference when shape is not set.
93 2022-01-26 Harald Anlauf <anlauf@gmx.de>
95 Backported from master:
96 2022-01-22 Harald Anlauf <anlauf@gmx.de>
99 * simplify.c (gfc_simplify_transfer): Ensure that the result
100 typespec is set up for TRANSFER with MOLD of type CHARACTER
101 including character length even if the result is a zero-sized
104 2022-01-26 Harald Anlauf <anlauf@gmx.de>
106 Backported from master:
107 2022-01-25 Harald Anlauf <anlauf@gmx.de>
110 * check.c (gfc_check_norm2): Check that optional argument DIM is
112 (gfc_check_parity): Likewise.
114 2022-01-26 Harald Anlauf <anlauf@gmx.de>
116 Backported from master:
117 2022-01-25 Harald Anlauf <anlauf@gmx.de>
120 * check.c (gfc_calculate_transfer_sizes): Fix checking of arrays
121 passed as MOLD argument to the TRANSFER intrinsic for having
124 2022-01-23 Harald Anlauf <anlauf@gmx.de>
126 Backported from master:
127 2022-01-15 Harald Anlauf <anlauf@gmx.de>
130 * target-memory.c (gfc_interpret_character): Result length is
131 in bytes and thus depends on the character kind.
132 * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Compute correct
133 string length for the result of the TRANSFER intrinsic and for
134 temporaries for the different character kinds.
136 2022-01-20 Harald Anlauf <anlauf@gmx.de>
138 Backported from master:
139 2022-01-18 Harald Anlauf <anlauf@gmx.de>
142 * array.c (gfc_expand_constructor): Handle zero-sized array
145 2022-01-17 Mikael Morin <mikael@gcc.gnu.org>
147 Backported from master:
148 2022-01-09 Mikael Morin <mikael@gcc.gnu.org>
151 * trans-array.c (arg_evaluated_for_scalarization): Add MASKL, MASKR,
152 SCAN and VERIFY to the list of intrinsics whose KIND argument is to be
155 2022-01-16 Mikael Morin <mikael@gcc.gnu.org>
157 Backported from master:
158 2022-01-09 Mikael Morin <mikael@gcc.gnu.org>
161 * trans-array.c (arg_evaluated_for_scalarization): Add MASKL, MASKR,
162 SCAN and VERIFY to the list of intrinsics whose KIND argument is to be
165 2022-01-16 Mikael Morin <mikael@gcc.gnu.org>
167 Backported from master:
168 2022-01-16 Mikael Morin <mikael@gcc.gnu.org>
172 * trans-array.c (arg_evaluated_for_scalarization): Handle keyword and
173 non-keyword arguments separatedly. Adapt the expected argument index
174 for KIND to each intrinsic in the non-keyword case.
176 2022-01-16 Harald Anlauf <anlauf@gmx.de>
178 Backported from master:
179 2022-01-14 Harald Anlauf <anlauf@gmx.de>
182 * expr.c (gfc_simplify_expr): Adjust logic for when to scalarize a
183 call of an intrinsic which may have been overloaded.
185 2022-01-16 Harald Anlauf <anlauf@gmx.de>
187 Backported from master:
188 2022-01-13 Harald Anlauf <anlauf@gmx.de>
191 * primary.c (gfc_match_structure_constructor): Recover from errors
192 that occurred while checking for a valid structure constructor in
195 2022-01-15 Harald Anlauf <anlauf@gmx.de>
197 Backported from master:
198 2022-01-09 Harald Anlauf <anlauf@gmx.de>
201 * expr.c (gfc_check_pointer_assign): For pointer initialization
202 targets, check that subscripts and substring indices in
203 specifications are constant expressions.
205 2022-01-15 Harald Anlauf <anlauf@gmx.de>
207 Backported from master:
208 2022-01-09 Harald Anlauf <anlauf@gmx.de>
211 * simplify.c (gfc_simplify_maskr): Check validity of argument 'I'
213 (gfc_simplify_maskl): Likewise.
215 2022-01-02 Harald Anlauf <anlauf@gmx.de>
217 Backported from master:
218 2021-12-29 Harald Anlauf <anlauf@gmx.de>
221 * expr.c (gfc_get_variable_expr): Avoid NULL pointer dereferences
222 during handling of errors with invalid uses of CLASS variables.
223 * match.c (select_type_set_tmp): Likewise.
224 * primary.c (gfc_match_varspec): Likewise.
225 * resolve.c (resolve_variable): Likewise.
226 (resolve_select_type): Likewise.
228 2021-12-27 Harald Anlauf <anlauf@gmx.de>
230 Backported from master:
231 2021-12-22 Harald Anlauf <anlauf@gmx.de>
234 * match.c (match_case_selector): Reject expressions in CASE
235 selector which are not scalar.
237 2021-12-27 Harald Anlauf <anlauf@gmx.de>
239 Backported from master:
240 2021-12-22 Harald Anlauf <anlauf@gmx.de>
243 * check.c (is_c_interoperable): A BOZ literal constant is not
246 2021-12-27 Harald Anlauf <anlauf@gmx.de>
248 Backported from master:
249 2021-11-18 Harald Anlauf <anlauf@gmx.de>
250 Steven G. Kargl <kargl@gcc.gnu.org>
253 * check.c (is_c_interoperable): Reject NULL() as it is not
256 2021-12-19 Harald Anlauf <anlauf@gmx.de>
258 Backported from master:
259 2021-12-10 Harald Anlauf <anlauf@gmx.de>
262 * check.c (variable_check): Replace previous check of procedure
263 dummy arguments with INTENT(IN) attribute when passed to intrinsic
264 procedures by gfc_check_vardef_context.
265 * expr.c (gfc_check_vardef_context): Correct check of INTENT(IN)
266 dummy arguments for the case of sub-components of a CLASS pointer.
268 2021-12-19 Harald Anlauf <anlauf@gmx.de>
270 Backported from master:
271 2021-12-18 Harald Anlauf <anlauf@gmx.de>
274 * check.c (gfc_check_sizeof): Reject BOZ type argument.
276 2021-12-15 Harald Anlauf <anlauf@gmx.de>
278 Backported from master:
279 2021-12-14 Harald Anlauf <anlauf@gmx.de>
282 * frontend-passes.c (doloop_code): Prevent NULL pointer
283 dereference when checking for passing a do-loop variable to a
284 contained procedure with an interface mismatch.
286 2021-12-15 Harald Anlauf <anlauf@gmx.de>
288 Backported from master:
289 2021-12-14 Harald Anlauf <anlauf@gmx.de>
293 * frontend-passes.c (doloop_contained_procedure_code): Add several
294 checks to prevent NULL pointer dereferences on valid and invalid
295 code called within do-loops.
297 2021-12-12 Harald Anlauf <anlauf@gmx.de>
299 Backported from master:
300 2021-12-11 Harald Anlauf <anlauf@gmx.de>
303 * resolve.c (resolve_fl_procedure): Do not access CLASS components
304 before class container has been built.
306 2021-12-11 Harald Anlauf <anlauf@gmx.de>
308 Backported from master:
309 2021-12-07 Harald Anlauf <anlauf@gmx.de>
312 * array.c (gfc_ref_dimen_size): Do not generate internal error on
313 failed simplification of stride expression; just return failure.
315 2021-12-10 Harald Anlauf <anlauf@gmx.de>
317 Backported from master:
318 2021-12-08 Harald Anlauf <anlauf@gmx.de>
321 * array.c (spec_dimen_size): Fix simplification of SHAPE:
322 dimensions must be non-negative.
324 2021-12-09 Harald Anlauf <anlauf@gmx.de>
326 Backported from master:
327 2021-12-08 Harald Anlauf <anlauf@gmx.de>
330 * symbol.c (gfc_sym_get_dummy_args): Catch NULL pointer
333 2021-12-08 Harald Anlauf <anlauf@gmx.de>
335 Backported from master:
336 2021-12-07 Harald Anlauf <anlauf@gmx.de>
339 * match.c (match_case_selector): Check type of upper bound in case
342 2021-12-08 Harald Anlauf <anlauf@gmx.de>
344 Backported from master:
345 2021-12-07 Harald Anlauf <anlauf@gmx.de>
348 * frontend-passes.c (do_subscript): Ensure that array bounds are
349 of type INTEGER before performing checks on array subscripts.
351 2021-12-04 Harald Anlauf <anlauf@gmx.de>
353 Backported from master:
354 2021-11-30 Harald Anlauf <anlauf@gmx.de>
357 * array.c (expand_constructor): When encountering a constant array
358 expression or array section within a constructor, simplify it to
359 enable better expansion.
361 2021-12-04 Harald Anlauf <anlauf@gmx.de>
363 Backported from master:
364 2021-10-14 Harald Anlauf <anlauf@gmx.de>
367 * simplify.c (gfc_simplify_reshape): Replace assert by error
368 message for negative elements in SHAPE array.
370 2021-12-04 Harald Anlauf <anlauf@gmx.de>
372 Backported from master:
373 2021-11-26 Harald Anlauf <anlauf@gmx.de>
376 * check.c (gfc_check_reshape): Improve check of size of source
377 array for the RESHAPE intrinsic against the given shape when pad
378 is not given, and shape is a parameter. Try other simplifications
381 2021-12-04 Harald Anlauf <anlauf@gmx.de>
383 Backported from master:
384 2021-11-30 Harald Anlauf <anlauf@gmx.de>
387 * simplify.c (simplify_minmaxloc_nodim): Avoid NULL pointer
388 dereference when shape is not set.
390 2021-12-04 Harald Anlauf <anlauf@gmx.de>
392 Backported from master:
393 2021-12-03 Harald Anlauf <anlauf@gmx.de>
394 Steven G. Kargl <kargl@gcc.gnu.org>
397 * array.c (match_array_element_spec): Try to simplify array
398 element specifications to improve early checking.
399 * expr.c (gfc_try_simplify_expr): New. Try simplification of an
400 expression via gfc_simplify_expr. When an error occurs, roll
402 * gfortran.h (gfc_try_simplify_expr): Declare it.
404 2021-11-29 Jakub Jelinek <jakub@redhat.com>
406 Backported from master:
407 2021-11-21 Jakub Jelinek <jakub@redhat.com>
410 * trans-types.c (gfc_get_array_descr_info): Use DW_OP_deref_size 1
411 instead of DW_OP_deref for DW_AT_rank.
413 2021-11-24 Harald Anlauf <anlauf@gmx.de>
415 Backported from master:
416 2021-11-23 Harald Anlauf <anlauf@gmx.de>
419 * simplify.c (simplify_bound): Do not try to simplify
420 LBOUND/UBOUND for arrays with POINTER or ALLOCATABLE attribute.
422 2021-11-24 Harald Anlauf <anlauf@gmx.de>
424 Backported from master:
425 2021-11-23 Harald Anlauf <anlauf@gmx.de>
429 * trans-array.c (arg_evaluated_for_scalarization): Add LEN_TRIM to
430 list of intrinsics for which an optional KIND argument needs to be
431 removed before scalarization.
433 2021-11-22 Harald Anlauf <anlauf@gmx.de>
435 Backported from master:
436 2021-11-21 Harald Anlauf <anlauf@gmx.de>
437 Steven G. Kargl <kargl@gcc.gnu.org>
440 * trans-intrinsic.c (gfc_lookup_intrinsic): Helper function for
441 looking up gfortran builtin intrinsics.
442 (gfc_conv_intrinsic_atrigd): Use it.
443 (gfc_conv_intrinsic_cotan): Likewise.
444 (gfc_conv_intrinsic_cotand): Likewise.
445 (gfc_conv_intrinsic_atan2d): Likewise.
447 2021-11-16 Mikael Morin <mikael@gcc.gnu.org>
449 Backported from master:
450 2021-11-12 Mikael Morin <mikael@gcc.gnu.org>
453 * intrinsic.c (add_sym_4ind): Remove.
454 (add_functions): Use add_sym4 instead of add_sym4ind.
455 Don’t special case the index intrinsic.
456 * iresolve.c (gfc_resolve_index_func): Use the individual arguments
457 directly instead of the full argument list.
458 * intrinsic.h (gfc_resolve_index_func): Update the declaration
460 * trans-decl.c (gfc_get_extern_function_decl): Don’t modify the
461 list of arguments in the case of the index intrinsic.
462 * trans-array.h (gfc_get_intrinsic_for_expr,
463 gfc_get_proc_ifc_for_expr): New.
464 * trans-array.c (gfc_get_intrinsic_for_expr,
465 arg_evaluated_for_scalarization): New.
466 (gfc_walk_elemental_function_args): Add intrinsic procedure
467 as argument. Count arguments. Check arg_evaluated_for_scalarization.
468 * trans-intrinsic.c (gfc_walk_intrinsic_function): Update call.
469 * trans-stmt.c (get_intrinsic_for_code): New.
470 (gfc_trans_call): Update call.
472 2021-11-11 Harald Anlauf <anlauf@gmx.de>
474 Backported from master:
475 2021-11-10 Harald Anlauf <anlauf@gmx.de>
479 * check.c (gfc_check_shape): Avoid NULL pointer dereference on
481 * simplify.c (gfc_simplify_cshift): Avoid NULL pointer dereference
483 (gfc_simplify_transpose): Likewise.
485 2021-11-07 Harald Anlauf <anlauf@gmx.de>
487 Backported from master:
488 2021-10-26 Harald Anlauf <anlauf@gmx.de>
491 * resolve.c (resolve_structure_cons): Reject invalid array spec of
492 a DT component referenced in a structure constructor.
494 2021-11-07 Harald Anlauf <anlauf@gmx.de>
496 Backported from master:
497 2021-10-15 Harald Anlauf <anlauf@gmx.de>
498 Tobias Burnus <tobias@codesourcery.com>
501 * decl.c (match_clist_expr): Set rank/shape of clist initializer
503 * resolve.c (resolve_structure_cons): In a structure constructor,
504 compare shapes of array components against declared shape.
506 2021-11-07 Harald Anlauf <anlauf@gmx.de>
508 Backported from master:
509 2021-11-06 Harald Anlauf <anlauf@gmx.de>
512 * decl.c (add_init_expr_to_sym): Reject rank mismatch between
513 array and its initializer.
515 2021-11-07 Harald Anlauf <anlauf@gmx.de>
517 Backported from master:
518 2021-11-05 Harald Anlauf <anlauf@gmx.de>
521 * expr.c (simplify_parameter_variable): Copy shape of referenced
522 subobject when simplifying.
524 2021-11-07 Harald Anlauf <anlauf@gmx.de>
526 Backported from master:
527 2021-10-10 Harald Anlauf <anlauf@gmx.de>
531 * decl.c (add_init_expr_to_sym): Extend initialization of
532 parameter arrays from scalars to handle derived types.
534 2021-10-27 Harald Anlauf <anlauf@gmx.de>
536 Backported from master:
537 2021-10-26 Harald Anlauf <anlauf@gmx.de>
540 * decl.c (match_attr_spec): Remove invalid integer kind checks on
541 KIND and LEN attributes of PDTs.
543 2021-10-19 Tobias Burnus <tobias@codesourcery.com>
545 Backported from master:
546 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
549 * intrinsic.c (gfc_convert_type_warn): Fix checks by checking CLASS
550 and do typcheck in correct order for type extension.
551 * misc.c (gfc_typename): Print proper not internal CLASS type name.
553 2021-10-17 Harald Anlauf <anlauf@gmx.de>
555 Backported from master:
556 2021-10-14 Harald Anlauf <anlauf@gmx.de>
559 * check.c (gfc_check_shape): Reorder checks so that invalid KIND
560 arguments can be detected.
562 2021-10-06 Tobias Burnus <tobias@codesourcery.com>
564 Backported from master:
565 2021-10-06 Tobias Burnus <tobias@codesourcery.com>
567 * resolve.c (resolve_values): Only show
568 deprecated warning if attr.referenced.
570 2021-10-03 Harald Anlauf <anlauf@gmx.de>
572 Backported from master:
573 2021-09-30 Harald Anlauf <anlauf@gmx.de>
576 * simplify.c (simplify_size): Resolve expressions used in array
577 specifications so that SIZE can be simplified.
579 2021-10-03 Harald Anlauf <anlauf@gmx.de>
581 Backported from master:
582 2021-09-24 Harald Anlauf <anlauf@gmx.de>
585 * expr.c (is_non_constant_intrinsic): Check for intrinsics
586 excluded in constant expressions (F2018:10.1.12).
587 (gfc_is_constant_expr): Use that check.
589 2021-09-30 Harald Anlauf <anlauf@gmx.de>
591 Backported from master:
592 2021-09-29 Harald Anlauf <anlauf@gmx.de>
595 * array.c (expand_constructor): Do not dereference NULL pointer.
597 2021-09-21 Harald Anlauf <anlauf@gmx.de>
599 Backported from master:
600 2021-09-17 Harald Anlauf <anlauf@gmx.de>
603 * trans-decl.c (gfc_finish_var_decl): Disable the warning message
604 for variables moved from stack to static storange if they are
605 declared in the main, but allow the move to happen.
607 2021-09-20 Tobias Burnus <tobias@codesourcery.com>
609 * trans-openmp.c (gfc_split_omp_clauses): Don't put 'order(concurrent)'
610 on 'distribute' for combined directives, matching OpenMP 5.0
612 2021-09-19 Harald Anlauf <anlauf@gmx.de>
614 Backported from master:
615 2021-09-16 Harald Anlauf <anlauf@gmx.de>
618 * trans-expr.c (gfc_conv_procedure_call): Wrap deallocation of
619 allocatable components of optional allocatable derived type
620 procedure arguments with INTENT(OUT) into a presence check.
622 2021-09-19 Harald Anlauf <anlauf@gmx.de>
624 Backported from master:
625 2021-09-14 Harald Anlauf <anlauf@gmx.de>
628 * resolve.c (resolve_entries): Attempt to recover cleanly after
629 rejecting mismatched function entries.
631 2021-09-16 Harald Anlauf <anlauf@gmx.de>
633 Backported from master:
634 2021-09-13 Harald Anlauf <anlauf@gmx.de>
637 * expr.c (find_substring_ref): Handle given substring start and
638 end indices as signed integers, not unsigned.
640 2021-09-16 Harald Anlauf <anlauf@gmx.de>
642 Backported from master:
643 2021-09-13 Harald Anlauf <anlauf@gmx.de>
646 * decl.c (add_init_expr_to_sym): For proper initialization of
647 array-valued named constants the array bounds need to be
648 simplified before adding the initializer.
650 2021-09-11 Harald Anlauf <anlauf@gmx.de>
652 Backported from master:
653 2021-09-09 Harald Anlauf <anlauf@gmx.de>
656 * trans-expr.c (gfc_conv_substring): Do not generate substring
657 bounds check for implied do loop index variable before it actually
660 2021-09-11 Harald Anlauf <anlauf@gmx.de>
662 Backported from master:
663 2021-09-07 Harald Anlauf <anlauf@gmx.de>
666 * expr.c (find_array_element): When bounds cannot be determined as
667 constant, return error instead of aborting.
669 2021-09-05 Harald Anlauf <anlauf@gmx.de>
671 Backported from master:
672 2021-08-31 Harald Anlauf <anlauf@gmx.de>
675 * simplify.c (substring_has_constant_len): Minimize checks for
676 substring expressions being allowed.
678 2021-09-05 Harald Anlauf <anlauf@gmx.de>
680 Backported from master:
681 2021-08-19 Harald Anlauf <anlauf@gmx.de>
684 * simplify.c (substring_has_constant_len): New.
685 (gfc_simplify_len): Handle case of substrings with constant
688 2021-09-03 Harald Anlauf <anlauf@gmx.de>
690 Backported from master:
691 2021-08-30 Harald Anlauf <anlauf@gmx.de>
694 * resolve.c (resolve_allocate_expr): An unlimited polymorphic
695 argument to ALLOCATE must be ALLOCATABLE or a POINTER. Fix the
698 2021-09-03 Harald Anlauf <anlauf@gmx.de>
700 Backported from master:
701 2021-08-30 Harald Anlauf <anlauf@gmx.de>
704 * match.c (gfc_match_goto): Allow for whitespace in parsing list
707 2021-08-30 Harald Anlauf <anlauf@gmx.de>
709 Backported from master:
710 2021-08-28 Harald Anlauf <anlauf@gmx.de>
713 * resolve.c (resolve_entries): For functions of type CHARACTER
714 tighten the checks for matching characteristics.
716 2021-08-28 Paul Thomas <pault@gcc.gnu.org>
718 Backported from master:
719 2021-05-06 Paul Thomas <pault@gcc.gnu.org>
723 * class.c (gfc_build_class_symbol): Remove the error that
724 disables assumed size class arrays. Class array types that are
725 not deferred shape or assumed rank are given a unique name and
726 placed in the procedure namespace.
727 * trans-array.c (gfc_trans_g77_array): Obtain the data pointer
729 (gfc_trans_dummy_array_bias): Suppress the runtime error for
730 extent violations in explicit shape class arrays because it
732 * trans-expr.c (gfc_conv_procedure_call): Handle assumed size
733 class actual arguments passed to non-descriptor formal args by
734 using the data pointer, stored as the symbol's backend decl.
736 2021-08-26 Harald Anlauf <anlauf@gmx.de>
738 Backported from master:
739 2021-08-24 Harald Anlauf <anlauf@gmx.de>
742 * trans-decl.c (gfc_finish_var_decl): Adjust check to handle
743 implicit SAVE as well as variables in the main program. Improve
744 warning message text.
746 2021-08-16 Harald Anlauf <anlauf@gmx.de>
748 Backported from master:
749 2021-08-15 Harald Anlauf <anlauf@gmx.de>
752 * match.c (sync_statement): Replace %v code by %e in gfc_match to
753 allow for function references as STAT and ERRMSG arguments.
754 * resolve.c (resolve_sync): Adjust checks of STAT= and ERRMSG= to
755 being definable arguments. Function references with a data
756 pointer result are accepted.
757 * trans-stmt.c (gfc_trans_sync): Adjust assertion.
759 2021-08-11 Harald Anlauf <anlauf@gmx.de>
761 Backported from master:
762 2021-07-28 Harald Anlauf <anlauf@gmx.de>
765 * expr.c (gfc_check_vardef_context): Add check for KIND and LEN
767 * match.c (gfc_match): Fix comment for %v code.
768 (gfc_match_allocate, gfc_match_deallocate): Replace use of %v code
769 by %e in gfc_match to allow for function references as STAT and
771 * resolve.c (resolve_allocate_deallocate): Avoid NULL pointer
772 dereferences and shortcut for bad STAT and ERRMSG argument to
773 (DE)ALLOCATE. Remove bogus parts of checks for STAT and ERRMSG.
775 2021-07-28 Harald Anlauf <anlauf@gmx.de>
777 Backported from master:
778 2021-07-23 Harald Anlauf <anlauf@gmx.de>
781 * check.c (array_check): Adjust check for the case of CLASS
784 2021-07-28 Harald Anlauf <anlauf@gmx.de>
786 Backported from master:
787 2021-07-21 Harald Anlauf <anlauf@gmx.de>
790 * target-memory.c (gfc_interpret_derived): Size of array component
791 of derived type can only be computed here for explicit shape.
792 * trans-types.c (gfc_get_nodesc_array_type): Do not dereference
795 2021-07-28 Harald Anlauf <anlauf@gmx.de>
797 Backported from master:
798 2021-07-18 Harald Anlauf <anlauf@gmx.de>
801 * io.c (resolve_tag_format): Extend FORMAT check to unknown type.
803 2021-07-28 Release Manager
805 * GCC 11.2.0 released.
807 2021-07-15 Harald Anlauf <anlauf@gmx.de>
809 Backported from master:
810 2021-07-14 Harald Anlauf <anlauf@gmx.de>
813 * trans-expr.c (gfc_trans_class_init_assign): Call
814 gfc_conv_expr_present only for dummy variables.
816 2021-07-08 Thomas Koenig <tkoenig@gcc.gnu.org>
818 Backported from master:
819 2021-07-06 Thomas Koenig <tkoenig@gcc.gnu.org>
822 * frontend-passes.c (traverse_io_block): Adjust test for
823 when a variable is eligible for the transformation to
826 2021-06-19 Harald Anlauf <anlauf@gmx.de>
828 Backported from master:
829 2021-06-18 Harald Anlauf <anlauf@gmx.de>
833 * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Unconditionally
834 convert result of min/max to result type.
836 2021-06-18 Harald Anlauf <anlauf@gmx.de>
838 Backported from master:
839 2021-06-16 Harald Anlauf <anlauf@gmx.de>
843 * expr.c (gfc_check_pointer_assign): Avoid NULL pointer
845 * match.c (gfc_match_pointer_assignment): Likewise.
846 * parse.c (gfc_check_do_variable): Avoid comparison with NULL
849 2021-06-17 Jakub Jelinek <jakub@redhat.com>
851 Backported from master:
852 2021-06-09 Jakub Jelinek <jakub@redhat.com>
855 * trans-openmp.c (gfc_omp_finish_clause): Gimplify OMP_CLAUSE_SIZE.
857 2021-06-16 José Rui Faustino de Sousa <jrfsousa@gmail.com>
860 * trans-expr.c (gfc_conv_procedure_call): Evaluate function result
861 and then pass a pointer.
863 2021-06-06 Andre Vehreschild <vehre@gcc.gnu.org>
864 Steve Kargl <kargl@gcc.gnu.org>
867 * trans-decl.c (gfc_build_builtin_function_decls): Move decl.
868 * trans-intrinsic.c (conv_intrinsic_random_init): Use bool for
869 lib-call of caf_random_init instead of logical (4-byte).
870 * trans.h: Add tree var for random_init.
872 2021-06-04 Harald Anlauf <anlauf@gmx.de>
874 Backported from master:
875 2021-06-04 Harald Anlauf <anlauf@gmx.de>
878 * frontend-passes.c (inline_matmul_assign): Do not inline matmul
879 if the assignment to the resulting array if it is not of canonical
880 type (real/integer/complex/logical).
882 2021-05-28 Harald Anlauf <anlauf@gmx.de>
884 Backported from master:
885 2021-05-17 Harald Anlauf <anlauf@gmx.de>
888 * trans-decl.c (gfc_finish_var_decl): Add check for explicit SAVE
891 2021-05-28 Harald Anlauf <anlauf@gmx.de>
893 Backported from master:
894 2021-05-27 Harald Anlauf <anlauf@gmx.de>
897 * trans-array.c (gfc_conv_ss_startstride): Do not call check for
898 presence of a dummy argument when a symbol actually refers to a
901 2021-05-28 Harald Anlauf <anlauf@gmx.de>
903 Backported from master:
904 2021-05-27 Harald Anlauf <anlauf@gmx.de>
907 * trans-intrinsic.c (gfc_conv_intrinsic_size): Use CLASS data
908 attributes for CLASS arrays for generation of runtime error.
910 2021-05-25 Harald Anlauf <anlauf@gmx.de>
912 Backported from master:
913 2021-05-23 Harald Anlauf <anlauf@gmx.de>
916 * trans-expr.c (gfc_conv_procedure_call): Adjust check for
917 implicit conversion of actual argument to an unlimited polymorphic
920 2021-05-25 Tobias Burnus <tobias@codesourcery.com>
922 Backported from master:
923 2021-05-25 Tobias Burnus <tobias@codesourcery.com>
924 Johannes Nendwich <a08727063@unet.univie.ac.at>
926 * intrinsic.texi (GERROR, GETARGS, GETLOG, NORM2, PARITY, RANDOM_INIT,
927 RANDOM_NUMBER): Fix typos and copy'n'paste errors.
929 2021-05-23 Tobias Burnus <tobias@codesourcery.com>
931 Backported from master:
932 2021-05-23 Tobias Burnus <tobias@codesourcery.com>
934 * intrinsic.texi (ATOMIC_ADD, ATOMIC_FETCH_ADD): Use the
935 proper variable name in the description.
937 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
939 Backported from master:
940 2021-05-17 Tobias Burnus <tobias@codesourcery.com>
943 * resolve.c (gfc_resolve_code): Reject nonintrinsic assignments in
946 2021-05-17 Tobias Burnus <tobias@codesourcery.com>
948 Backported from master:
949 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
951 * resolve.c (resolve_symbol): Handle implicit SAVE of main-program
952 for vars in 'omp threadprivate' and 'omp declare target'.
954 2021-05-05 Harald Anlauf <anlauf@gmx.de>
956 Backported from master:
957 2021-05-05 Harald Anlauf <anlauf@gmx.de>
960 * interface.c (gfc_compare_actual_formal): Continue checks after
961 emitting warning for argument length mismatch.
962 * trans-expr.c (gfc_conv_procedure_call): Check for NULL pointer
965 2021-04-29 Tobias Burnus <tobias@codesourcery.com>
967 Backported from master:
968 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
970 * openmp.c (gfc_match_omp_variable_list): Gobble whitespace before
971 checking whether a '%' or parenthesis-open follows as next character.
973 2021-04-27 Harald Anlauf <anlauf@gmx.de>
975 Backported from master:
976 2021-04-24 Harald Anlauf <anlauf@gmx.de>
979 * expr.c (gfc_check_vardef_context): Extend check to allow pointer
980 from a function reference.
982 2021-04-27 Harald Anlauf <anlauf@gmx.de>
984 Backported from master:
985 2021-04-24 Harald Anlauf <anlauf@gmx.de>
988 * check.c (variable_check): Allow function reference having a data
990 (arg_strlen_is_zero): New function.
991 (gfc_check_fgetputc_sub): Add static check of character and status
993 (gfc_check_fgetput_sub): Likewise.
994 * intrinsic.c (add_subroutines): Fix argument name for the
995 character argument to intrinsic subroutines fget[c], fput[c].
997 2021-04-27 Release Manager
999 * GCC 11.1.0 released.
1001 2021-04-20 Paul Thomas <pault@gcc.gnu.org>
1004 * trans-decl.c (gfc_get_symbol_decl): Replace test for host
1005 association with a check that the current and symbol namespaces
1008 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
1010 * lang.opt (fopenacc-kernels=): Remove.
1012 2021-04-16 José Rui Faustino de Sousa <jrfsousa@gmail.com>
1015 * trans-array.c (gfc_trans_deferred_array): Add code to initialize
1016 pointers and allocatables with correct TKR parameters.
1018 2021-04-16 José Rui Faustino de Sousa <jrfsousa@gmail.com>
1021 * resolve.c: Add association check before de-referencing pointer.
1023 2021-04-16 Harald Anlauf <anlauf@gmx.de>
1024 Paul Thomas <pault@gcc.gnu.org>
1027 * module.c (write_symtree): Do not write interface of intrinsic
1028 procedure to module file for F2003 and newer.
1030 2021-04-15 Paul Thomas <pault@gcc.gnu.org>
1033 * symbol.c: Remove trailing white space.
1034 * trans-array.c (gfc_trans_create_temp_array): Create a class
1035 temporary for class expressions and assign the new descriptor
1037 (build_class_array_ref): If the class expr can be extracted,
1038 then use that for 'decl'. Class function results are reliably
1039 handled this way. Call gfc_find_and_cut_at_last_class_ref to
1040 eliminate largely redundant code. Remove dead code and recast
1041 the rest of the code to extract 'decl' for remaining cases.
1042 Call gfc_build_spanned_array_ref.
1043 (gfc_alloc_allocatable_for_assignment): Use class descriptor
1044 element length for 'elemsize1'. Eliminate repeat set of dtype
1045 for class expressions.
1046 * trans-expr.c (gfc_find_and_cut_at_last_class_ref): Include
1047 additional code from build_class_array_ref, and use optional
1048 gfc_typespec pointer argument.
1049 (gfc_trans_scalar_assign): Make use of pre and post blocks for
1050 all class expressions.
1051 * trans.c (get_array_span): For unlimited polymorphic exprs
1052 multiply the span by the value of the _len field.
1053 (gfc_build_spanned_array_ref): New function.
1054 (gfc_build_array_ref): Call gfc_build_spanned_array_ref and
1055 eliminate repeated code.
1056 * trans.h: Add arg to gfc_find_and_cut_at_last_class_ref and
1057 add prototype for gfc_build_spanned_array_ref.
1059 2021-04-14 Martin Liska <mliska@suse.cz>
1061 * intrinsic.texi: The table has first column empty and it makes
1062 trouble when processing makeinfo --xml output.
1064 2021-04-09 Tobias Burnus <tobias@codesourcery.com>
1067 * trans-types.c (gfc_get_function_type): Also generate hidden
1068 coarray argument for character arguments.
1070 2021-04-03 Paul Thomas <pault@gcc.gnu.org>
1073 * interface.c (compare_parameter): The codimension attribute is
1074 applied to the _data field of class formal arguments.
1076 2021-04-01 Harald Anlauf <anlauf@gmx.de>
1079 * simplify.c (gfc_simplify_transpose): Properly initialize
1082 2021-03-28 Paul Thomas <pault@gcc.gnu.org>
1085 * trans-expr.c (gfc_conv_procedure_call): Use the _data attrs
1086 for class expressions and detect proc pointer evaluations by
1087 the non-null actual argument list.
1089 2021-03-27 Steve Kargl <kargl@gcc.gnu.org>
1091 * misc.c (gfc_typename): Fix off-by-one in buffer sizes.
1093 2021-03-26 Tobias Burnus <tobias@codesourcery.com>
1096 * intrinsic.c (gfc_intrinsic_func_interface): Set
1097 attr.proc = PROC_INTRINSIC if FL_PROCEDURE.
1099 2021-03-24 Tobias Burnus <tobias@codesourcery.com>
1102 * resolve.c (resolve_operator): Make 'msg' buffer larger
1105 2021-03-23 Tobias Burnus <tobias@codesourcery.com>
1108 * trans-decl.c (build_function_decl): Add comment;
1109 increment hidden_typelist for caf_token/caf_offset.
1110 * trans-types.c (gfc_get_function_type): Add comment;
1111 add missing caf_token/caf_offset args.
1113 2021-03-22 Tobias Burnus <tobias@codesourcery.com>
1116 * match.c (select_type_set_tmp, gfc_match_select_type,
1117 gfc_match_select_rank): Fix 'name' buffersize to avoid out of bounds.
1118 * resolve.c (resolve_select_type): Likewise.
1120 2021-03-19 Thomas Koenig <tkoenig@gcc.gnu.org>
1122 * frontend-passes.c (inline_limit_check): Add rank_a
1123 argument. If a is rank 1, set the second dimension to 1.
1124 (inline_matmul_assign): Pass rank_a argument to inline_limit_check.
1125 (call_external_blas): Likewise.
1127 2021-03-15 Thomas Koenig <tkoenig@gcc.gnu.org>
1130 * frontend-passes.c (doloop_contained_procedure_code):
1131 Properly handle EXEC_IOLENGTH.
1133 2021-03-15 Paul Thomas <pault@gcc.gnu.org>
1136 * trans-stmt.c (gfc_trans_allocate): Mark the initialization
1137 assignment by setting init_flag.
1139 2021-03-14 Harald Anlauf <anlauf@gmx.de>
1140 Paul Thomas <pault@gcc.gnu.org>
1142 * trans-expr.c (gfc_conv_procedure_call): Fix runtime checks for
1144 * trans-intrinsic.c (gfc_conv_intrinsic_size): Likewise.
1146 2021-03-13 Paul Thomas <pault@gcc.gnu.org>
1149 * trans-array.c (gfc_conv_expr_descriptor): For deferred length
1150 length components use the ss_info string length instead of
1151 gfc_get_expr_charlen. Make sure that the deferred string length
1152 is a variable before assigning to it. Otherwise use the expr.
1153 * trans-expr.c (gfc_conv_string_length): Make sure that the
1154 deferred string length is a variable before assigning to it.
1156 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
1159 * resolve.c (resolve_symbol): Accept vars which are in DATA
1160 and hence (either) implicit SAVE (or in common).
1162 2021-03-10 Harald Anlauf <anlauf@gmx.de>
1165 * data.c (gfc_assign_data_value): Reject non-constant character
1167 * trans-array.c (gfc_conv_array_initializer): Restrict loop to
1168 elements which are defined to avoid NULL pointer dereference.
1170 2021-03-10 Tobias Burnus <tobias@codesourcery.com>
1172 * intrinsic.texi (MIN): Correct 'maximum' to 'minimum'.
1174 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
1177 * trans-intrinsic.c (build_round_expr): Do not implicitly assume
1178 that __float128 is the 128-bit floating-point type.
1180 2021-03-08 Harald Anlauf <anlauf@gmx.de>
1183 * data.c (gfc_assign_data_value): Reject variable with PARAMETER
1184 attribute in DATA statement.
1186 2021-03-05 Tobias Burnus <tobias@codesourcery.com>
1190 * invoke.texi (-freal{4,8}-real-*): Extend description.
1191 * primary.c (match_real_constant): Also promote real literals
1192 with '_kind' number.
1194 2021-03-04 Tobias Burnus <tobias@codesourcery.com>
1197 * decl.c (gfc_match_old_kind_spec, gfc_match_kind_spec): Avoid
1198 redoing kind conversions.
1199 * primary.c (match_real_constant): Likewise.
1201 2021-02-28 Jakub Jelinek <jakub@redhat.com>
1204 * openmp.c (gfc_omp_requires_add_clause): Fix up diagnostic message
1206 (resolve_omp_clauses): Likewise.
1208 2021-02-28 Jakub Jelinek <jakub@redhat.com>
1211 * frontend-passes.c (doloop_code): Replace double space in diagnostics
1212 with a single space.
1214 2021-02-24 Paul Thomas <pault@gcc.gnu.org>
1217 * trans-expr.c (gfc_conv_derived_to_class): Add optional arg.
1218 'derived_array' to hold the fixed, parmse expr in the case of
1219 assumed rank formal arguments. Deal with optional arguments.
1220 (gfc_conv_procedure_call): Null 'derived' array for each actual
1221 argument. Add its address to the call to gfc_conv_derived_to_
1222 class. Access the 'data' field of scalar descriptors before
1223 deallocating allocatable components. Also strip NOPs before the
1224 calls to gfc_deallocate_alloc_comp. Use 'derived' array as the
1225 input to gfc_deallocate_alloc_comp if it is available.
1226 * trans.h : Include the optional argument 'derived_array' to
1227 the prototype of gfc_conv_derived_to_class. The default value
1230 2021-02-23 Paul Thomas <pault@gcc.gnu.org>
1233 * resolve.c (resolve_fl_procedure): Include class results in
1234 the test for F2018, C15100.
1235 * trans-array.c (get_class_info_from_ss): Do not use the saved
1236 descriptor to obtain the class expression for variables. Use
1237 gfc_get_class_from_expr instead.
1239 2021-02-23 Harald Anlauf <anlauf@gmx.de>
1242 * simplify.c (gfc_simplify_reshape): Set string length for
1243 character arguments.
1245 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
1248 * trans-openmp.c (gfc_omp_is_optional_argument): Regard optional
1249 dummy procs as nonoptional as no special treatment is needed.
1251 2021-02-21 Harald Anlauf <anlauf@gmx.de>
1253 * trans-expr.c (gfc_conv_procedure_call): Do not add clobber to
1254 allocatable intent(out) argument.
1256 2021-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1259 * match.c (gfc_match_namelist): If BT_UNKNOWN, check for
1260 IMPLICIT NONE and and issue an error, otherwise set the type
1261 to its IMPLICIT type so that any subsequent use of objects will
1262 will confirm their types.
1264 2021-02-19 Harald Anlauf <anlauf@gmx.de>
1266 * symbol.c (gfc_add_flavor): Reverse order of conditions.
1268 2021-02-19 Tobias Burnus <tobias@codesourcery.com>
1271 * dependency.c (gfc_dep_resolver): Fix coarray handling.
1273 2021-02-19 Tobias Burnus <tobias@codesourcery.com>
1278 2021-02-19 Tobias Burnus <tobias@codesourcery.com>
1281 * simplify.c (simplify_bound_dim): Honor DIMEN_ELEMENT
1284 2021-02-17 Julian Brown <julian@codesourcery.com>
1286 * openmp.c (resolve_omp_clauses): Disallow selecting components
1287 of arrays of derived type.
1289 2021-02-17 Julian Brown <julian@codesourcery.com>
1291 * trans-openmp.c (gfc_trans_omp_clauses): Handle element selection
1292 for arrays of derived types.
1294 2021-02-16 Tobias Burnus <tobias@codesourcery.com>
1296 * expr.c (gfc_is_simplify_contiguous): Handle REF_INQUIRY, i.e.
1297 %im and %re which are EXPR_VARIABLE.
1298 * openmp.c (resolve_omp_clauses): Diagnose %re/%im explicitly.
1300 2021-02-16 Tobias Burnus <tobias@codesourcery.com>
1303 * io.c (resolve_tag_format): Reject BT_DERIVED/CLASS/VOID
1304 as (array-valued) FORMAT tag.
1306 2021-02-12 Tobias Burnus <tobias@codesourcery.com>
1309 * trans-expr.c (gfc_conv_procedure_call): Don't reset
1310 rank of assumed-rank array.
1312 2021-02-11 Paul Thomas <pault@gcc.gnu.org>
1315 * match.c (gfc_match_call): Include associate names as possible
1316 entities with typebound subroutines. The target needs to be
1317 resolved for the type.
1319 2021-02-11 Paul Thomas <pault@gcc.gnu.org>
1322 * primary.c (gfc_match_varspec): Test for non-null 'previous'
1323 before using its name in the error message.
1325 2021-02-11 Tobias Burnus <tobias@codesourcery.com>
1327 * intrinsic.texi (FINDLOC): Add 'MASK' to argument table.
1328 (MAXLOC, MAXVAL, MINLOC, MINVAL): For 'MASK', remove 'an
1329 array' as scalars are also permitted.
1331 2021-02-10 Julian Brown <julian@codesourcery.com>
1334 * openmp.c (resolve_omp_clauses): Omit OpenACC update in
1335 contiguity check and stride-specified error.
1337 2021-02-04 Julian Brown <julian@codesourcery.com>
1339 * openmp.c (resolve_omp_clauses): Omit OpenACC update in
1340 contiguity check and stride-specified error.
1342 2021-02-04 Julian Brown <julian@codesourcery.com>
1344 * trans-openmp.c (gfc_trans_omp_clauses): Use class_pointer attribute
1347 2021-02-04 Julian Brown <julian@codesourcery.com>
1349 * trans-openmp.c (gfc_trans_omp_clauses): Fix dereferencing for
1352 2021-02-04 Tobias Burnus <tobias@codesourcery.com>
1354 * openmp.c (resolve_omp_clauses): Explicitly diagnose
1355 substrings as not permitted.
1357 2021-02-03 Jeff Law <law@redhat.com>
1359 * intrinsic.texi (ANINT): Fix typo.
1361 2021-02-03 Tobias Burnus <tobias@codesourcery.com>
1364 * dependency.c (gfc_dep_resolver): Treat local access
1365 to coarrays like any array access in dependency analysis.
1367 2021-01-28 Harald Anlauf <anlauf@gmx.de>
1370 * trans.c (gfc_call_malloc): Allocate area of size 1 if passed
1371 size is NULL (as documented).
1373 2021-01-27 Paul Thomas <pault@gcc.gnu.org>
1377 * trans-expr.c (gfc_conv_procedure_call): Suppress the call to
1378 gfc_conv_intrinsic_to_class for unlimited polymorphic procedure
1380 (gfc_trans_assignment_1): Similarly suppress class assignment
1381 for class valued procedure pointers.
1383 2021-01-27 Paul Thomas <pault@gcc.gnu.org>
1386 * trans-array.c (gfc_conv_expr_descriptor): Include elemental
1387 procedure pointers in the assert under the comment 'elemental
1388 function' and eliminate the second, spurious assert.
1390 2021-01-25 Harald Anlauf <anlauf@gmx.de>
1393 * data.c (create_character_initializer): Check substring indices
1395 (gfc_assign_data_value): Catch error returned from
1396 create_character_initializer.
1398 2021-01-25 Tobias Burnus <tobias@codesourcery.com>
1400 * intrinsic.texi (CO_BROADCAST, CO_MIN, CO_REDUCE, CO_SUM): Fix typos.
1402 2021-01-25 Steve Kargl <kargl@gcc.gnu.org>
1405 * resolve.c (resolve_charlen): Check that length expression is
1406 present before testing for scalar/integer..
1408 2021-01-22 Paul Thomas <pault@gcc.gnu.org>
1411 * trans-intrinsic.c (gfc_conv_associated): Do not add a _data
1412 component for scalar class function targets. Instead, fix the
1413 function result and access the _data from that.
1415 2021-01-21 Jorge D'Elia <jdelia@cimec.unl.edu.ar>
1417 * intrinsic.texi (CO_MAX): Fix typo.
1419 2021-01-21 Paul Thomas <pault@gcc.gnu.org>
1422 * decl.c (gfc_match_modproc): It is not an error to find a
1423 module procedure declaration within a contains block.
1424 * expr.c (gfc_check_vardef_context): Pure procedure result is
1425 assignable. Change 'own_scope' accordingly.
1426 * resolve.c (resolve_typebound_procedure): A procedure that
1427 has the module procedure attribute is almost certainly a
1428 module procedure, whatever its interface.
1430 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
1433 * openmp.c (resolve_omp_clauses): Change use_device_ptr
1434 to use_device_addr for unless type(c_ptr); check all
1435 list item for is_device_ptr.
1437 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
1439 * dump-parse-tree.c (show_omp_clauses): Handle detach clause.
1440 * frontend-passes.c (gfc_code_walker): Walk detach expression.
1441 * gfortran.h (struct gfc_omp_clauses): Add detach field.
1442 (gfc_c_intptr_kind): New.
1443 * openmp.c (gfc_free_omp_clauses): Free detach clause.
1444 (gfc_match_omp_detach): New.
1445 (enum omp_mask1): Add OMP_CLAUSE_DETACH.
1446 (enum omp_mask2): Remove OMP_CLAUSE_DETACH.
1447 (gfc_match_omp_clauses): Handle OMP_CLAUSE_DETACH for OpenMP.
1448 (OMP_TASK_CLAUSES): Add OMP_CLAUSE_DETACH.
1449 (resolve_omp_clauses): Prevent use of detach with mergeable and
1450 overriding the data sharing mode of the event handle.
1451 * trans-openmp.c (gfc_trans_omp_clauses): Handle detach clause.
1452 * trans-types.c (gfc_c_intptr_kind): New.
1453 (gfc_init_kinds): Initialize gfc_c_intptr_kind.
1455 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
1457 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
1458 ...this. Add extra argument.
1460 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1462 * gfortran.h (gfc_resolve_substring): Add prototype.
1463 * primary.c (match_string_constant): Simplify substrings with
1464 constant starting and ending points.
1465 * resolve.c: Rename resolve_substring to gfc_resolve_substring.
1466 (gfc_resolve_ref): Use renamed function gfc_resolve_substring.
1468 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1471 * resolve.c (resolve_component): Derived type components with
1472 ALLOCATABLE or POINTER attribute shall have a deferred shape.
1474 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1477 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1480 * resolve.c (resolve_component): Derived type components with
1481 ALLOCATABLE or POINTER attribute shall have a deferred shape.
1483 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1486 * resolve.c (resolve_component): Derived type components with
1487 ALLOCATABLE or POINTER attribute shall have a deferred shape.
1489 2021-01-08 Paul Thomas <pault@gcc.gnu.org>
1492 * trans-expr.c (gfc_conv_component_ref): Remove the condition
1493 that deferred character length components only be allocatable.
1495 2021-01-08 Paul Thomas <pault@gcc.gnu.org>
1498 * simplify.c (is_constant_array_expr): If an array constructor
1499 expression has elements other than constants or structures, try
1500 fixing the expression with gfc_reduce_init_expr. Also, if shape
1501 is NULL, obtain the array size and set it.
1503 2021-01-07 Paul Thomas <pault@gcc.gnu.org>
1506 * resolve.c (find_array_spec): Put static prototype for
1507 resolve_assoc_var before this function and call for associate
1510 2021-01-06 Harald Anlauf <anlauf@gmx.de>
1512 * resolve.c (resolve_component): Add check for valid CLASS
1513 reference before trying to access CLASS data.
1515 2021-01-04 Martin Liska <mliska@suse.cz>
1517 * ChangeLog-2018: Remove duplicate ChangeLog entries.
1519 2021-01-01 Harald Anlauf <anlauf@gmx.de>
1521 * class.c (gfc_find_vtab): Add check on attribute is_class.
1523 2021-01-01 Jakub Jelinek <jakub@redhat.com>
1525 * gfortranspec.c (lang_specific_driver): Update copyright notice
1527 * gfc-internals.texi: Bump @copying's copyright year.
1528 * gfortran.texi: Ditto.
1529 * intrinsic.texi: Ditto.
1530 * invoke.texi: Ditto.
1532 2021-01-01 Jakub Jelinek <jakub@redhat.com>
1534 * ChangeLog-2020: Rotate ChangeLog. New file.
1537 Copyright (C) 2021 Free Software Foundation, Inc.
1539 Copying and distribution of this file, with or without modification,
1540 are permitted in any medium without royalty provided the copyright
1541 notice and this notice are preserved.