1 2022-03-17 Michael Meissner <meissner@linux.ibm.com>
4 * trans-intrinsic.c (build_round_expr): If int type is larger than
5 long long, do the round and convert to the integer type. Do not
6 try to find a floating point type the exact size of the integer
7 type. Backport patch from 2021-04-22 on the trunk.
9 2022-03-13 Harald Anlauf <anlauf@gmx.de>
11 Backported from master:
12 2022-03-08 Harald Anlauf <anlauf@gmx.de>
15 * frontend-passes.c (optimize_minmaxloc): Do not attempt
16 frontend-optimization of MINLOC/MAXLOC for character arrays, as
17 there is no suitable code yet for inline expansion.
19 2022-02-23 Harald Anlauf <anlauf@gmx.de>
21 Backported from master:
22 2022-02-22 Harald Anlauf <anlauf@gmx.de>
25 * resolve.c (resolve_structure_cons): Skip shape check if shape
26 of constructor cannot be determined at compile time.
28 2022-02-20 Harald Anlauf <anlauf@gmx.de>
30 Backported from master:
31 2022-02-09 Harald Anlauf <anlauf@gmx.de>
34 * arith.c (reduce_binary_ac): When reducing binary expressions,
35 try simplification. Handle case of empty constructor.
36 (reduce_binary_ca): Likewise.
38 2022-02-16 Harald Anlauf <anlauf@gmx.de>
40 Backported from master:
41 2022-02-14 Harald Anlauf <anlauf@gmx.de>
44 * expr.c (find_array_section): Replace assertion by error
45 recovery when encountering bad array constructor.
47 2022-02-14 Andre Vehreschild <vehre@gcc.gnu.org>
51 * trans-intrinsic.c (conv_co_collective): Check stat for null ptr
52 before dereferrencing.
54 2022-02-14 Andre Vehreschild <vehre@gcc.gnu.org>
57 Backported from master.
58 * trans-array.c (structure_alloc_comps): Prevent descriptor
59 stacking for non-array data; do not broadcast caf-tokens.
60 * trans-intrinsic.c (conv_co_collective): Prevent generation
63 2022-02-04 Harald Anlauf <anlauf@gmx.de>
65 Backported from master:
66 2022-02-03 Harald Anlauf <anlauf@gmx.de>
69 * check.c (gfc_calculate_transfer_sizes): Checks for case when
70 storage size of SOURCE is greater than zero while the storage size
71 of MOLD is zero and MOLD is an array shall not depend on SIZE.
73 2022-02-02 Harald Anlauf <anlauf@gmx.de>
75 Backported from master:
76 2022-02-01 Harald Anlauf <anlauf@gmx.de>
79 * simplify.c (gfc_simplify_eoshift): Avoid NULL pointer
80 dereference when shape is not set.
82 2022-01-26 Harald Anlauf <anlauf@gmx.de>
84 Backported from master:
85 2022-01-22 Harald Anlauf <anlauf@gmx.de>
88 * simplify.c (gfc_simplify_transfer): Ensure that the result
89 typespec is set up for TRANSFER with MOLD of type CHARACTER
90 including character length even if the result is a zero-sized
93 2022-01-26 Harald Anlauf <anlauf@gmx.de>
95 Backported from master:
96 2022-01-25 Harald Anlauf <anlauf@gmx.de>
99 * check.c (gfc_check_norm2): Check that optional argument DIM is
101 (gfc_check_parity): Likewise.
103 2022-01-26 Harald Anlauf <anlauf@gmx.de>
105 Backported from master:
106 2022-01-25 Harald Anlauf <anlauf@gmx.de>
109 * check.c (gfc_calculate_transfer_sizes): Fix checking of arrays
110 passed as MOLD argument to the TRANSFER intrinsic for having
113 2022-01-23 Harald Anlauf <anlauf@gmx.de>
115 Backported from master:
116 2022-01-15 Harald Anlauf <anlauf@gmx.de>
119 * target-memory.c (gfc_interpret_character): Result length is
120 in bytes and thus depends on the character kind.
121 * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Compute correct
122 string length for the result of the TRANSFER intrinsic and for
123 temporaries for the different character kinds.
125 2022-01-20 Harald Anlauf <anlauf@gmx.de>
127 Backported from master:
128 2022-01-18 Harald Anlauf <anlauf@gmx.de>
131 * array.c (gfc_expand_constructor): Handle zero-sized array
134 2022-01-17 Mikael Morin <mikael@gcc.gnu.org>
136 Backported from master:
137 2022-01-09 Mikael Morin <mikael@gcc.gnu.org>
140 * trans-array.c (arg_evaluated_for_scalarization): Add MASKL, MASKR,
141 SCAN and VERIFY to the list of intrinsics whose KIND argument is to be
144 2022-01-16 Mikael Morin <mikael@gcc.gnu.org>
146 Backported from master:
147 2022-01-09 Mikael Morin <mikael@gcc.gnu.org>
150 * trans-array.c (arg_evaluated_for_scalarization): Add MASKL, MASKR,
151 SCAN and VERIFY to the list of intrinsics whose KIND argument is to be
154 2022-01-16 Mikael Morin <mikael@gcc.gnu.org>
156 Backported from master:
157 2022-01-16 Mikael Morin <mikael@gcc.gnu.org>
161 * trans-array.c (arg_evaluated_for_scalarization): Handle keyword and
162 non-keyword arguments separatedly. Adapt the expected argument index
163 for KIND to each intrinsic in the non-keyword case.
165 2022-01-16 Harald Anlauf <anlauf@gmx.de>
167 Backported from master:
168 2022-01-14 Harald Anlauf <anlauf@gmx.de>
171 * expr.c (gfc_simplify_expr): Adjust logic for when to scalarize a
172 call of an intrinsic which may have been overloaded.
174 2022-01-16 Harald Anlauf <anlauf@gmx.de>
176 Backported from master:
177 2022-01-13 Harald Anlauf <anlauf@gmx.de>
180 * primary.c (gfc_match_structure_constructor): Recover from errors
181 that occurred while checking for a valid structure constructor in
184 2022-01-15 Harald Anlauf <anlauf@gmx.de>
186 Backported from master:
187 2022-01-09 Harald Anlauf <anlauf@gmx.de>
190 * expr.c (gfc_check_pointer_assign): For pointer initialization
191 targets, check that subscripts and substring indices in
192 specifications are constant expressions.
194 2022-01-15 Harald Anlauf <anlauf@gmx.de>
196 Backported from master:
197 2022-01-09 Harald Anlauf <anlauf@gmx.de>
200 * simplify.c (gfc_simplify_maskr): Check validity of argument 'I'
202 (gfc_simplify_maskl): Likewise.
204 2022-01-02 Harald Anlauf <anlauf@gmx.de>
206 Backported from master:
207 2021-12-29 Harald Anlauf <anlauf@gmx.de>
210 * expr.c (gfc_get_variable_expr): Avoid NULL pointer dereferences
211 during handling of errors with invalid uses of CLASS variables.
212 * match.c (select_type_set_tmp): Likewise.
213 * primary.c (gfc_match_varspec): Likewise.
214 * resolve.c (resolve_variable): Likewise.
215 (resolve_select_type): Likewise.
217 2021-12-27 Harald Anlauf <anlauf@gmx.de>
219 Backported from master:
220 2021-12-22 Harald Anlauf <anlauf@gmx.de>
223 * match.c (match_case_selector): Reject expressions in CASE
224 selector which are not scalar.
226 2021-12-27 Harald Anlauf <anlauf@gmx.de>
228 Backported from master:
229 2021-12-22 Harald Anlauf <anlauf@gmx.de>
232 * check.c (is_c_interoperable): A BOZ literal constant is not
235 2021-12-27 Harald Anlauf <anlauf@gmx.de>
237 Backported from master:
238 2021-11-18 Harald Anlauf <anlauf@gmx.de>
239 Steven G. Kargl <kargl@gcc.gnu.org>
242 * check.c (is_c_interoperable): Reject NULL() as it is not
245 2021-12-19 Harald Anlauf <anlauf@gmx.de>
247 Backported from master:
248 2021-12-10 Harald Anlauf <anlauf@gmx.de>
251 * check.c (variable_check): Replace previous check of procedure
252 dummy arguments with INTENT(IN) attribute when passed to intrinsic
253 procedures by gfc_check_vardef_context.
254 * expr.c (gfc_check_vardef_context): Correct check of INTENT(IN)
255 dummy arguments for the case of sub-components of a CLASS pointer.
257 2021-12-19 Harald Anlauf <anlauf@gmx.de>
259 Backported from master:
260 2021-12-18 Harald Anlauf <anlauf@gmx.de>
263 * check.c (gfc_check_sizeof): Reject BOZ type argument.
265 2021-12-15 Harald Anlauf <anlauf@gmx.de>
267 Backported from master:
268 2021-12-14 Harald Anlauf <anlauf@gmx.de>
271 * frontend-passes.c (doloop_code): Prevent NULL pointer
272 dereference when checking for passing a do-loop variable to a
273 contained procedure with an interface mismatch.
275 2021-12-15 Harald Anlauf <anlauf@gmx.de>
277 Backported from master:
278 2021-12-14 Harald Anlauf <anlauf@gmx.de>
282 * frontend-passes.c (doloop_contained_procedure_code): Add several
283 checks to prevent NULL pointer dereferences on valid and invalid
284 code called within do-loops.
286 2021-12-12 Harald Anlauf <anlauf@gmx.de>
288 Backported from master:
289 2021-12-11 Harald Anlauf <anlauf@gmx.de>
292 * resolve.c (resolve_fl_procedure): Do not access CLASS components
293 before class container has been built.
295 2021-12-11 Harald Anlauf <anlauf@gmx.de>
297 Backported from master:
298 2021-12-07 Harald Anlauf <anlauf@gmx.de>
301 * array.c (gfc_ref_dimen_size): Do not generate internal error on
302 failed simplification of stride expression; just return failure.
304 2021-12-10 Harald Anlauf <anlauf@gmx.de>
306 Backported from master:
307 2021-12-08 Harald Anlauf <anlauf@gmx.de>
310 * array.c (spec_dimen_size): Fix simplification of SHAPE:
311 dimensions must be non-negative.
313 2021-12-09 Harald Anlauf <anlauf@gmx.de>
315 Backported from master:
316 2021-12-08 Harald Anlauf <anlauf@gmx.de>
319 * symbol.c (gfc_sym_get_dummy_args): Catch NULL pointer
322 2021-12-08 Harald Anlauf <anlauf@gmx.de>
324 Backported from master:
325 2021-12-07 Harald Anlauf <anlauf@gmx.de>
328 * match.c (match_case_selector): Check type of upper bound in case
331 2021-12-08 Harald Anlauf <anlauf@gmx.de>
333 Backported from master:
334 2021-12-07 Harald Anlauf <anlauf@gmx.de>
337 * frontend-passes.c (do_subscript): Ensure that array bounds are
338 of type INTEGER before performing checks on array subscripts.
340 2021-12-04 Harald Anlauf <anlauf@gmx.de>
342 Backported from master:
343 2021-11-30 Harald Anlauf <anlauf@gmx.de>
346 * array.c (expand_constructor): When encountering a constant array
347 expression or array section within a constructor, simplify it to
348 enable better expansion.
350 2021-12-04 Harald Anlauf <anlauf@gmx.de>
352 Backported from master:
353 2021-10-14 Harald Anlauf <anlauf@gmx.de>
356 * simplify.c (gfc_simplify_reshape): Replace assert by error
357 message for negative elements in SHAPE array.
359 2021-12-04 Harald Anlauf <anlauf@gmx.de>
361 Backported from master:
362 2021-11-26 Harald Anlauf <anlauf@gmx.de>
365 * check.c (gfc_check_reshape): Improve check of size of source
366 array for the RESHAPE intrinsic against the given shape when pad
367 is not given, and shape is a parameter. Try other simplifications
370 2021-12-04 Harald Anlauf <anlauf@gmx.de>
372 Backported from master:
373 2021-11-30 Harald Anlauf <anlauf@gmx.de>
376 * simplify.c (simplify_minmaxloc_nodim): Avoid NULL pointer
377 dereference when shape is not set.
379 2021-12-04 Harald Anlauf <anlauf@gmx.de>
381 Backported from master:
382 2021-12-03 Harald Anlauf <anlauf@gmx.de>
383 Steven G. Kargl <kargl@gcc.gnu.org>
386 * array.c (match_array_element_spec): Try to simplify array
387 element specifications to improve early checking.
388 * expr.c (gfc_try_simplify_expr): New. Try simplification of an
389 expression via gfc_simplify_expr. When an error occurs, roll
391 * gfortran.h (gfc_try_simplify_expr): Declare it.
393 2021-11-29 Jakub Jelinek <jakub@redhat.com>
395 Backported from master:
396 2021-11-21 Jakub Jelinek <jakub@redhat.com>
399 * trans-types.c (gfc_get_array_descr_info): Use DW_OP_deref_size 1
400 instead of DW_OP_deref for DW_AT_rank.
402 2021-11-24 Harald Anlauf <anlauf@gmx.de>
404 Backported from master:
405 2021-11-23 Harald Anlauf <anlauf@gmx.de>
408 * simplify.c (simplify_bound): Do not try to simplify
409 LBOUND/UBOUND for arrays with POINTER or ALLOCATABLE attribute.
411 2021-11-24 Harald Anlauf <anlauf@gmx.de>
413 Backported from master:
414 2021-11-23 Harald Anlauf <anlauf@gmx.de>
418 * trans-array.c (arg_evaluated_for_scalarization): Add LEN_TRIM to
419 list of intrinsics for which an optional KIND argument needs to be
420 removed before scalarization.
422 2021-11-22 Harald Anlauf <anlauf@gmx.de>
424 Backported from master:
425 2021-11-21 Harald Anlauf <anlauf@gmx.de>
426 Steven G. Kargl <kargl@gcc.gnu.org>
429 * trans-intrinsic.c (gfc_lookup_intrinsic): Helper function for
430 looking up gfortran builtin intrinsics.
431 (gfc_conv_intrinsic_atrigd): Use it.
432 (gfc_conv_intrinsic_cotan): Likewise.
433 (gfc_conv_intrinsic_cotand): Likewise.
434 (gfc_conv_intrinsic_atan2d): Likewise.
436 2021-11-16 Mikael Morin <mikael@gcc.gnu.org>
438 Backported from master:
439 2021-11-12 Mikael Morin <mikael@gcc.gnu.org>
442 * intrinsic.c (add_sym_4ind): Remove.
443 (add_functions): Use add_sym4 instead of add_sym4ind.
444 Don’t special case the index intrinsic.
445 * iresolve.c (gfc_resolve_index_func): Use the individual arguments
446 directly instead of the full argument list.
447 * intrinsic.h (gfc_resolve_index_func): Update the declaration
449 * trans-decl.c (gfc_get_extern_function_decl): Don’t modify the
450 list of arguments in the case of the index intrinsic.
451 * trans-array.h (gfc_get_intrinsic_for_expr,
452 gfc_get_proc_ifc_for_expr): New.
453 * trans-array.c (gfc_get_intrinsic_for_expr,
454 arg_evaluated_for_scalarization): New.
455 (gfc_walk_elemental_function_args): Add intrinsic procedure
456 as argument. Count arguments. Check arg_evaluated_for_scalarization.
457 * trans-intrinsic.c (gfc_walk_intrinsic_function): Update call.
458 * trans-stmt.c (get_intrinsic_for_code): New.
459 (gfc_trans_call): Update call.
461 2021-11-11 Harald Anlauf <anlauf@gmx.de>
463 Backported from master:
464 2021-11-10 Harald Anlauf <anlauf@gmx.de>
468 * check.c (gfc_check_shape): Avoid NULL pointer dereference on
470 * simplify.c (gfc_simplify_cshift): Avoid NULL pointer dereference
472 (gfc_simplify_transpose): Likewise.
474 2021-11-07 Harald Anlauf <anlauf@gmx.de>
476 Backported from master:
477 2021-10-26 Harald Anlauf <anlauf@gmx.de>
480 * resolve.c (resolve_structure_cons): Reject invalid array spec of
481 a DT component referenced in a structure constructor.
483 2021-11-07 Harald Anlauf <anlauf@gmx.de>
485 Backported from master:
486 2021-10-15 Harald Anlauf <anlauf@gmx.de>
487 Tobias Burnus <tobias@codesourcery.com>
490 * decl.c (match_clist_expr): Set rank/shape of clist initializer
492 * resolve.c (resolve_structure_cons): In a structure constructor,
493 compare shapes of array components against declared shape.
495 2021-11-07 Harald Anlauf <anlauf@gmx.de>
497 Backported from master:
498 2021-11-06 Harald Anlauf <anlauf@gmx.de>
501 * decl.c (add_init_expr_to_sym): Reject rank mismatch between
502 array and its initializer.
504 2021-11-07 Harald Anlauf <anlauf@gmx.de>
506 Backported from master:
507 2021-11-05 Harald Anlauf <anlauf@gmx.de>
510 * expr.c (simplify_parameter_variable): Copy shape of referenced
511 subobject when simplifying.
513 2021-11-07 Harald Anlauf <anlauf@gmx.de>
515 Backported from master:
516 2021-10-10 Harald Anlauf <anlauf@gmx.de>
520 * decl.c (add_init_expr_to_sym): Extend initialization of
521 parameter arrays from scalars to handle derived types.
523 2021-10-27 Harald Anlauf <anlauf@gmx.de>
525 Backported from master:
526 2021-10-26 Harald Anlauf <anlauf@gmx.de>
529 * decl.c (match_attr_spec): Remove invalid integer kind checks on
530 KIND and LEN attributes of PDTs.
532 2021-10-19 Tobias Burnus <tobias@codesourcery.com>
534 Backported from master:
535 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
538 * intrinsic.c (gfc_convert_type_warn): Fix checks by checking CLASS
539 and do typcheck in correct order for type extension.
540 * misc.c (gfc_typename): Print proper not internal CLASS type name.
542 2021-10-17 Harald Anlauf <anlauf@gmx.de>
544 Backported from master:
545 2021-10-14 Harald Anlauf <anlauf@gmx.de>
548 * check.c (gfc_check_shape): Reorder checks so that invalid KIND
549 arguments can be detected.
551 2021-10-06 Tobias Burnus <tobias@codesourcery.com>
553 Backported from master:
554 2021-10-06 Tobias Burnus <tobias@codesourcery.com>
556 * resolve.c (resolve_values): Only show
557 deprecated warning if attr.referenced.
559 2021-10-03 Harald Anlauf <anlauf@gmx.de>
561 Backported from master:
562 2021-09-30 Harald Anlauf <anlauf@gmx.de>
565 * simplify.c (simplify_size): Resolve expressions used in array
566 specifications so that SIZE can be simplified.
568 2021-10-03 Harald Anlauf <anlauf@gmx.de>
570 Backported from master:
571 2021-09-24 Harald Anlauf <anlauf@gmx.de>
574 * expr.c (is_non_constant_intrinsic): Check for intrinsics
575 excluded in constant expressions (F2018:10.1.12).
576 (gfc_is_constant_expr): Use that check.
578 2021-09-30 Harald Anlauf <anlauf@gmx.de>
580 Backported from master:
581 2021-09-29 Harald Anlauf <anlauf@gmx.de>
584 * array.c (expand_constructor): Do not dereference NULL pointer.
586 2021-09-21 Harald Anlauf <anlauf@gmx.de>
588 Backported from master:
589 2021-09-17 Harald Anlauf <anlauf@gmx.de>
592 * trans-decl.c (gfc_finish_var_decl): Disable the warning message
593 for variables moved from stack to static storange if they are
594 declared in the main, but allow the move to happen.
596 2021-09-20 Tobias Burnus <tobias@codesourcery.com>
598 * trans-openmp.c (gfc_split_omp_clauses): Don't put 'order(concurrent)'
599 on 'distribute' for combined directives, matching OpenMP 5.0
601 2021-09-19 Harald Anlauf <anlauf@gmx.de>
603 Backported from master:
604 2021-09-16 Harald Anlauf <anlauf@gmx.de>
607 * trans-expr.c (gfc_conv_procedure_call): Wrap deallocation of
608 allocatable components of optional allocatable derived type
609 procedure arguments with INTENT(OUT) into a presence check.
611 2021-09-19 Harald Anlauf <anlauf@gmx.de>
613 Backported from master:
614 2021-09-14 Harald Anlauf <anlauf@gmx.de>
617 * resolve.c (resolve_entries): Attempt to recover cleanly after
618 rejecting mismatched function entries.
620 2021-09-16 Harald Anlauf <anlauf@gmx.de>
622 Backported from master:
623 2021-09-13 Harald Anlauf <anlauf@gmx.de>
626 * expr.c (find_substring_ref): Handle given substring start and
627 end indices as signed integers, not unsigned.
629 2021-09-16 Harald Anlauf <anlauf@gmx.de>
631 Backported from master:
632 2021-09-13 Harald Anlauf <anlauf@gmx.de>
635 * decl.c (add_init_expr_to_sym): For proper initialization of
636 array-valued named constants the array bounds need to be
637 simplified before adding the initializer.
639 2021-09-11 Harald Anlauf <anlauf@gmx.de>
641 Backported from master:
642 2021-09-09 Harald Anlauf <anlauf@gmx.de>
645 * trans-expr.c (gfc_conv_substring): Do not generate substring
646 bounds check for implied do loop index variable before it actually
649 2021-09-11 Harald Anlauf <anlauf@gmx.de>
651 Backported from master:
652 2021-09-07 Harald Anlauf <anlauf@gmx.de>
655 * expr.c (find_array_element): When bounds cannot be determined as
656 constant, return error instead of aborting.
658 2021-09-05 Harald Anlauf <anlauf@gmx.de>
660 Backported from master:
661 2021-08-31 Harald Anlauf <anlauf@gmx.de>
664 * simplify.c (substring_has_constant_len): Minimize checks for
665 substring expressions being allowed.
667 2021-09-05 Harald Anlauf <anlauf@gmx.de>
669 Backported from master:
670 2021-08-19 Harald Anlauf <anlauf@gmx.de>
673 * simplify.c (substring_has_constant_len): New.
674 (gfc_simplify_len): Handle case of substrings with constant
677 2021-09-03 Harald Anlauf <anlauf@gmx.de>
679 Backported from master:
680 2021-08-30 Harald Anlauf <anlauf@gmx.de>
683 * resolve.c (resolve_allocate_expr): An unlimited polymorphic
684 argument to ALLOCATE must be ALLOCATABLE or a POINTER. Fix the
687 2021-09-03 Harald Anlauf <anlauf@gmx.de>
689 Backported from master:
690 2021-08-30 Harald Anlauf <anlauf@gmx.de>
693 * match.c (gfc_match_goto): Allow for whitespace in parsing list
696 2021-08-30 Harald Anlauf <anlauf@gmx.de>
698 Backported from master:
699 2021-08-28 Harald Anlauf <anlauf@gmx.de>
702 * resolve.c (resolve_entries): For functions of type CHARACTER
703 tighten the checks for matching characteristics.
705 2021-08-28 Paul Thomas <pault@gcc.gnu.org>
707 Backported from master:
708 2021-05-06 Paul Thomas <pault@gcc.gnu.org>
712 * class.c (gfc_build_class_symbol): Remove the error that
713 disables assumed size class arrays. Class array types that are
714 not deferred shape or assumed rank are given a unique name and
715 placed in the procedure namespace.
716 * trans-array.c (gfc_trans_g77_array): Obtain the data pointer
718 (gfc_trans_dummy_array_bias): Suppress the runtime error for
719 extent violations in explicit shape class arrays because it
721 * trans-expr.c (gfc_conv_procedure_call): Handle assumed size
722 class actual arguments passed to non-descriptor formal args by
723 using the data pointer, stored as the symbol's backend decl.
725 2021-08-26 Harald Anlauf <anlauf@gmx.de>
727 Backported from master:
728 2021-08-24 Harald Anlauf <anlauf@gmx.de>
731 * trans-decl.c (gfc_finish_var_decl): Adjust check to handle
732 implicit SAVE as well as variables in the main program. Improve
733 warning message text.
735 2021-08-16 Harald Anlauf <anlauf@gmx.de>
737 Backported from master:
738 2021-08-15 Harald Anlauf <anlauf@gmx.de>
741 * match.c (sync_statement): Replace %v code by %e in gfc_match to
742 allow for function references as STAT and ERRMSG arguments.
743 * resolve.c (resolve_sync): Adjust checks of STAT= and ERRMSG= to
744 being definable arguments. Function references with a data
745 pointer result are accepted.
746 * trans-stmt.c (gfc_trans_sync): Adjust assertion.
748 2021-08-11 Harald Anlauf <anlauf@gmx.de>
750 Backported from master:
751 2021-07-28 Harald Anlauf <anlauf@gmx.de>
754 * expr.c (gfc_check_vardef_context): Add check for KIND and LEN
756 * match.c (gfc_match): Fix comment for %v code.
757 (gfc_match_allocate, gfc_match_deallocate): Replace use of %v code
758 by %e in gfc_match to allow for function references as STAT and
760 * resolve.c (resolve_allocate_deallocate): Avoid NULL pointer
761 dereferences and shortcut for bad STAT and ERRMSG argument to
762 (DE)ALLOCATE. Remove bogus parts of checks for STAT and ERRMSG.
764 2021-07-28 Harald Anlauf <anlauf@gmx.de>
766 Backported from master:
767 2021-07-23 Harald Anlauf <anlauf@gmx.de>
770 * check.c (array_check): Adjust check for the case of CLASS
773 2021-07-28 Harald Anlauf <anlauf@gmx.de>
775 Backported from master:
776 2021-07-21 Harald Anlauf <anlauf@gmx.de>
779 * target-memory.c (gfc_interpret_derived): Size of array component
780 of derived type can only be computed here for explicit shape.
781 * trans-types.c (gfc_get_nodesc_array_type): Do not dereference
784 2021-07-28 Harald Anlauf <anlauf@gmx.de>
786 Backported from master:
787 2021-07-18 Harald Anlauf <anlauf@gmx.de>
790 * io.c (resolve_tag_format): Extend FORMAT check to unknown type.
792 2021-07-28 Release Manager
794 * GCC 11.2.0 released.
796 2021-07-15 Harald Anlauf <anlauf@gmx.de>
798 Backported from master:
799 2021-07-14 Harald Anlauf <anlauf@gmx.de>
802 * trans-expr.c (gfc_trans_class_init_assign): Call
803 gfc_conv_expr_present only for dummy variables.
805 2021-07-08 Thomas Koenig <tkoenig@gcc.gnu.org>
807 Backported from master:
808 2021-07-06 Thomas Koenig <tkoenig@gcc.gnu.org>
811 * frontend-passes.c (traverse_io_block): Adjust test for
812 when a variable is eligible for the transformation to
815 2021-06-19 Harald Anlauf <anlauf@gmx.de>
817 Backported from master:
818 2021-06-18 Harald Anlauf <anlauf@gmx.de>
822 * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Unconditionally
823 convert result of min/max to result type.
825 2021-06-18 Harald Anlauf <anlauf@gmx.de>
827 Backported from master:
828 2021-06-16 Harald Anlauf <anlauf@gmx.de>
832 * expr.c (gfc_check_pointer_assign): Avoid NULL pointer
834 * match.c (gfc_match_pointer_assignment): Likewise.
835 * parse.c (gfc_check_do_variable): Avoid comparison with NULL
838 2021-06-17 Jakub Jelinek <jakub@redhat.com>
840 Backported from master:
841 2021-06-09 Jakub Jelinek <jakub@redhat.com>
844 * trans-openmp.c (gfc_omp_finish_clause): Gimplify OMP_CLAUSE_SIZE.
846 2021-06-16 José Rui Faustino de Sousa <jrfsousa@gmail.com>
849 * trans-expr.c (gfc_conv_procedure_call): Evaluate function result
850 and then pass a pointer.
852 2021-06-06 Andre Vehreschild <vehre@gcc.gnu.org>
853 Steve Kargl <kargl@gcc.gnu.org>
856 * trans-decl.c (gfc_build_builtin_function_decls): Move decl.
857 * trans-intrinsic.c (conv_intrinsic_random_init): Use bool for
858 lib-call of caf_random_init instead of logical (4-byte).
859 * trans.h: Add tree var for random_init.
861 2021-06-04 Harald Anlauf <anlauf@gmx.de>
863 Backported from master:
864 2021-06-04 Harald Anlauf <anlauf@gmx.de>
867 * frontend-passes.c (inline_matmul_assign): Do not inline matmul
868 if the assignment to the resulting array if it is not of canonical
869 type (real/integer/complex/logical).
871 2021-05-28 Harald Anlauf <anlauf@gmx.de>
873 Backported from master:
874 2021-05-17 Harald Anlauf <anlauf@gmx.de>
877 * trans-decl.c (gfc_finish_var_decl): Add check for explicit SAVE
880 2021-05-28 Harald Anlauf <anlauf@gmx.de>
882 Backported from master:
883 2021-05-27 Harald Anlauf <anlauf@gmx.de>
886 * trans-array.c (gfc_conv_ss_startstride): Do not call check for
887 presence of a dummy argument when a symbol actually refers to a
890 2021-05-28 Harald Anlauf <anlauf@gmx.de>
892 Backported from master:
893 2021-05-27 Harald Anlauf <anlauf@gmx.de>
896 * trans-intrinsic.c (gfc_conv_intrinsic_size): Use CLASS data
897 attributes for CLASS arrays for generation of runtime error.
899 2021-05-25 Harald Anlauf <anlauf@gmx.de>
901 Backported from master:
902 2021-05-23 Harald Anlauf <anlauf@gmx.de>
905 * trans-expr.c (gfc_conv_procedure_call): Adjust check for
906 implicit conversion of actual argument to an unlimited polymorphic
909 2021-05-25 Tobias Burnus <tobias@codesourcery.com>
911 Backported from master:
912 2021-05-25 Tobias Burnus <tobias@codesourcery.com>
913 Johannes Nendwich <a08727063@unet.univie.ac.at>
915 * intrinsic.texi (GERROR, GETARGS, GETLOG, NORM2, PARITY, RANDOM_INIT,
916 RANDOM_NUMBER): Fix typos and copy'n'paste errors.
918 2021-05-23 Tobias Burnus <tobias@codesourcery.com>
920 Backported from master:
921 2021-05-23 Tobias Burnus <tobias@codesourcery.com>
923 * intrinsic.texi (ATOMIC_ADD, ATOMIC_FETCH_ADD): Use the
924 proper variable name in the description.
926 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
928 Backported from master:
929 2021-05-17 Tobias Burnus <tobias@codesourcery.com>
932 * resolve.c (gfc_resolve_code): Reject nonintrinsic assignments in
935 2021-05-17 Tobias Burnus <tobias@codesourcery.com>
937 Backported from master:
938 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
940 * resolve.c (resolve_symbol): Handle implicit SAVE of main-program
941 for vars in 'omp threadprivate' and 'omp declare target'.
943 2021-05-05 Harald Anlauf <anlauf@gmx.de>
945 Backported from master:
946 2021-05-05 Harald Anlauf <anlauf@gmx.de>
949 * interface.c (gfc_compare_actual_formal): Continue checks after
950 emitting warning for argument length mismatch.
951 * trans-expr.c (gfc_conv_procedure_call): Check for NULL pointer
954 2021-04-29 Tobias Burnus <tobias@codesourcery.com>
956 Backported from master:
957 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
959 * openmp.c (gfc_match_omp_variable_list): Gobble whitespace before
960 checking whether a '%' or parenthesis-open follows as next character.
962 2021-04-27 Harald Anlauf <anlauf@gmx.de>
964 Backported from master:
965 2021-04-24 Harald Anlauf <anlauf@gmx.de>
968 * expr.c (gfc_check_vardef_context): Extend check to allow pointer
969 from a function reference.
971 2021-04-27 Harald Anlauf <anlauf@gmx.de>
973 Backported from master:
974 2021-04-24 Harald Anlauf <anlauf@gmx.de>
977 * check.c (variable_check): Allow function reference having a data
979 (arg_strlen_is_zero): New function.
980 (gfc_check_fgetputc_sub): Add static check of character and status
982 (gfc_check_fgetput_sub): Likewise.
983 * intrinsic.c (add_subroutines): Fix argument name for the
984 character argument to intrinsic subroutines fget[c], fput[c].
986 2021-04-27 Release Manager
988 * GCC 11.1.0 released.
990 2021-04-20 Paul Thomas <pault@gcc.gnu.org>
993 * trans-decl.c (gfc_get_symbol_decl): Replace test for host
994 association with a check that the current and symbol namespaces
997 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
999 * lang.opt (fopenacc-kernels=): Remove.
1001 2021-04-16 José Rui Faustino de Sousa <jrfsousa@gmail.com>
1004 * trans-array.c (gfc_trans_deferred_array): Add code to initialize
1005 pointers and allocatables with correct TKR parameters.
1007 2021-04-16 José Rui Faustino de Sousa <jrfsousa@gmail.com>
1010 * resolve.c: Add association check before de-referencing pointer.
1012 2021-04-16 Harald Anlauf <anlauf@gmx.de>
1013 Paul Thomas <pault@gcc.gnu.org>
1016 * module.c (write_symtree): Do not write interface of intrinsic
1017 procedure to module file for F2003 and newer.
1019 2021-04-15 Paul Thomas <pault@gcc.gnu.org>
1022 * symbol.c: Remove trailing white space.
1023 * trans-array.c (gfc_trans_create_temp_array): Create a class
1024 temporary for class expressions and assign the new descriptor
1026 (build_class_array_ref): If the class expr can be extracted,
1027 then use that for 'decl'. Class function results are reliably
1028 handled this way. Call gfc_find_and_cut_at_last_class_ref to
1029 eliminate largely redundant code. Remove dead code and recast
1030 the rest of the code to extract 'decl' for remaining cases.
1031 Call gfc_build_spanned_array_ref.
1032 (gfc_alloc_allocatable_for_assignment): Use class descriptor
1033 element length for 'elemsize1'. Eliminate repeat set of dtype
1034 for class expressions.
1035 * trans-expr.c (gfc_find_and_cut_at_last_class_ref): Include
1036 additional code from build_class_array_ref, and use optional
1037 gfc_typespec pointer argument.
1038 (gfc_trans_scalar_assign): Make use of pre and post blocks for
1039 all class expressions.
1040 * trans.c (get_array_span): For unlimited polymorphic exprs
1041 multiply the span by the value of the _len field.
1042 (gfc_build_spanned_array_ref): New function.
1043 (gfc_build_array_ref): Call gfc_build_spanned_array_ref and
1044 eliminate repeated code.
1045 * trans.h: Add arg to gfc_find_and_cut_at_last_class_ref and
1046 add prototype for gfc_build_spanned_array_ref.
1048 2021-04-14 Martin Liska <mliska@suse.cz>
1050 * intrinsic.texi: The table has first column empty and it makes
1051 trouble when processing makeinfo --xml output.
1053 2021-04-09 Tobias Burnus <tobias@codesourcery.com>
1056 * trans-types.c (gfc_get_function_type): Also generate hidden
1057 coarray argument for character arguments.
1059 2021-04-03 Paul Thomas <pault@gcc.gnu.org>
1062 * interface.c (compare_parameter): The codimension attribute is
1063 applied to the _data field of class formal arguments.
1065 2021-04-01 Harald Anlauf <anlauf@gmx.de>
1068 * simplify.c (gfc_simplify_transpose): Properly initialize
1071 2021-03-28 Paul Thomas <pault@gcc.gnu.org>
1074 * trans-expr.c (gfc_conv_procedure_call): Use the _data attrs
1075 for class expressions and detect proc pointer evaluations by
1076 the non-null actual argument list.
1078 2021-03-27 Steve Kargl <kargl@gcc.gnu.org>
1080 * misc.c (gfc_typename): Fix off-by-one in buffer sizes.
1082 2021-03-26 Tobias Burnus <tobias@codesourcery.com>
1085 * intrinsic.c (gfc_intrinsic_func_interface): Set
1086 attr.proc = PROC_INTRINSIC if FL_PROCEDURE.
1088 2021-03-24 Tobias Burnus <tobias@codesourcery.com>
1091 * resolve.c (resolve_operator): Make 'msg' buffer larger
1094 2021-03-23 Tobias Burnus <tobias@codesourcery.com>
1097 * trans-decl.c (build_function_decl): Add comment;
1098 increment hidden_typelist for caf_token/caf_offset.
1099 * trans-types.c (gfc_get_function_type): Add comment;
1100 add missing caf_token/caf_offset args.
1102 2021-03-22 Tobias Burnus <tobias@codesourcery.com>
1105 * match.c (select_type_set_tmp, gfc_match_select_type,
1106 gfc_match_select_rank): Fix 'name' buffersize to avoid out of bounds.
1107 * resolve.c (resolve_select_type): Likewise.
1109 2021-03-19 Thomas Koenig <tkoenig@gcc.gnu.org>
1111 * frontend-passes.c (inline_limit_check): Add rank_a
1112 argument. If a is rank 1, set the second dimension to 1.
1113 (inline_matmul_assign): Pass rank_a argument to inline_limit_check.
1114 (call_external_blas): Likewise.
1116 2021-03-15 Thomas Koenig <tkoenig@gcc.gnu.org>
1119 * frontend-passes.c (doloop_contained_procedure_code):
1120 Properly handle EXEC_IOLENGTH.
1122 2021-03-15 Paul Thomas <pault@gcc.gnu.org>
1125 * trans-stmt.c (gfc_trans_allocate): Mark the initialization
1126 assignment by setting init_flag.
1128 2021-03-14 Harald Anlauf <anlauf@gmx.de>
1129 Paul Thomas <pault@gcc.gnu.org>
1131 * trans-expr.c (gfc_conv_procedure_call): Fix runtime checks for
1133 * trans-intrinsic.c (gfc_conv_intrinsic_size): Likewise.
1135 2021-03-13 Paul Thomas <pault@gcc.gnu.org>
1138 * trans-array.c (gfc_conv_expr_descriptor): For deferred length
1139 length components use the ss_info string length instead of
1140 gfc_get_expr_charlen. Make sure that the deferred string length
1141 is a variable before assigning to it. Otherwise use the expr.
1142 * trans-expr.c (gfc_conv_string_length): Make sure that the
1143 deferred string length is a variable before assigning to it.
1145 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
1148 * resolve.c (resolve_symbol): Accept vars which are in DATA
1149 and hence (either) implicit SAVE (or in common).
1151 2021-03-10 Harald Anlauf <anlauf@gmx.de>
1154 * data.c (gfc_assign_data_value): Reject non-constant character
1156 * trans-array.c (gfc_conv_array_initializer): Restrict loop to
1157 elements which are defined to avoid NULL pointer dereference.
1159 2021-03-10 Tobias Burnus <tobias@codesourcery.com>
1161 * intrinsic.texi (MIN): Correct 'maximum' to 'minimum'.
1163 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
1166 * trans-intrinsic.c (build_round_expr): Do not implicitly assume
1167 that __float128 is the 128-bit floating-point type.
1169 2021-03-08 Harald Anlauf <anlauf@gmx.de>
1172 * data.c (gfc_assign_data_value): Reject variable with PARAMETER
1173 attribute in DATA statement.
1175 2021-03-05 Tobias Burnus <tobias@codesourcery.com>
1179 * invoke.texi (-freal{4,8}-real-*): Extend description.
1180 * primary.c (match_real_constant): Also promote real literals
1181 with '_kind' number.
1183 2021-03-04 Tobias Burnus <tobias@codesourcery.com>
1186 * decl.c (gfc_match_old_kind_spec, gfc_match_kind_spec): Avoid
1187 redoing kind conversions.
1188 * primary.c (match_real_constant): Likewise.
1190 2021-02-28 Jakub Jelinek <jakub@redhat.com>
1193 * openmp.c (gfc_omp_requires_add_clause): Fix up diagnostic message
1195 (resolve_omp_clauses): Likewise.
1197 2021-02-28 Jakub Jelinek <jakub@redhat.com>
1200 * frontend-passes.c (doloop_code): Replace double space in diagnostics
1201 with a single space.
1203 2021-02-24 Paul Thomas <pault@gcc.gnu.org>
1206 * trans-expr.c (gfc_conv_derived_to_class): Add optional arg.
1207 'derived_array' to hold the fixed, parmse expr in the case of
1208 assumed rank formal arguments. Deal with optional arguments.
1209 (gfc_conv_procedure_call): Null 'derived' array for each actual
1210 argument. Add its address to the call to gfc_conv_derived_to_
1211 class. Access the 'data' field of scalar descriptors before
1212 deallocating allocatable components. Also strip NOPs before the
1213 calls to gfc_deallocate_alloc_comp. Use 'derived' array as the
1214 input to gfc_deallocate_alloc_comp if it is available.
1215 * trans.h : Include the optional argument 'derived_array' to
1216 the prototype of gfc_conv_derived_to_class. The default value
1219 2021-02-23 Paul Thomas <pault@gcc.gnu.org>
1222 * resolve.c (resolve_fl_procedure): Include class results in
1223 the test for F2018, C15100.
1224 * trans-array.c (get_class_info_from_ss): Do not use the saved
1225 descriptor to obtain the class expression for variables. Use
1226 gfc_get_class_from_expr instead.
1228 2021-02-23 Harald Anlauf <anlauf@gmx.de>
1231 * simplify.c (gfc_simplify_reshape): Set string length for
1232 character arguments.
1234 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
1237 * trans-openmp.c (gfc_omp_is_optional_argument): Regard optional
1238 dummy procs as nonoptional as no special treatment is needed.
1240 2021-02-21 Harald Anlauf <anlauf@gmx.de>
1242 * trans-expr.c (gfc_conv_procedure_call): Do not add clobber to
1243 allocatable intent(out) argument.
1245 2021-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1248 * match.c (gfc_match_namelist): If BT_UNKNOWN, check for
1249 IMPLICIT NONE and and issue an error, otherwise set the type
1250 to its IMPLICIT type so that any subsequent use of objects will
1251 will confirm their types.
1253 2021-02-19 Harald Anlauf <anlauf@gmx.de>
1255 * symbol.c (gfc_add_flavor): Reverse order of conditions.
1257 2021-02-19 Tobias Burnus <tobias@codesourcery.com>
1260 * dependency.c (gfc_dep_resolver): Fix coarray handling.
1262 2021-02-19 Tobias Burnus <tobias@codesourcery.com>
1267 2021-02-19 Tobias Burnus <tobias@codesourcery.com>
1270 * simplify.c (simplify_bound_dim): Honor DIMEN_ELEMENT
1273 2021-02-17 Julian Brown <julian@codesourcery.com>
1275 * openmp.c (resolve_omp_clauses): Disallow selecting components
1276 of arrays of derived type.
1278 2021-02-17 Julian Brown <julian@codesourcery.com>
1280 * trans-openmp.c (gfc_trans_omp_clauses): Handle element selection
1281 for arrays of derived types.
1283 2021-02-16 Tobias Burnus <tobias@codesourcery.com>
1285 * expr.c (gfc_is_simplify_contiguous): Handle REF_INQUIRY, i.e.
1286 %im and %re which are EXPR_VARIABLE.
1287 * openmp.c (resolve_omp_clauses): Diagnose %re/%im explicitly.
1289 2021-02-16 Tobias Burnus <tobias@codesourcery.com>
1292 * io.c (resolve_tag_format): Reject BT_DERIVED/CLASS/VOID
1293 as (array-valued) FORMAT tag.
1295 2021-02-12 Tobias Burnus <tobias@codesourcery.com>
1298 * trans-expr.c (gfc_conv_procedure_call): Don't reset
1299 rank of assumed-rank array.
1301 2021-02-11 Paul Thomas <pault@gcc.gnu.org>
1304 * match.c (gfc_match_call): Include associate names as possible
1305 entities with typebound subroutines. The target needs to be
1306 resolved for the type.
1308 2021-02-11 Paul Thomas <pault@gcc.gnu.org>
1311 * primary.c (gfc_match_varspec): Test for non-null 'previous'
1312 before using its name in the error message.
1314 2021-02-11 Tobias Burnus <tobias@codesourcery.com>
1316 * intrinsic.texi (FINDLOC): Add 'MASK' to argument table.
1317 (MAXLOC, MAXVAL, MINLOC, MINVAL): For 'MASK', remove 'an
1318 array' as scalars are also permitted.
1320 2021-02-10 Julian Brown <julian@codesourcery.com>
1323 * openmp.c (resolve_omp_clauses): Omit OpenACC update in
1324 contiguity check and stride-specified error.
1326 2021-02-04 Julian Brown <julian@codesourcery.com>
1328 * openmp.c (resolve_omp_clauses): Omit OpenACC update in
1329 contiguity check and stride-specified error.
1331 2021-02-04 Julian Brown <julian@codesourcery.com>
1333 * trans-openmp.c (gfc_trans_omp_clauses): Use class_pointer attribute
1336 2021-02-04 Julian Brown <julian@codesourcery.com>
1338 * trans-openmp.c (gfc_trans_omp_clauses): Fix dereferencing for
1341 2021-02-04 Tobias Burnus <tobias@codesourcery.com>
1343 * openmp.c (resolve_omp_clauses): Explicitly diagnose
1344 substrings as not permitted.
1346 2021-02-03 Jeff Law <law@redhat.com>
1348 * intrinsic.texi (ANINT): Fix typo.
1350 2021-02-03 Tobias Burnus <tobias@codesourcery.com>
1353 * dependency.c (gfc_dep_resolver): Treat local access
1354 to coarrays like any array access in dependency analysis.
1356 2021-01-28 Harald Anlauf <anlauf@gmx.de>
1359 * trans.c (gfc_call_malloc): Allocate area of size 1 if passed
1360 size is NULL (as documented).
1362 2021-01-27 Paul Thomas <pault@gcc.gnu.org>
1366 * trans-expr.c (gfc_conv_procedure_call): Suppress the call to
1367 gfc_conv_intrinsic_to_class for unlimited polymorphic procedure
1369 (gfc_trans_assignment_1): Similarly suppress class assignment
1370 for class valued procedure pointers.
1372 2021-01-27 Paul Thomas <pault@gcc.gnu.org>
1375 * trans-array.c (gfc_conv_expr_descriptor): Include elemental
1376 procedure pointers in the assert under the comment 'elemental
1377 function' and eliminate the second, spurious assert.
1379 2021-01-25 Harald Anlauf <anlauf@gmx.de>
1382 * data.c (create_character_initializer): Check substring indices
1384 (gfc_assign_data_value): Catch error returned from
1385 create_character_initializer.
1387 2021-01-25 Tobias Burnus <tobias@codesourcery.com>
1389 * intrinsic.texi (CO_BROADCAST, CO_MIN, CO_REDUCE, CO_SUM): Fix typos.
1391 2021-01-25 Steve Kargl <kargl@gcc.gnu.org>
1394 * resolve.c (resolve_charlen): Check that length expression is
1395 present before testing for scalar/integer..
1397 2021-01-22 Paul Thomas <pault@gcc.gnu.org>
1400 * trans-intrinsic.c (gfc_conv_associated): Do not add a _data
1401 component for scalar class function targets. Instead, fix the
1402 function result and access the _data from that.
1404 2021-01-21 Jorge D'Elia <jdelia@cimec.unl.edu.ar>
1406 * intrinsic.texi (CO_MAX): Fix typo.
1408 2021-01-21 Paul Thomas <pault@gcc.gnu.org>
1411 * decl.c (gfc_match_modproc): It is not an error to find a
1412 module procedure declaration within a contains block.
1413 * expr.c (gfc_check_vardef_context): Pure procedure result is
1414 assignable. Change 'own_scope' accordingly.
1415 * resolve.c (resolve_typebound_procedure): A procedure that
1416 has the module procedure attribute is almost certainly a
1417 module procedure, whatever its interface.
1419 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
1422 * openmp.c (resolve_omp_clauses): Change use_device_ptr
1423 to use_device_addr for unless type(c_ptr); check all
1424 list item for is_device_ptr.
1426 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
1428 * dump-parse-tree.c (show_omp_clauses): Handle detach clause.
1429 * frontend-passes.c (gfc_code_walker): Walk detach expression.
1430 * gfortran.h (struct gfc_omp_clauses): Add detach field.
1431 (gfc_c_intptr_kind): New.
1432 * openmp.c (gfc_free_omp_clauses): Free detach clause.
1433 (gfc_match_omp_detach): New.
1434 (enum omp_mask1): Add OMP_CLAUSE_DETACH.
1435 (enum omp_mask2): Remove OMP_CLAUSE_DETACH.
1436 (gfc_match_omp_clauses): Handle OMP_CLAUSE_DETACH for OpenMP.
1437 (OMP_TASK_CLAUSES): Add OMP_CLAUSE_DETACH.
1438 (resolve_omp_clauses): Prevent use of detach with mergeable and
1439 overriding the data sharing mode of the event handle.
1440 * trans-openmp.c (gfc_trans_omp_clauses): Handle detach clause.
1441 * trans-types.c (gfc_c_intptr_kind): New.
1442 (gfc_init_kinds): Initialize gfc_c_intptr_kind.
1444 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
1446 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
1447 ...this. Add extra argument.
1449 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1451 * gfortran.h (gfc_resolve_substring): Add prototype.
1452 * primary.c (match_string_constant): Simplify substrings with
1453 constant starting and ending points.
1454 * resolve.c: Rename resolve_substring to gfc_resolve_substring.
1455 (gfc_resolve_ref): Use renamed function gfc_resolve_substring.
1457 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1460 * resolve.c (resolve_component): Derived type components with
1461 ALLOCATABLE or POINTER attribute shall have a deferred shape.
1463 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1466 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1469 * resolve.c (resolve_component): Derived type components with
1470 ALLOCATABLE or POINTER attribute shall have a deferred shape.
1472 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1475 * resolve.c (resolve_component): Derived type components with
1476 ALLOCATABLE or POINTER attribute shall have a deferred shape.
1478 2021-01-08 Paul Thomas <pault@gcc.gnu.org>
1481 * trans-expr.c (gfc_conv_component_ref): Remove the condition
1482 that deferred character length components only be allocatable.
1484 2021-01-08 Paul Thomas <pault@gcc.gnu.org>
1487 * simplify.c (is_constant_array_expr): If an array constructor
1488 expression has elements other than constants or structures, try
1489 fixing the expression with gfc_reduce_init_expr. Also, if shape
1490 is NULL, obtain the array size and set it.
1492 2021-01-07 Paul Thomas <pault@gcc.gnu.org>
1495 * resolve.c (find_array_spec): Put static prototype for
1496 resolve_assoc_var before this function and call for associate
1499 2021-01-06 Harald Anlauf <anlauf@gmx.de>
1501 * resolve.c (resolve_component): Add check for valid CLASS
1502 reference before trying to access CLASS data.
1504 2021-01-04 Martin Liska <mliska@suse.cz>
1506 * ChangeLog-2018: Remove duplicate ChangeLog entries.
1508 2021-01-01 Harald Anlauf <anlauf@gmx.de>
1510 * class.c (gfc_find_vtab): Add check on attribute is_class.
1512 2021-01-01 Jakub Jelinek <jakub@redhat.com>
1514 * gfortranspec.c (lang_specific_driver): Update copyright notice
1516 * gfc-internals.texi: Bump @copying's copyright year.
1517 * gfortran.texi: Ditto.
1518 * intrinsic.texi: Ditto.
1519 * invoke.texi: Ditto.
1521 2021-01-01 Jakub Jelinek <jakub@redhat.com>
1523 * ChangeLog-2020: Rotate ChangeLog. New file.
1526 Copyright (C) 2021 Free Software Foundation, Inc.
1528 Copying and distribution of this file, with or without modification,
1529 are permitted in any medium without royalty provided the copyright
1530 notice and this notice are preserved.