]> gcc.gnu.org Git - gcc.git/blame - gcc/fortran/ChangeLog
Daily bump.
[gcc.git] / gcc / fortran / ChangeLog
CommitLineData
11581a27
GA
12022-01-23 Harald Anlauf <anlauf@gmx.de>
2
3 Backported from master:
4 2022-01-15 Harald Anlauf <anlauf@gmx.de>
5
6 PR fortran/83079
7 * target-memory.c (gfc_interpret_character): Result length is
8 in bytes and thus depends on the character kind.
9 * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Compute correct
10 string length for the result of the TRANSFER intrinsic and for
11 temporaries for the different character kinds.
12
448e9a53
GA
132022-01-20 Harald Anlauf <anlauf@gmx.de>
14
15 Backported from master:
16 2022-01-18 Harald Anlauf <anlauf@gmx.de>
17
18 PR fortran/103692
19 * array.c (gfc_expand_constructor): Handle zero-sized array
20 constructors.
21
03ccfc8b
GA
222022-01-17 Mikael Morin <mikael@gcc.gnu.org>
23
24 Backported from master:
25 2022-01-09 Mikael Morin <mikael@gcc.gnu.org>
26
27 PR fortran/103789
28 * trans-array.c (arg_evaluated_for_scalarization): Add MASKL, MASKR,
29 SCAN and VERIFY to the list of intrinsics whose KIND argument is to be
30 ignored.
31
5c725580
GA
322022-01-16 Mikael Morin <mikael@gcc.gnu.org>
33
34 Backported from master:
35 2022-01-09 Mikael Morin <mikael@gcc.gnu.org>
36
37 PR fortran/103789
38 * trans-array.c (arg_evaluated_for_scalarization): Add MASKL, MASKR,
39 SCAN and VERIFY to the list of intrinsics whose KIND argument is to be
40 ignored.
41
422022-01-16 Mikael Morin <mikael@gcc.gnu.org>
43
44 Backported from master:
45 2022-01-16 Mikael Morin <mikael@gcc.gnu.org>
46
47 PR fortran/87711
48 PR fortran/97896
49 * trans-array.c (arg_evaluated_for_scalarization): Handle keyword and
50 non-keyword arguments separatedly. Adapt the expected argument index
51 for KIND to each intrinsic in the non-keyword case.
52
532022-01-16 Harald Anlauf <anlauf@gmx.de>
54
55 Backported from master:
56 2022-01-14 Harald Anlauf <anlauf@gmx.de>
57
58 PR fortran/103782
59 * expr.c (gfc_simplify_expr): Adjust logic for when to scalarize a
60 call of an intrinsic which may have been overloaded.
61
622022-01-16 Harald Anlauf <anlauf@gmx.de>
63
64 Backported from master:
65 2022-01-13 Harald Anlauf <anlauf@gmx.de>
66
67 PR fortran/67804
68 * primary.c (gfc_match_structure_constructor): Recover from errors
69 that occurred while checking for a valid structure constructor in
70 a DATA statement.
71
68bac9e8
GA
722022-01-15 Harald Anlauf <anlauf@gmx.de>
73
74 Backported from master:
75 2022-01-09 Harald Anlauf <anlauf@gmx.de>
76
77 PR fortran/101762
78 * expr.c (gfc_check_pointer_assign): For pointer initialization
79 targets, check that subscripts and substring indices in
80 specifications are constant expressions.
81
822022-01-15 Harald Anlauf <anlauf@gmx.de>
83
84 Backported from master:
85 2022-01-09 Harald Anlauf <anlauf@gmx.de>
86
87 PR fortran/103777
88 * simplify.c (gfc_simplify_maskr): Check validity of argument 'I'
89 before simplifying.
90 (gfc_simplify_maskl): Likewise.
91
d4a1d3c4
GA
922022-01-02 Harald Anlauf <anlauf@gmx.de>
93
94 Backported from master:
95 2021-12-29 Harald Anlauf <anlauf@gmx.de>
96
97 PR fortran/102332
98 * expr.c (gfc_get_variable_expr): Avoid NULL pointer dereferences
99 during handling of errors with invalid uses of CLASS variables.
100 * match.c (select_type_set_tmp): Likewise.
101 * primary.c (gfc_match_varspec): Likewise.
102 * resolve.c (resolve_variable): Likewise.
103 (resolve_select_type): Likewise.
104
3b2b1814
GA
1052021-12-27 Harald Anlauf <anlauf@gmx.de>
106
107 Backported from master:
108 2021-12-22 Harald Anlauf <anlauf@gmx.de>
109
110 PR fortran/103776
111 * match.c (match_case_selector): Reject expressions in CASE
112 selector which are not scalar.
113
1142021-12-27 Harald Anlauf <anlauf@gmx.de>
115
116 Backported from master:
117 2021-12-22 Harald Anlauf <anlauf@gmx.de>
118
119 PR fortran/103778
120 * check.c (is_c_interoperable): A BOZ literal constant is not
121 interoperable.
122
1232021-12-27 Harald Anlauf <anlauf@gmx.de>
124
125 Backported from master:
126 2021-11-18 Harald Anlauf <anlauf@gmx.de>
127 Steven G. Kargl <kargl@gcc.gnu.org>
128
129 PR fortran/101329
130 * check.c (is_c_interoperable): Reject NULL() as it is not
131 interoperable.
132
5a511f2a
GA
1332021-12-19 Harald Anlauf <anlauf@gmx.de>
134
135 Backported from master:
136 2021-12-10 Harald Anlauf <anlauf@gmx.de>
137
138 PR fortran/103418
139 * check.c (variable_check): Replace previous check of procedure
140 dummy arguments with INTENT(IN) attribute when passed to intrinsic
141 procedures by gfc_check_vardef_context.
142 * expr.c (gfc_check_vardef_context): Correct check of INTENT(IN)
143 dummy arguments for the case of sub-components of a CLASS pointer.
144
1452021-12-19 Harald Anlauf <anlauf@gmx.de>
146
147 Backported from master:
148 2021-12-18 Harald Anlauf <anlauf@gmx.de>
149
150 PR fortran/103412
151 * check.c (gfc_check_sizeof): Reject BOZ type argument.
152
d6aa6322
GA
1532021-12-15 Harald Anlauf <anlauf@gmx.de>
154
155 Backported from master:
156 2021-12-14 Harald Anlauf <anlauf@gmx.de>
157
158 PR fortran/103717
159 * frontend-passes.c (doloop_code): Prevent NULL pointer
160 dereference when checking for passing a do-loop variable to a
161 contained procedure with an interface mismatch.
162
1632021-12-15 Harald Anlauf <anlauf@gmx.de>
164
165 Backported from master:
166 2021-12-14 Harald Anlauf <anlauf@gmx.de>
167
168 PR fortran/103718
169 PR fortran/103719
170 * frontend-passes.c (doloop_contained_procedure_code): Add several
171 checks to prevent NULL pointer dereferences on valid and invalid
172 code called within do-loops.
173
7054e851
GA
1742021-12-12 Harald Anlauf <anlauf@gmx.de>
175
176 Backported from master:
177 2021-12-11 Harald Anlauf <anlauf@gmx.de>
178
179 PR fortran/103606
180 * resolve.c (resolve_fl_procedure): Do not access CLASS components
181 before class container has been built.
182
a316bd50
GA
1832021-12-11 Harald Anlauf <anlauf@gmx.de>
184
185 Backported from master:
186 2021-12-07 Harald Anlauf <anlauf@gmx.de>
187
188 PR fortran/103588
189 * array.c (gfc_ref_dimen_size): Do not generate internal error on
190 failed simplification of stride expression; just return failure.
191
894295ad
GA
1922021-12-10 Harald Anlauf <anlauf@gmx.de>
193
194 Backported from master:
195 2021-12-08 Harald Anlauf <anlauf@gmx.de>
196
197 PR fortran/103610
198 * array.c (spec_dimen_size): Fix simplification of SHAPE:
199 dimensions must be non-negative.
200
8e8fd7de
GA
2012021-12-09 Harald Anlauf <anlauf@gmx.de>
202
203 Backported from master:
204 2021-12-08 Harald Anlauf <anlauf@gmx.de>
205
206 PR fortran/103609
207 * symbol.c (gfc_sym_get_dummy_args): Catch NULL pointer
208 dereference.
209
99854374
GA
2102021-12-08 Harald Anlauf <anlauf@gmx.de>
211
212 Backported from master:
213 2021-12-07 Harald Anlauf <anlauf@gmx.de>
214
215 PR fortran/103591
216 * match.c (match_case_selector): Check type of upper bound in case
217 range.
218
2192021-12-08 Harald Anlauf <anlauf@gmx.de>
220
221 Backported from master:
222 2021-12-07 Harald Anlauf <anlauf@gmx.de>
223
224 PR fortran/103607
225 * frontend-passes.c (do_subscript): Ensure that array bounds are
226 of type INTEGER before performing checks on array subscripts.
227
173232a0
GA
2282021-12-04 Harald Anlauf <anlauf@gmx.de>
229
230 Backported from master:
231 2021-11-30 Harald Anlauf <anlauf@gmx.de>
232
233 PR fortran/102787
234 * array.c (expand_constructor): When encountering a constant array
235 expression or array section within a constructor, simplify it to
236 enable better expansion.
237
2382021-12-04 Harald Anlauf <anlauf@gmx.de>
239
240 Backported from master:
241 2021-10-14 Harald Anlauf <anlauf@gmx.de>
242
243 PR fortran/102717
244 * simplify.c (gfc_simplify_reshape): Replace assert by error
245 message for negative elements in SHAPE array.
246
2472021-12-04 Harald Anlauf <anlauf@gmx.de>
248
249 Backported from master:
250 2021-11-26 Harald Anlauf <anlauf@gmx.de>
251
252 PR fortran/103411
253 * check.c (gfc_check_reshape): Improve check of size of source
254 array for the RESHAPE intrinsic against the given shape when pad
255 is not given, and shape is a parameter. Try other simplifications
256 of shape.
257
2582021-12-04 Harald Anlauf <anlauf@gmx.de>
259
260 Backported from master:
261 2021-11-30 Harald Anlauf <anlauf@gmx.de>
262
263 PR fortran/103473
264 * simplify.c (simplify_minmaxloc_nodim): Avoid NULL pointer
265 dereference when shape is not set.
266
2672021-12-04 Harald Anlauf <anlauf@gmx.de>
268
269 Backported from master:
270 2021-12-03 Harald Anlauf <anlauf@gmx.de>
271 Steven G. Kargl <kargl@gcc.gnu.org>
272
273 PR fortran/103505
274 * array.c (match_array_element_spec): Try to simplify array
275 element specifications to improve early checking.
276 * expr.c (gfc_try_simplify_expr): New. Try simplification of an
277 expression via gfc_simplify_expr. When an error occurs, roll
278 back.
279 * gfortran.h (gfc_try_simplify_expr): Declare it.
280
90e6db52
GA
2812021-11-29 Jakub Jelinek <jakub@redhat.com>
282
283 Backported from master:
284 2021-11-21 Jakub Jelinek <jakub@redhat.com>
285
286 PR debug/103315
287 * trans-types.c (gfc_get_array_descr_info): Use DW_OP_deref_size 1
288 instead of DW_OP_deref for DW_AT_rank.
289
5062f6e7
GA
2902021-11-24 Harald Anlauf <anlauf@gmx.de>
291
292 Backported from master:
293 2021-11-23 Harald Anlauf <anlauf@gmx.de>
294
295 PR fortran/103392
296 * simplify.c (simplify_bound): Do not try to simplify
297 LBOUND/UBOUND for arrays with POINTER or ALLOCATABLE attribute.
298
2992021-11-24 Harald Anlauf <anlauf@gmx.de>
300
301 Backported from master:
302 2021-11-23 Harald Anlauf <anlauf@gmx.de>
303
304 PR fortran/87711
305 PR fortran/87851
306 * trans-array.c (arg_evaluated_for_scalarization): Add LEN_TRIM to
307 list of intrinsics for which an optional KIND argument needs to be
308 removed before scalarization.
309
78225f05
GA
3102021-11-22 Harald Anlauf <anlauf@gmx.de>
311
312 Backported from master:
313 2021-11-21 Harald Anlauf <anlauf@gmx.de>
314 Steven G. Kargl <kargl@gcc.gnu.org>
315
316 PR fortran/99061
317 * trans-intrinsic.c (gfc_lookup_intrinsic): Helper function for
318 looking up gfortran builtin intrinsics.
319 (gfc_conv_intrinsic_atrigd): Use it.
320 (gfc_conv_intrinsic_cotan): Likewise.
321 (gfc_conv_intrinsic_cotand): Likewise.
322 (gfc_conv_intrinsic_atan2d): Likewise.
323
69c65785
GA
3242021-11-16 Mikael Morin <mikael@gcc.gnu.org>
325
326 Backported from master:
327 2021-11-12 Mikael Morin <mikael@gcc.gnu.org>
328
329 PR fortran/97896
330 * intrinsic.c (add_sym_4ind): Remove.
331 (add_functions): Use add_sym4 instead of add_sym4ind.
332 Don’t special case the index intrinsic.
333 * iresolve.c (gfc_resolve_index_func): Use the individual arguments
334 directly instead of the full argument list.
335 * intrinsic.h (gfc_resolve_index_func): Update the declaration
336 accordingly.
337 * trans-decl.c (gfc_get_extern_function_decl): Don’t modify the
338 list of arguments in the case of the index intrinsic.
339 * trans-array.h (gfc_get_intrinsic_for_expr,
340 gfc_get_proc_ifc_for_expr): New.
341 * trans-array.c (gfc_get_intrinsic_for_expr,
342 arg_evaluated_for_scalarization): New.
343 (gfc_walk_elemental_function_args): Add intrinsic procedure
344 as argument. Count arguments. Check arg_evaluated_for_scalarization.
345 * trans-intrinsic.c (gfc_walk_intrinsic_function): Update call.
346 * trans-stmt.c (get_intrinsic_for_code): New.
347 (gfc_trans_call): Update call.
348
17aef87e
GA
3492021-11-11 Harald Anlauf <anlauf@gmx.de>
350
351 Backported from master:
352 2021-11-10 Harald Anlauf <anlauf@gmx.de>
353
354 PR fortran/103137
355 PR fortran/103138
356 * check.c (gfc_check_shape): Avoid NULL pointer dereference on
357 missing ref.
358 * simplify.c (gfc_simplify_cshift): Avoid NULL pointer dereference
359 when shape not set.
360 (gfc_simplify_transpose): Likewise.
361
1245e713
GA
3622021-11-07 Harald Anlauf <anlauf@gmx.de>
363
364 Backported from master:
365 2021-10-26 Harald Anlauf <anlauf@gmx.de>
366
367 PR fortran/102816
368 * resolve.c (resolve_structure_cons): Reject invalid array spec of
369 a DT component referenced in a structure constructor.
370
3712021-11-07 Harald Anlauf <anlauf@gmx.de>
372
373 Backported from master:
374 2021-10-15 Harald Anlauf <anlauf@gmx.de>
375 Tobias Burnus <tobias@codesourcery.com>
376
377 PR fortran/102685
378 * decl.c (match_clist_expr): Set rank/shape of clist initializer
379 to match LHS.
380 * resolve.c (resolve_structure_cons): In a structure constructor,
381 compare shapes of array components against declared shape.
382
3832021-11-07 Harald Anlauf <anlauf@gmx.de>
384
385 Backported from master:
386 2021-11-06 Harald Anlauf <anlauf@gmx.de>
387
388 PR fortran/102715
389 * decl.c (add_init_expr_to_sym): Reject rank mismatch between
390 array and its initializer.
391
3922021-11-07 Harald Anlauf <anlauf@gmx.de>
393
394 Backported from master:
395 2021-11-05 Harald Anlauf <anlauf@gmx.de>
396
397 PR fortran/102817
398 * expr.c (simplify_parameter_variable): Copy shape of referenced
399 subobject when simplifying.
400
4012021-11-07 Harald Anlauf <anlauf@gmx.de>
402
403 Backported from master:
404 2021-10-10 Harald Anlauf <anlauf@gmx.de>
405
406 PR fortran/99348
407 PR fortran/102521
408 * decl.c (add_init_expr_to_sym): Extend initialization of
409 parameter arrays from scalars to handle derived types.
410
3e2ccaab
GA
4112021-10-27 Harald Anlauf <anlauf@gmx.de>
412
413 Backported from master:
414 2021-10-26 Harald Anlauf <anlauf@gmx.de>
415
416 PR fortran/102917
417 * decl.c (match_attr_spec): Remove invalid integer kind checks on
418 KIND and LEN attributes of PDTs.
419
2b4adfe4
GA
4202021-10-19 Tobias Burnus <tobias@codesourcery.com>
421
422 Backported from master:
423 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
424
425 PR fortran/102745
426 * intrinsic.c (gfc_convert_type_warn): Fix checks by checking CLASS
427 and do typcheck in correct order for type extension.
428 * misc.c (gfc_typename): Print proper not internal CLASS type name.
429
64b2bd68
GA
4302021-10-17 Harald Anlauf <anlauf@gmx.de>
431
432 Backported from master:
433 2021-10-14 Harald Anlauf <anlauf@gmx.de>
434
435 PR fortran/102716
436 * check.c (gfc_check_shape): Reorder checks so that invalid KIND
437 arguments can be detected.
438
04b814c2
GA
4392021-10-06 Tobias Burnus <tobias@codesourcery.com>
440
441 Backported from master:
442 2021-10-06 Tobias Burnus <tobias@codesourcery.com>
443
444 * resolve.c (resolve_values): Only show
445 deprecated warning if attr.referenced.
446
662f6429
GA
4472021-10-03 Harald Anlauf <anlauf@gmx.de>
448
449 Backported from master:
450 2021-09-30 Harald Anlauf <anlauf@gmx.de>
451
452 PR fortran/102458
453 * simplify.c (simplify_size): Resolve expressions used in array
454 specifications so that SIZE can be simplified.
455
4562021-10-03 Harald Anlauf <anlauf@gmx.de>
457
458 Backported from master:
459 2021-09-24 Harald Anlauf <anlauf@gmx.de>
460
461 PR fortran/102458
462 * expr.c (is_non_constant_intrinsic): Check for intrinsics
463 excluded in constant expressions (F2018:10.1.12).
464 (gfc_is_constant_expr): Use that check.
465
368975a1
GA
4662021-09-30 Harald Anlauf <anlauf@gmx.de>
467
468 Backported from master:
469 2021-09-29 Harald Anlauf <anlauf@gmx.de>
470
471 PR fortran/102520
472 * array.c (expand_constructor): Do not dereference NULL pointer.
473
ae362db3
GA
4742021-09-21 Harald Anlauf <anlauf@gmx.de>
475
476 Backported from master:
477 2021-09-17 Harald Anlauf <anlauf@gmx.de>
478
479 PR fortran/102366
480 * trans-decl.c (gfc_finish_var_decl): Disable the warning message
481 for variables moved from stack to static storange if they are
482 declared in the main, but allow the move to happen.
483
d4b84aef
GA
4842021-09-20 Tobias Burnus <tobias@codesourcery.com>
485
486 * trans-openmp.c (gfc_split_omp_clauses): Don't put 'order(concurrent)'
487 on 'distribute' for combined directives, matching OpenMP 5.0
488
79c523d4
GA
4892021-09-19 Harald Anlauf <anlauf@gmx.de>
490
491 Backported from master:
492 2021-09-16 Harald Anlauf <anlauf@gmx.de>
493
494 PR fortran/102287
495 * trans-expr.c (gfc_conv_procedure_call): Wrap deallocation of
496 allocatable components of optional allocatable derived type
497 procedure arguments with INTENT(OUT) into a presence check.
498
4992021-09-19 Harald Anlauf <anlauf@gmx.de>
500
501 Backported from master:
502 2021-09-14 Harald Anlauf <anlauf@gmx.de>
503
504 PR fortran/102311
505 * resolve.c (resolve_entries): Attempt to recover cleanly after
506 rejecting mismatched function entries.
507
a6aa2458
GA
5082021-09-16 Harald Anlauf <anlauf@gmx.de>
509
510 Backported from master:
511 2021-09-13 Harald Anlauf <anlauf@gmx.de>
512
513 PR fortran/85130
514 * expr.c (find_substring_ref): Handle given substring start and
515 end indices as signed integers, not unsigned.
516
5172021-09-16 Harald Anlauf <anlauf@gmx.de>
518
519 Backported from master:
520 2021-09-13 Harald Anlauf <anlauf@gmx.de>
521
522 PR fortran/82314
523 * decl.c (add_init_expr_to_sym): For proper initialization of
524 array-valued named constants the array bounds need to be
525 simplified before adding the initializer.
526
2ae73531
GA
5272021-09-11 Harald Anlauf <anlauf@gmx.de>
528
529 Backported from master:
530 2021-09-09 Harald Anlauf <anlauf@gmx.de>
531
532 PR fortran/98490
533 * trans-expr.c (gfc_conv_substring): Do not generate substring
534 bounds check for implied do loop index variable before it actually
535 becomes defined.
536
5372021-09-11 Harald Anlauf <anlauf@gmx.de>
538
539 Backported from master:
540 2021-09-07 Harald Anlauf <anlauf@gmx.de>
541
542 PR fortran/101327
543 * expr.c (find_array_element): When bounds cannot be determined as
544 constant, return error instead of aborting.
545
54cbe852
GA
5462021-09-05 Harald Anlauf <anlauf@gmx.de>
547
548 Backported from master:
549 2021-08-31 Harald Anlauf <anlauf@gmx.de>
550
551 PR fortran/100950
552 * simplify.c (substring_has_constant_len): Minimize checks for
553 substring expressions being allowed.
554
5552021-09-05 Harald Anlauf <anlauf@gmx.de>
556
557 Backported from master:
558 2021-08-19 Harald Anlauf <anlauf@gmx.de>
559
560 PR fortran/100950
561 * simplify.c (substring_has_constant_len): New.
562 (gfc_simplify_len): Handle case of substrings with constant
563 bounds.
564
9c3a4753
GA
5652021-09-03 Harald Anlauf <anlauf@gmx.de>
566
567 Backported from master:
568 2021-08-30 Harald Anlauf <anlauf@gmx.de>
569
570 PR fortran/101349
571 * resolve.c (resolve_allocate_expr): An unlimited polymorphic
572 argument to ALLOCATE must be ALLOCATABLE or a POINTER. Fix the
573 corresponding check.
574
5752021-09-03 Harald Anlauf <anlauf@gmx.de>
576
577 Backported from master:
578 2021-08-30 Harald Anlauf <anlauf@gmx.de>
579
580 PR fortran/102113
581 * match.c (gfc_match_goto): Allow for whitespace in parsing list
582 of labels.
583
4c9a7a19
GA
5842021-08-30 Harald Anlauf <anlauf@gmx.de>
585
586 Backported from master:
587 2021-08-28 Harald Anlauf <anlauf@gmx.de>
588
589 PR fortran/87737
590 * resolve.c (resolve_entries): For functions of type CHARACTER
591 tighten the checks for matching characteristics.
592
2294ca2a
GA
5932021-08-28 Paul Thomas <pault@gcc.gnu.org>
594
595 Backported from master:
596 2021-05-06 Paul Thomas <pault@gcc.gnu.org>
597
598 PR fortran/46691
599 PR fortran/99819
600 * class.c (gfc_build_class_symbol): Remove the error that
601 disables assumed size class arrays. Class array types that are
602 not deferred shape or assumed rank are given a unique name and
603 placed in the procedure namespace.
604 * trans-array.c (gfc_trans_g77_array): Obtain the data pointer
605 for class arrays.
606 (gfc_trans_dummy_array_bias): Suppress the runtime error for
607 extent violations in explicit shape class arrays because it
608 always fails.
609 * trans-expr.c (gfc_conv_procedure_call): Handle assumed size
610 class actual arguments passed to non-descriptor formal args by
611 using the data pointer, stored as the symbol's backend decl.
612
b72708f5
GA
6132021-08-26 Harald Anlauf <anlauf@gmx.de>
614
615 Backported from master:
616 2021-08-24 Harald Anlauf <anlauf@gmx.de>
617
618 PR fortran/98411
619 * trans-decl.c (gfc_finish_var_decl): Adjust check to handle
620 implicit SAVE as well as variables in the main program. Improve
621 warning message text.
622
a0a0499b
GA
6232021-08-16 Harald Anlauf <anlauf@gmx.de>
624
625 Backported from master:
626 2021-08-15 Harald Anlauf <anlauf@gmx.de>
627
628 PR fortran/99351
629 * match.c (sync_statement): Replace %v code by %e in gfc_match to
630 allow for function references as STAT and ERRMSG arguments.
631 * resolve.c (resolve_sync): Adjust checks of STAT= and ERRMSG= to
632 being definable arguments. Function references with a data
633 pointer result are accepted.
634 * trans-stmt.c (gfc_trans_sync): Adjust assertion.
635
a2beaebe
GA
6362021-08-11 Harald Anlauf <anlauf@gmx.de>
637
638 Backported from master:
639 2021-07-28 Harald Anlauf <anlauf@gmx.de>
640
641 PR fortran/101564
642 * expr.c (gfc_check_vardef_context): Add check for KIND and LEN
643 parameter inquiries.
644 * match.c (gfc_match): Fix comment for %v code.
645 (gfc_match_allocate, gfc_match_deallocate): Replace use of %v code
646 by %e in gfc_match to allow for function references as STAT and
647 ERRMSG arguments.
648 * resolve.c (resolve_allocate_deallocate): Avoid NULL pointer
649 dereferences and shortcut for bad STAT and ERRMSG argument to
650 (DE)ALLOCATE. Remove bogus parts of checks for STAT and ERRMSG.
651
6bcdcc52
GA
6522021-07-28 Harald Anlauf <anlauf@gmx.de>
653
654 Backported from master:
655 2021-07-23 Harald Anlauf <anlauf@gmx.de>
656
657 PR fortran/101536
658 * check.c (array_check): Adjust check for the case of CLASS
659 arrays.
660
6612021-07-28 Harald Anlauf <anlauf@gmx.de>
662
663 Backported from master:
664 2021-07-21 Harald Anlauf <anlauf@gmx.de>
665
666 PR fortran/101514
667 * target-memory.c (gfc_interpret_derived): Size of array component
668 of derived type can only be computed here for explicit shape.
669 * trans-types.c (gfc_get_nodesc_array_type): Do not dereference
670 NULL pointers.
671
6722021-07-28 Harald Anlauf <anlauf@gmx.de>
673
674 Backported from master:
675 2021-07-18 Harald Anlauf <anlauf@gmx.de>
676
677 PR fortran/101084
678 * io.c (resolve_tag_format): Extend FORMAT check to unknown type.
679
7ca38856
RB
6802021-07-28 Release Manager
681
682 * GCC 11.2.0 released.
683
0e66f21d
GA
6842021-07-15 Harald Anlauf <anlauf@gmx.de>
685
686 Backported from master:
687 2021-07-14 Harald Anlauf <anlauf@gmx.de>
688
689 PR fortran/100949
690 * trans-expr.c (gfc_trans_class_init_assign): Call
691 gfc_conv_expr_present only for dummy variables.
692
1e92a6e1
GA
6932021-07-08 Thomas Koenig <tkoenig@gcc.gnu.org>
694
695 Backported from master:
696 2021-07-06 Thomas Koenig <tkoenig@gcc.gnu.org>
697
698 PR fortran/100227
699 * frontend-passes.c (traverse_io_block): Adjust test for
700 when a variable is eligible for the transformation to
701 array slice.
702
766990c3
GA
7032021-06-19 Harald Anlauf <anlauf@gmx.de>
704
705 Backported from master:
706 2021-06-18 Harald Anlauf <anlauf@gmx.de>
707
708 PR fortran/100283
709 PR fortran/101123
710 * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Unconditionally
711 convert result of min/max to result type.
712
547b692d
GA
7132021-06-18 Harald Anlauf <anlauf@gmx.de>
714
715 Backported from master:
716 2021-06-16 Harald Anlauf <anlauf@gmx.de>
717
718 PR fortran/95501
719 PR fortran/95502
720 * expr.c (gfc_check_pointer_assign): Avoid NULL pointer
721 dereference.
722 * match.c (gfc_match_pointer_assignment): Likewise.
723 * parse.c (gfc_check_do_variable): Avoid comparison with NULL
724 symtree.
725
36b8b52a
GA
7262021-06-17 Jakub Jelinek <jakub@redhat.com>
727
728 Backported from master:
729 2021-06-09 Jakub Jelinek <jakub@redhat.com>
730
731 PR fortran/100965
732 * trans-openmp.c (gfc_omp_finish_clause): Gimplify OMP_CLAUSE_SIZE.
733
f5402be3
GA
7342021-06-16 José Rui Faustino de Sousa <jrfsousa@gmail.com>
735
736 PR fortran/82376
737 * trans-expr.c (gfc_conv_procedure_call): Evaluate function result
738 and then pass a pointer.
739
505fb236
GA
7402021-06-06 Andre Vehreschild <vehre@gcc.gnu.org>
741 Steve Kargl <kargl@gcc.gnu.org>
742
743 PR fortran/98301
744 * trans-decl.c (gfc_build_builtin_function_decls): Move decl.
745 * trans-intrinsic.c (conv_intrinsic_random_init): Use bool for
746 lib-call of caf_random_init instead of logical (4-byte).
747 * trans.h: Add tree var for random_init.
748
d04fca1f
GA
7492021-06-04 Harald Anlauf <anlauf@gmx.de>
750
751 Backported from master:
752 2021-06-04 Harald Anlauf <anlauf@gmx.de>
753
754 PR fortran/99839
755 * frontend-passes.c (inline_matmul_assign): Do not inline matmul
756 if the assignment to the resulting array if it is not of canonical
757 type (real/integer/complex/logical).
758
6c84cc43
GA
7592021-05-28 Harald Anlauf <anlauf@gmx.de>
760
761 Backported from master:
762 2021-05-17 Harald Anlauf <anlauf@gmx.de>
763
764 PR fortran/98411
765 * trans-decl.c (gfc_finish_var_decl): Add check for explicit SAVE
766 attribute.
767
7682021-05-28 Harald Anlauf <anlauf@gmx.de>
769
770 Backported from master:
771 2021-05-27 Harald Anlauf <anlauf@gmx.de>
772
773 PR fortran/100656
774 * trans-array.c (gfc_conv_ss_startstride): Do not call check for
775 presence of a dummy argument when a symbol actually refers to a
776 non-dummy.
777
7782021-05-28 Harald Anlauf <anlauf@gmx.de>
779
780 Backported from master:
781 2021-05-27 Harald Anlauf <anlauf@gmx.de>
782
783 PR fortran/100602
784 * trans-intrinsic.c (gfc_conv_intrinsic_size): Use CLASS data
785 attributes for CLASS arrays for generation of runtime error.
786
74c9a1e1
GA
7872021-05-25 Harald Anlauf <anlauf@gmx.de>
788
789 Backported from master:
790 2021-05-23 Harald Anlauf <anlauf@gmx.de>
791
792 PR fortran/100551
793 * trans-expr.c (gfc_conv_procedure_call): Adjust check for
794 implicit conversion of actual argument to an unlimited polymorphic
795 procedure argument.
796
7972021-05-25 Tobias Burnus <tobias@codesourcery.com>
798
799 Backported from master:
800 2021-05-25 Tobias Burnus <tobias@codesourcery.com>
801 Johannes Nendwich <a08727063@unet.univie.ac.at>
802
803 * intrinsic.texi (GERROR, GETARGS, GETLOG, NORM2, PARITY, RANDOM_INIT,
804 RANDOM_NUMBER): Fix typos and copy'n'paste errors.
805
afc5ae0f
GA
8062021-05-23 Tobias Burnus <tobias@codesourcery.com>
807
808 Backported from master:
809 2021-05-23 Tobias Burnus <tobias@codesourcery.com>
810
811 * intrinsic.texi (ATOMIC_ADD, ATOMIC_FETCH_ADD): Use the
812 proper variable name in the description.
813
c2aee0b9
GA
8142021-05-18 Tobias Burnus <tobias@codesourcery.com>
815
816 Backported from master:
817 2021-05-17 Tobias Burnus <tobias@codesourcery.com>
818
819 PR fortran/100633
820 * resolve.c (gfc_resolve_code): Reject nonintrinsic assignments in
821 OMP WORKSHARE.
822
0d9e2516
GA
8232021-05-17 Tobias Burnus <tobias@codesourcery.com>
824
825 Backported from master:
826 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
827
828 * resolve.c (resolve_symbol): Handle implicit SAVE of main-program
829 for vars in 'omp threadprivate' and 'omp declare target'.
830
6c9cf075
GA
8312021-05-05 Harald Anlauf <anlauf@gmx.de>
832
833 Backported from master:
834 2021-05-05 Harald Anlauf <anlauf@gmx.de>
835
836 PR fortran/100274
837 * interface.c (gfc_compare_actual_formal): Continue checks after
838 emitting warning for argument length mismatch.
839 * trans-expr.c (gfc_conv_procedure_call): Check for NULL pointer
840 dereference.
841
d5bfe5a4
GA
8422021-04-29 Tobias Burnus <tobias@codesourcery.com>
843
844 Backported from master:
845 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
846
847 * openmp.c (gfc_match_omp_variable_list): Gobble whitespace before
848 checking whether a '%' or parenthesis-open follows as next character.
849
a8cc9bd2
GA
8502021-04-27 Harald Anlauf <anlauf@gmx.de>
851
852 Backported from master:
853 2021-04-24 Harald Anlauf <anlauf@gmx.de>
854
855 PR fortran/100218
856 * expr.c (gfc_check_vardef_context): Extend check to allow pointer
857 from a function reference.
858
8592021-04-27 Harald Anlauf <anlauf@gmx.de>
860
861 Backported from master:
862 2021-04-24 Harald Anlauf <anlauf@gmx.de>
863
864 PR fortran/100154
865 * check.c (variable_check): Allow function reference having a data
866 pointer result.
867 (arg_strlen_is_zero): New function.
868 (gfc_check_fgetputc_sub): Add static check of character and status
869 arguments.
870 (gfc_check_fgetput_sub): Likewise.
871 * intrinsic.c (add_subroutines): Fix argument name for the
872 character argument to intrinsic subroutines fget[c], fput[c].
873
d81efb06
JJ
8742021-04-27 Release Manager
875
876 * GCC 11.1.0 released.
877
fbb77398
GA
8782021-04-20 Paul Thomas <pault@gcc.gnu.org>
879
880 PR fortran/100110
881 * trans-decl.c (gfc_get_symbol_decl): Replace test for host
882 association with a check that the current and symbol namespaces
883 are the same.
884
6e81e015
GA
8852021-04-19 Thomas Schwinge <thomas@codesourcery.com>
886
887 * lang.opt (fopenacc-kernels=): Remove.
888
8ae884c0
GA
8892021-04-16 José Rui Faustino de Sousa <jrfsousa@gmail.com>
890
891 PR fortran/100094
892 * trans-array.c (gfc_trans_deferred_array): Add code to initialize
893 pointers and allocatables with correct TKR parameters.
894
8952021-04-16 José Rui Faustino de Sousa <jrfsousa@gmail.com>
896
897 PR fortran/100018
898 * resolve.c: Add association check before de-referencing pointer.
899
9002021-04-16 Harald Anlauf <anlauf@gmx.de>
901 Paul Thomas <pault@gcc.gnu.org>
902
903 PR fortran/63797
904 * module.c (write_symtree): Do not write interface of intrinsic
905 procedure to module file for F2003 and newer.
906
ee351f7f
GA
9072021-04-15 Paul Thomas <pault@gcc.gnu.org>
908
909 PR fortran/99307
910 * symbol.c: Remove trailing white space.
911 * trans-array.c (gfc_trans_create_temp_array): Create a class
912 temporary for class expressions and assign the new descriptor
913 to the data field.
914 (build_class_array_ref): If the class expr can be extracted,
915 then use that for 'decl'. Class function results are reliably
916 handled this way. Call gfc_find_and_cut_at_last_class_ref to
917 eliminate largely redundant code. Remove dead code and recast
918 the rest of the code to extract 'decl' for remaining cases.
919 Call gfc_build_spanned_array_ref.
920 (gfc_alloc_allocatable_for_assignment): Use class descriptor
921 element length for 'elemsize1'. Eliminate repeat set of dtype
922 for class expressions.
923 * trans-expr.c (gfc_find_and_cut_at_last_class_ref): Include
924 additional code from build_class_array_ref, and use optional
925 gfc_typespec pointer argument.
926 (gfc_trans_scalar_assign): Make use of pre and post blocks for
927 all class expressions.
928 * trans.c (get_array_span): For unlimited polymorphic exprs
929 multiply the span by the value of the _len field.
930 (gfc_build_spanned_array_ref): New function.
931 (gfc_build_array_ref): Call gfc_build_spanned_array_ref and
932 eliminate repeated code.
933 * trans.h: Add arg to gfc_find_and_cut_at_last_class_ref and
934 add prototype for gfc_build_spanned_array_ref.
935
df3b1289
GA
9362021-04-14 Martin Liska <mliska@suse.cz>
937
938 * intrinsic.texi: The table has first column empty and it makes
939 trouble when processing makeinfo --xml output.
940
3115aba8
GA
9412021-04-09 Tobias Burnus <tobias@codesourcery.com>
942
943 PR fortran/99817
944 * trans-types.c (gfc_get_function_type): Also generate hidden
945 coarray argument for character arguments.
946
c0756c4e
GA
9472021-04-03 Paul Thomas <pault@gcc.gnu.org>
948
949 PR fortran/99818
950 * interface.c (compare_parameter): The codimension attribute is
951 applied to the _data field of class formal arguments.
952
f1607029
GA
9532021-04-01 Harald Anlauf <anlauf@gmx.de>
954
955 PR fortran/99840
956 * simplify.c (gfc_simplify_transpose): Properly initialize
957 resulting shape.
958
c4110112
GA
9592021-03-28 Paul Thomas <pault@gcc.gnu.org>
960
961 PR fortran/99602
962 * trans-expr.c (gfc_conv_procedure_call): Use the _data attrs
963 for class expressions and detect proc pointer evaluations by
964 the non-null actual argument list.
965
d21001c7
GA
9662021-03-27 Steve Kargl <kargl@gcc.gnu.org>
967
968 * misc.c (gfc_typename): Fix off-by-one in buffer sizes.
969
651684b4
GA
9702021-03-26 Tobias Burnus <tobias@codesourcery.com>
971
972 PR fortran/99651
973 * intrinsic.c (gfc_intrinsic_func_interface): Set
974 attr.proc = PROC_INTRINSIC if FL_PROCEDURE.
975
8bf52ffa
GA
9762021-03-24 Tobias Burnus <tobias@codesourcery.com>
977
978 PR fortran/99369
979 * resolve.c (resolve_operator): Make 'msg' buffer larger
980 and use snprintf.
981
bf1f3168
GA
9822021-03-23 Tobias Burnus <tobias@codesourcery.com>
983
984 PR fortran/93660
985 * trans-decl.c (build_function_decl): Add comment;
986 increment hidden_typelist for caf_token/caf_offset.
987 * trans-types.c (gfc_get_function_type): Add comment;
988 add missing caf_token/caf_offset args.
989
8b744f46
GA
9902021-03-22 Tobias Burnus <tobias@codesourcery.com>
991
992 PR fortran/99688
993 * match.c (select_type_set_tmp, gfc_match_select_type,
994 gfc_match_select_rank): Fix 'name' buffersize to avoid out of bounds.
995 * resolve.c (resolve_select_type): Likewise.
996
5f256a70
GA
9972021-03-19 Thomas Koenig <tkoenig@gcc.gnu.org>
998
999 * frontend-passes.c (inline_limit_check): Add rank_a
1000 argument. If a is rank 1, set the second dimension to 1.
1001 (inline_matmul_assign): Pass rank_a argument to inline_limit_check.
1002 (call_external_blas): Likewise.
1003
3c5b6d24
GA
10042021-03-15 Thomas Koenig <tkoenig@gcc.gnu.org>
1005
1006 PR fortran/99345
1007 * frontend-passes.c (doloop_contained_procedure_code):
1008 Properly handle EXEC_IOLENGTH.
1009
10102021-03-15 Paul Thomas <pault@gcc.gnu.org>
1011
1012 PR fortran/99545
1013 * trans-stmt.c (gfc_trans_allocate): Mark the initialization
1014 assignment by setting init_flag.
1015
9844eeff
GA
10162021-03-14 Harald Anlauf <anlauf@gmx.de>
1017 Paul Thomas <pault@gcc.gnu.org>
1018
1019 * trans-expr.c (gfc_conv_procedure_call): Fix runtime checks for
1020 CLASS arguments.
1021 * trans-intrinsic.c (gfc_conv_intrinsic_size): Likewise.
1022
5e93c2f0
GA
10232021-03-13 Paul Thomas <pault@gcc.gnu.org>
1024
1025 PR fortran/99125
1026 * trans-array.c (gfc_conv_expr_descriptor): For deferred length
1027 length components use the ss_info string length instead of
1028 gfc_get_expr_charlen. Make sure that the deferred string length
1029 is a variable before assigning to it. Otherwise use the expr.
1030 * trans-expr.c (gfc_conv_string_length): Make sure that the
1031 deferred string length is a variable before assigning to it.
1032
6da2762a
GA
10332021-03-12 Tobias Burnus <tobias@codesourcery.com>
1034
1035 PR fortran/99514
1036 * resolve.c (resolve_symbol): Accept vars which are in DATA
1037 and hence (either) implicit SAVE (or in common).
1038
e9800852
GA
10392021-03-10 Harald Anlauf <anlauf@gmx.de>
1040
1041 PR fortran/99205
1042 * data.c (gfc_assign_data_value): Reject non-constant character
1043 length for lvalue.
1044 * trans-array.c (gfc_conv_array_initializer): Restrict loop to
1045 elements which are defined to avoid NULL pointer dereference.
1046
10472021-03-10 Tobias Burnus <tobias@codesourcery.com>
1048
1049 * intrinsic.texi (MIN): Correct 'maximum' to 'minimum'.
1050
10512021-03-10 Eric Botcazou <ebotcazou@adacore.com>
1052
1053 PR fortran/96983
1054 * trans-intrinsic.c (build_round_expr): Do not implicitly assume
1055 that __float128 is the 128-bit floating-point type.
1056
6405b40f
GA
10572021-03-08 Harald Anlauf <anlauf@gmx.de>
1058
1059 PR fortran/49278
1060 * data.c (gfc_assign_data_value): Reject variable with PARAMETER
1061 attribute in DATA statement.
1062
ceae9533
GA
10632021-03-05 Tobias Burnus <tobias@codesourcery.com>
1064
1065 PR fortran/99355
1066 PR fortran/57871
1067 * invoke.texi (-freal{4,8}-real-*): Extend description.
1068 * primary.c (match_real_constant): Also promote real literals
1069 with '_kind' number.
1070
67f10d28
GA
10712021-03-04 Tobias Burnus <tobias@codesourcery.com>
1072
1073 PR fortran/99355
1074 * decl.c (gfc_match_old_kind_spec, gfc_match_kind_spec): Avoid
1075 redoing kind conversions.
1076 * primary.c (match_real_constant): Likewise.
1077
2c83c3fb
GA
10782021-02-28 Jakub Jelinek <jakub@redhat.com>
1079
1080 PR fortran/99303
1081 * openmp.c (gfc_omp_requires_add_clause): Fix up diagnostic message
1082 wordings.
1083 (resolve_omp_clauses): Likewise.
1084
10852021-02-28 Jakub Jelinek <jakub@redhat.com>
1086
1087 PR fortran/99300
1088 * frontend-passes.c (doloop_code): Replace double space in diagnostics
1089 with a single space.
1090
4028d01a
GA
10912021-02-24 Paul Thomas <pault@gcc.gnu.org>
1092
1093 PR fortran/98342
1094 * trans-expr.c (gfc_conv_derived_to_class): Add optional arg.
1095 'derived_array' to hold the fixed, parmse expr in the case of
1096 assumed rank formal arguments. Deal with optional arguments.
1097 (gfc_conv_procedure_call): Null 'derived' array for each actual
1098 argument. Add its address to the call to gfc_conv_derived_to_
1099 class. Access the 'data' field of scalar descriptors before
1100 deallocating allocatable components. Also strip NOPs before the
1101 calls to gfc_deallocate_alloc_comp. Use 'derived' array as the
1102 input to gfc_deallocate_alloc_comp if it is available.
1103 * trans.h : Include the optional argument 'derived_array' to
1104 the prototype of gfc_conv_derived_to_class. The default value
1105 is NULL_TREE.
1106
71e24b06
GA
11072021-02-23 Paul Thomas <pault@gcc.gnu.org>
1108
1109 PR fortran/99124
1110 * resolve.c (resolve_fl_procedure): Include class results in
1111 the test for F2018, C15100.
1112 * trans-array.c (get_class_info_from_ss): Do not use the saved
1113 descriptor to obtain the class expression for variables. Use
1114 gfc_get_class_from_expr instead.
1115
11162021-02-23 Harald Anlauf <anlauf@gmx.de>
1117
1118 PR fortran/99206
1119 * simplify.c (gfc_simplify_reshape): Set string length for
1120 character arguments.
1121
2f5765cf
GA
11222021-02-22 Tobias Burnus <tobias@codesourcery.com>
1123
1124 PR fortran/99171
1125 * trans-openmp.c (gfc_omp_is_optional_argument): Regard optional
1126 dummy procs as nonoptional as no special treatment is needed.
1127
60b99ee3
GA
11282021-02-21 Harald Anlauf <anlauf@gmx.de>
1129
1130 * trans-expr.c (gfc_conv_procedure_call): Do not add clobber to
1131 allocatable intent(out) argument.
1132
50352c6c
GA
11332021-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1134
1135 PR fortran/98686
1136 * match.c (gfc_match_namelist): If BT_UNKNOWN, check for
1137 IMPLICIT NONE and and issue an error, otherwise set the type
1138 to its IMPLICIT type so that any subsequent use of objects will
1139 will confirm their types.
1140
11412021-02-19 Harald Anlauf <anlauf@gmx.de>
1142
1143 * symbol.c (gfc_add_flavor): Reverse order of conditions.
1144
11452021-02-19 Tobias Burnus <tobias@codesourcery.com>
1146
1147 PR fortran/99010
1148 * dependency.c (gfc_dep_resolver): Fix coarray handling.
1149
11502021-02-19 Tobias Burnus <tobias@codesourcery.com>
1151
1152 PR fortran/99146
1153 * interface.c:
1154
11552021-02-19 Tobias Burnus <tobias@codesourcery.com>
1156
1157 PR fortran/99027
1158 * simplify.c (simplify_bound_dim): Honor DIMEN_ELEMENT
1159 when using dim=.
1160
acc0ee5c
GA
11612021-02-17 Julian Brown <julian@codesourcery.com>
1162
1163 * openmp.c (resolve_omp_clauses): Disallow selecting components
1164 of arrays of derived type.
1165
11662021-02-17 Julian Brown <julian@codesourcery.com>
1167
1168 * trans-openmp.c (gfc_trans_omp_clauses): Handle element selection
1169 for arrays of derived types.
1170
0e804ce3
GA
11712021-02-16 Tobias Burnus <tobias@codesourcery.com>
1172
1173 * expr.c (gfc_is_simplify_contiguous): Handle REF_INQUIRY, i.e.
1174 %im and %re which are EXPR_VARIABLE.
1175 * openmp.c (resolve_omp_clauses): Diagnose %re/%im explicitly.
1176
11772021-02-16 Tobias Burnus <tobias@codesourcery.com>
1178
1179 PR fortran/99111
1180 * io.c (resolve_tag_format): Reject BT_DERIVED/CLASS/VOID
1181 as (array-valued) FORMAT tag.
1182
fab095da
GA
11832021-02-12 Tobias Burnus <tobias@codesourcery.com>
1184
1185 PR fortran/99043
1186 * trans-expr.c (gfc_conv_procedure_call): Don't reset
1187 rank of assumed-rank array.
1188
0c5cdb31
GA
11892021-02-11 Paul Thomas <pault@gcc.gnu.org>
1190
1191 PR fortran/98897
1192 * match.c (gfc_match_call): Include associate names as possible
1193 entities with typebound subroutines. The target needs to be
1194 resolved for the type.
1195
11962021-02-11 Paul Thomas <pault@gcc.gnu.org>
1197
1198 PR fortran/99060
1199 * primary.c (gfc_match_varspec): Test for non-null 'previous'
1200 before using its name in the error message.
1201
12022021-02-11 Tobias Burnus <tobias@codesourcery.com>
1203
1204 * intrinsic.texi (FINDLOC): Add 'MASK' to argument table.
1205 (MAXLOC, MAXVAL, MINLOC, MINVAL): For 'MASK', remove 'an
1206 array' as scalars are also permitted.
1207
4b37c3ea
GA
12082021-02-10 Julian Brown <julian@codesourcery.com>
1209
1210 PR fortran/98979
1211 * openmp.c (resolve_omp_clauses): Omit OpenACC update in
1212 contiguity check and stride-specified error.
1213
a19dd5e6
GA
12142021-02-04 Julian Brown <julian@codesourcery.com>
1215
1216 * openmp.c (resolve_omp_clauses): Omit OpenACC update in
1217 contiguity check and stride-specified error.
1218
12192021-02-04 Julian Brown <julian@codesourcery.com>
1220
1221 * trans-openmp.c (gfc_trans_omp_clauses): Use class_pointer attribute
1222 for BT_CLASS.
1223
12242021-02-04 Julian Brown <julian@codesourcery.com>
1225
1226 * trans-openmp.c (gfc_trans_omp_clauses): Fix dereferencing for
1227 BT_DERIVED members.
1228
12292021-02-04 Tobias Burnus <tobias@codesourcery.com>
1230
1231 * openmp.c (resolve_omp_clauses): Explicitly diagnose
1232 substrings as not permitted.
1233
9faaa807
GA
12342021-02-03 Jeff Law <law@redhat.com>
1235
1236 * intrinsic.texi (ANINT): Fix typo.
1237
12382021-02-03 Tobias Burnus <tobias@codesourcery.com>
1239
1240 PR fortran/98913
1241 * dependency.c (gfc_dep_resolver): Treat local access
1242 to coarrays like any array access in dependency analysis.
1243
85d04a2e
GA
12442021-01-28 Harald Anlauf <anlauf@gmx.de>
1245
1246 PR fortran/86470
1247 * trans.c (gfc_call_malloc): Allocate area of size 1 if passed
1248 size is NULL (as documented).
1249
aa69f0a8
GA
12502021-01-27 Paul Thomas <pault@gcc.gnu.org>
1251
1252 PR fortran/93924
1253 PR fortran/93925
1254 * trans-expr.c (gfc_conv_procedure_call): Suppress the call to
1255 gfc_conv_intrinsic_to_class for unlimited polymorphic procedure
1256 pointers.
1257 (gfc_trans_assignment_1): Similarly suppress class assignment
1258 for class valued procedure pointers.
1259
12602021-01-27 Paul Thomas <pault@gcc.gnu.org>
1261
1262 PR fortran/98472
1263 * trans-array.c (gfc_conv_expr_descriptor): Include elemental
1264 procedure pointers in the assert under the comment 'elemental
1265 function' and eliminate the second, spurious assert.
1266
161e4c08
GA
12672021-01-25 Harald Anlauf <anlauf@gmx.de>
1268
1269 PR fortran/70070
1270 * data.c (create_character_initializer): Check substring indices
1271 against bounds.
1272 (gfc_assign_data_value): Catch error returned from
1273 create_character_initializer.
1274
12752021-01-25 Tobias Burnus <tobias@codesourcery.com>
1276
1277 * intrinsic.texi (CO_BROADCAST, CO_MIN, CO_REDUCE, CO_SUM): Fix typos.
1278
12792021-01-25 Steve Kargl <kargl@gcc.gnu.org>
1280
1281 PR fortran/98517
1282 * resolve.c (resolve_charlen): Check that length expression is
1283 present before testing for scalar/integer..
1284
8502e23d
GA
12852021-01-22 Paul Thomas <pault@gcc.gnu.org>
1286
1287 PR fortran/98565
1288 * trans-intrinsic.c (gfc_conv_associated): Do not add a _data
1289 component for scalar class function targets. Instead, fix the
1290 function result and access the _data from that.
1291
7559d465
GA
12922021-01-21 Jorge D'Elia <jdelia@cimec.unl.edu.ar>
1293
1294 * intrinsic.texi (CO_MAX): Fix typo.
1295
12962021-01-21 Paul Thomas <pault@gcc.gnu.org>
1297
1298 PR fortran/96320
1299 * decl.c (gfc_match_modproc): It is not an error to find a
1300 module procedure declaration within a contains block.
1301 * expr.c (gfc_check_vardef_context): Pure procedure result is
1302 assignable. Change 'own_scope' accordingly.
1303 * resolve.c (resolve_typebound_procedure): A procedure that
1304 has the module procedure attribute is almost certainly a
1305 module procedure, whatever its interface.
1306
f35a4f96
GA
13072021-01-19 Tobias Burnus <tobias@codesourcery.com>
1308
1309 PR fortran/98476
1310 * openmp.c (resolve_omp_clauses): Change use_device_ptr
1311 to use_device_addr for unless type(c_ptr); check all
1312 list item for is_device_ptr.
1313
59cf67d1
GA
13142021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
1315
1316 * dump-parse-tree.c (show_omp_clauses): Handle detach clause.
1317 * frontend-passes.c (gfc_code_walker): Walk detach expression.
1318 * gfortran.h (struct gfc_omp_clauses): Add detach field.
1319 (gfc_c_intptr_kind): New.
1320 * openmp.c (gfc_free_omp_clauses): Free detach clause.
1321 (gfc_match_omp_detach): New.
1322 (enum omp_mask1): Add OMP_CLAUSE_DETACH.
1323 (enum omp_mask2): Remove OMP_CLAUSE_DETACH.
1324 (gfc_match_omp_clauses): Handle OMP_CLAUSE_DETACH for OpenMP.
1325 (OMP_TASK_CLAUSES): Add OMP_CLAUSE_DETACH.
1326 (resolve_omp_clauses): Prevent use of detach with mergeable and
1327 overriding the data sharing mode of the event handle.
1328 * trans-openmp.c (gfc_trans_omp_clauses): Handle detach clause.
1329 * trans-types.c (gfc_c_intptr_kind): New.
1330 (gfc_init_kinds): Initialize gfc_c_intptr_kind.
1331 * types.def
1332 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
1333 to...
1334 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
1335 ...this. Add extra argument.
1336
5fff80fd
GA
13372021-01-14 Harald Anlauf <anlauf@gmx.de>
1338
1339 * gfortran.h (gfc_resolve_substring): Add prototype.
1340 * primary.c (match_string_constant): Simplify substrings with
1341 constant starting and ending points.
1342 * resolve.c: Rename resolve_substring to gfc_resolve_substring.
1343 (gfc_resolve_ref): Use renamed function gfc_resolve_substring.
1344
13452021-01-14 Harald Anlauf <anlauf@gmx.de>
1346
1347 PR fortran/98661
1348 * resolve.c (resolve_component): Derived type components with
1349 ALLOCATABLE or POINTER attribute shall have a deferred shape.
1350
13512021-01-14 Harald Anlauf <anlauf@gmx.de>
1352
1353 Revert:
1354 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1355
1356 PR fortran/98661
1357 * resolve.c (resolve_component): Derived type components with
1358 ALLOCATABLE or POINTER attribute shall have a deferred shape.
1359
13602021-01-14 Harald Anlauf <anlauf@gmx.de>
1361
1362 PR fortran/98661
1363 * resolve.c (resolve_component): Derived type components with
1364 ALLOCATABLE or POINTER attribute shall have a deferred shape.
1365
bf5cbb9e
GA
13662021-01-08 Paul Thomas <pault@gcc.gnu.org>
1367
1368 PR fortran/93794
1369 * trans-expr.c (gfc_conv_component_ref): Remove the condition
1370 that deferred character length components only be allocatable.
1371
13722021-01-08 Paul Thomas <pault@gcc.gnu.org>
1373
1374 PR fortran/98458
1375 * simplify.c (is_constant_array_expr): If an array constructor
1376 expression has elements other than constants or structures, try
1377 fixing the expression with gfc_reduce_init_expr. Also, if shape
1378 is NULL, obtain the array size and set it.
1379
7d187e4f
GA
13802021-01-07 Paul Thomas <pault@gcc.gnu.org>
1381
1382 PR fortran/93701
1383 * resolve.c (find_array_spec): Put static prototype for
1384 resolve_assoc_var before this function and call for associate
1385 variables.
1386
942ae5be
GA
13872021-01-06 Harald Anlauf <anlauf@gmx.de>
1388
1389 * resolve.c (resolve_component): Add check for valid CLASS
1390 reference before trying to access CLASS data.
1391
7e73f511
GA
13922021-01-04 Martin Liska <mliska@suse.cz>
1393
1394 * ChangeLog-2018: Remove duplicate ChangeLog entries.
1395
b6dd195a
GA
13962021-01-01 Harald Anlauf <anlauf@gmx.de>
1397
1398 * class.c (gfc_find_vtab): Add check on attribute is_class.
1399
14002021-01-01 Jakub Jelinek <jakub@redhat.com>
1401
1402 * gfortranspec.c (lang_specific_driver): Update copyright notice
1403 dates.
1404 * gfc-internals.texi: Bump @copying's copyright year.
1405 * gfortran.texi: Ditto.
1406 * intrinsic.texi: Ditto.
1407 * invoke.texi: Ditto.
1408
14092021-01-01 Jakub Jelinek <jakub@redhat.com>
1410
1411 * ChangeLog-2020: Rotate ChangeLog. New file.
1412
21fa2a29 1413\f
618e665a 1414Copyright (C) 2021 Free Software Foundation, Inc.
ad41bd84
JM
1415
1416Copying and distribution of this file, with or without modification,
1417are permitted in any medium without royalty provided the copyright
1418notice and this notice are preserved.
This page took 4.361033 seconds and 5 git commands to generate.