]> gcc.gnu.org Git - gcc.git/blob - gcc/fortran/ChangeLog
bfaf2f63ce93e671d36eea13427a0247409962e4
[gcc.git] / gcc / fortran / ChangeLog
1 2022-03-19 Tobias Burnus <tobias@codesourcery.com>
2
3 Backported from master:
4 2022-03-07 Tobias Burnus <tobias@codesourcery.com>
5
6 PR fortran/99585
7 PR fortran/104430
8 * trans-expr.c (conv_parent_component_references): Fix comment;
9 simplify comparison.
10 (gfc_maybe_dereference_var): Avoid d referencing a nonpointer.
11
12 2022-03-17 Michael Meissner <meissner@linux.ibm.com>
13
14 PR fortran/96983
15 * trans-intrinsic.c (build_round_expr): If int type is larger than
16 long long, do the round and convert to the integer type. Do not
17 try to find a floating point type the exact size of the integer
18 type. Backport patch from 2021-04-22 on the trunk.
19
20 2022-03-13 Harald Anlauf <anlauf@gmx.de>
21
22 Backported from master:
23 2022-03-08 Harald Anlauf <anlauf@gmx.de>
24
25 PR fortran/104811
26 * frontend-passes.c (optimize_minmaxloc): Do not attempt
27 frontend-optimization of MINLOC/MAXLOC for character arrays, as
28 there is no suitable code yet for inline expansion.
29
30 2022-02-23 Harald Anlauf <anlauf@gmx.de>
31
32 Backported from master:
33 2022-02-22 Harald Anlauf <anlauf@gmx.de>
34
35 PR fortran/104619
36 * resolve.c (resolve_structure_cons): Skip shape check if shape
37 of constructor cannot be determined at compile time.
38
39 2022-02-20 Harald Anlauf <anlauf@gmx.de>
40
41 Backported from master:
42 2022-02-09 Harald Anlauf <anlauf@gmx.de>
43
44 PR fortran/66193
45 * arith.c (reduce_binary_ac): When reducing binary expressions,
46 try simplification. Handle case of empty constructor.
47 (reduce_binary_ca): Likewise.
48
49 2022-02-16 Harald Anlauf <anlauf@gmx.de>
50
51 Backported from master:
52 2022-02-14 Harald Anlauf <anlauf@gmx.de>
53
54 PR fortran/104211
55 * expr.c (find_array_section): Replace assertion by error
56 recovery when encountering bad array constructor.
57
58 2022-02-14 Andre Vehreschild <vehre@gcc.gnu.org>
59
60 PR fortran/100337
61 Backport from master.
62 * trans-intrinsic.c (conv_co_collective): Check stat for null ptr
63 before dereferrencing.
64
65 2022-02-14 Andre Vehreschild <vehre@gcc.gnu.org>
66
67 PR fortran/103790
68 Backported from master.
69 * trans-array.c (structure_alloc_comps): Prevent descriptor
70 stacking for non-array data; do not broadcast caf-tokens.
71 * trans-intrinsic.c (conv_co_collective): Prevent generation
72 of unused descriptor.
73
74 2022-02-04 Harald Anlauf <anlauf@gmx.de>
75
76 Backported from master:
77 2022-02-03 Harald Anlauf <anlauf@gmx.de>
78
79 PR fortran/104311
80 * check.c (gfc_calculate_transfer_sizes): Checks for case when
81 storage size of SOURCE is greater than zero while the storage size
82 of MOLD is zero and MOLD is an array shall not depend on SIZE.
83
84 2022-02-02 Harald Anlauf <anlauf@gmx.de>
85
86 Backported from master:
87 2022-02-01 Harald Anlauf <anlauf@gmx.de>
88
89 PR fortran/104331
90 * simplify.c (gfc_simplify_eoshift): Avoid NULL pointer
91 dereference when shape is not set.
92
93 2022-01-26 Harald Anlauf <anlauf@gmx.de>
94
95 Backported from master:
96 2022-01-22 Harald Anlauf <anlauf@gmx.de>
97
98 PR fortran/104127
99 * simplify.c (gfc_simplify_transfer): Ensure that the result
100 typespec is set up for TRANSFER with MOLD of type CHARACTER
101 including character length even if the result is a zero-sized
102 array.
103
104 2022-01-26 Harald Anlauf <anlauf@gmx.de>
105
106 Backported from master:
107 2022-01-25 Harald Anlauf <anlauf@gmx.de>
108
109 PR fortran/104212
110 * check.c (gfc_check_norm2): Check that optional argument DIM is
111 scalar.
112 (gfc_check_parity): Likewise.
113
114 2022-01-26 Harald Anlauf <anlauf@gmx.de>
115
116 Backported from master:
117 2022-01-25 Harald Anlauf <anlauf@gmx.de>
118
119 PR fortran/104227
120 * check.c (gfc_calculate_transfer_sizes): Fix checking of arrays
121 passed as MOLD argument to the TRANSFER intrinsic for having
122 storage size zero.
123
124 2022-01-23 Harald Anlauf <anlauf@gmx.de>
125
126 Backported from master:
127 2022-01-15 Harald Anlauf <anlauf@gmx.de>
128
129 PR fortran/83079
130 * target-memory.c (gfc_interpret_character): Result length is
131 in bytes and thus depends on the character kind.
132 * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Compute correct
133 string length for the result of the TRANSFER intrinsic and for
134 temporaries for the different character kinds.
135
136 2022-01-20 Harald Anlauf <anlauf@gmx.de>
137
138 Backported from master:
139 2022-01-18 Harald Anlauf <anlauf@gmx.de>
140
141 PR fortran/103692
142 * array.c (gfc_expand_constructor): Handle zero-sized array
143 constructors.
144
145 2022-01-17 Mikael Morin <mikael@gcc.gnu.org>
146
147 Backported from master:
148 2022-01-09 Mikael Morin <mikael@gcc.gnu.org>
149
150 PR fortran/103789
151 * trans-array.c (arg_evaluated_for_scalarization): Add MASKL, MASKR,
152 SCAN and VERIFY to the list of intrinsics whose KIND argument is to be
153 ignored.
154
155 2022-01-16 Mikael Morin <mikael@gcc.gnu.org>
156
157 Backported from master:
158 2022-01-09 Mikael Morin <mikael@gcc.gnu.org>
159
160 PR fortran/103789
161 * trans-array.c (arg_evaluated_for_scalarization): Add MASKL, MASKR,
162 SCAN and VERIFY to the list of intrinsics whose KIND argument is to be
163 ignored.
164
165 2022-01-16 Mikael Morin <mikael@gcc.gnu.org>
166
167 Backported from master:
168 2022-01-16 Mikael Morin <mikael@gcc.gnu.org>
169
170 PR fortran/87711
171 PR fortran/97896
172 * trans-array.c (arg_evaluated_for_scalarization): Handle keyword and
173 non-keyword arguments separatedly. Adapt the expected argument index
174 for KIND to each intrinsic in the non-keyword case.
175
176 2022-01-16 Harald Anlauf <anlauf@gmx.de>
177
178 Backported from master:
179 2022-01-14 Harald Anlauf <anlauf@gmx.de>
180
181 PR fortran/103782
182 * expr.c (gfc_simplify_expr): Adjust logic for when to scalarize a
183 call of an intrinsic which may have been overloaded.
184
185 2022-01-16 Harald Anlauf <anlauf@gmx.de>
186
187 Backported from master:
188 2022-01-13 Harald Anlauf <anlauf@gmx.de>
189
190 PR fortran/67804
191 * primary.c (gfc_match_structure_constructor): Recover from errors
192 that occurred while checking for a valid structure constructor in
193 a DATA statement.
194
195 2022-01-15 Harald Anlauf <anlauf@gmx.de>
196
197 Backported from master:
198 2022-01-09 Harald Anlauf <anlauf@gmx.de>
199
200 PR fortran/101762
201 * expr.c (gfc_check_pointer_assign): For pointer initialization
202 targets, check that subscripts and substring indices in
203 specifications are constant expressions.
204
205 2022-01-15 Harald Anlauf <anlauf@gmx.de>
206
207 Backported from master:
208 2022-01-09 Harald Anlauf <anlauf@gmx.de>
209
210 PR fortran/103777
211 * simplify.c (gfc_simplify_maskr): Check validity of argument 'I'
212 before simplifying.
213 (gfc_simplify_maskl): Likewise.
214
215 2022-01-02 Harald Anlauf <anlauf@gmx.de>
216
217 Backported from master:
218 2021-12-29 Harald Anlauf <anlauf@gmx.de>
219
220 PR fortran/102332
221 * expr.c (gfc_get_variable_expr): Avoid NULL pointer dereferences
222 during handling of errors with invalid uses of CLASS variables.
223 * match.c (select_type_set_tmp): Likewise.
224 * primary.c (gfc_match_varspec): Likewise.
225 * resolve.c (resolve_variable): Likewise.
226 (resolve_select_type): Likewise.
227
228 2021-12-27 Harald Anlauf <anlauf@gmx.de>
229
230 Backported from master:
231 2021-12-22 Harald Anlauf <anlauf@gmx.de>
232
233 PR fortran/103776
234 * match.c (match_case_selector): Reject expressions in CASE
235 selector which are not scalar.
236
237 2021-12-27 Harald Anlauf <anlauf@gmx.de>
238
239 Backported from master:
240 2021-12-22 Harald Anlauf <anlauf@gmx.de>
241
242 PR fortran/103778
243 * check.c (is_c_interoperable): A BOZ literal constant is not
244 interoperable.
245
246 2021-12-27 Harald Anlauf <anlauf@gmx.de>
247
248 Backported from master:
249 2021-11-18 Harald Anlauf <anlauf@gmx.de>
250 Steven G. Kargl <kargl@gcc.gnu.org>
251
252 PR fortran/101329
253 * check.c (is_c_interoperable): Reject NULL() as it is not
254 interoperable.
255
256 2021-12-19 Harald Anlauf <anlauf@gmx.de>
257
258 Backported from master:
259 2021-12-10 Harald Anlauf <anlauf@gmx.de>
260
261 PR fortran/103418
262 * check.c (variable_check): Replace previous check of procedure
263 dummy arguments with INTENT(IN) attribute when passed to intrinsic
264 procedures by gfc_check_vardef_context.
265 * expr.c (gfc_check_vardef_context): Correct check of INTENT(IN)
266 dummy arguments for the case of sub-components of a CLASS pointer.
267
268 2021-12-19 Harald Anlauf <anlauf@gmx.de>
269
270 Backported from master:
271 2021-12-18 Harald Anlauf <anlauf@gmx.de>
272
273 PR fortran/103412
274 * check.c (gfc_check_sizeof): Reject BOZ type argument.
275
276 2021-12-15 Harald Anlauf <anlauf@gmx.de>
277
278 Backported from master:
279 2021-12-14 Harald Anlauf <anlauf@gmx.de>
280
281 PR fortran/103717
282 * frontend-passes.c (doloop_code): Prevent NULL pointer
283 dereference when checking for passing a do-loop variable to a
284 contained procedure with an interface mismatch.
285
286 2021-12-15 Harald Anlauf <anlauf@gmx.de>
287
288 Backported from master:
289 2021-12-14 Harald Anlauf <anlauf@gmx.de>
290
291 PR fortran/103718
292 PR fortran/103719
293 * frontend-passes.c (doloop_contained_procedure_code): Add several
294 checks to prevent NULL pointer dereferences on valid and invalid
295 code called within do-loops.
296
297 2021-12-12 Harald Anlauf <anlauf@gmx.de>
298
299 Backported from master:
300 2021-12-11 Harald Anlauf <anlauf@gmx.de>
301
302 PR fortran/103606
303 * resolve.c (resolve_fl_procedure): Do not access CLASS components
304 before class container has been built.
305
306 2021-12-11 Harald Anlauf <anlauf@gmx.de>
307
308 Backported from master:
309 2021-12-07 Harald Anlauf <anlauf@gmx.de>
310
311 PR fortran/103588
312 * array.c (gfc_ref_dimen_size): Do not generate internal error on
313 failed simplification of stride expression; just return failure.
314
315 2021-12-10 Harald Anlauf <anlauf@gmx.de>
316
317 Backported from master:
318 2021-12-08 Harald Anlauf <anlauf@gmx.de>
319
320 PR fortran/103610
321 * array.c (spec_dimen_size): Fix simplification of SHAPE:
322 dimensions must be non-negative.
323
324 2021-12-09 Harald Anlauf <anlauf@gmx.de>
325
326 Backported from master:
327 2021-12-08 Harald Anlauf <anlauf@gmx.de>
328
329 PR fortran/103609
330 * symbol.c (gfc_sym_get_dummy_args): Catch NULL pointer
331 dereference.
332
333 2021-12-08 Harald Anlauf <anlauf@gmx.de>
334
335 Backported from master:
336 2021-12-07 Harald Anlauf <anlauf@gmx.de>
337
338 PR fortran/103591
339 * match.c (match_case_selector): Check type of upper bound in case
340 range.
341
342 2021-12-08 Harald Anlauf <anlauf@gmx.de>
343
344 Backported from master:
345 2021-12-07 Harald Anlauf <anlauf@gmx.de>
346
347 PR fortran/103607
348 * frontend-passes.c (do_subscript): Ensure that array bounds are
349 of type INTEGER before performing checks on array subscripts.
350
351 2021-12-04 Harald Anlauf <anlauf@gmx.de>
352
353 Backported from master:
354 2021-11-30 Harald Anlauf <anlauf@gmx.de>
355
356 PR fortran/102787
357 * array.c (expand_constructor): When encountering a constant array
358 expression or array section within a constructor, simplify it to
359 enable better expansion.
360
361 2021-12-04 Harald Anlauf <anlauf@gmx.de>
362
363 Backported from master:
364 2021-10-14 Harald Anlauf <anlauf@gmx.de>
365
366 PR fortran/102717
367 * simplify.c (gfc_simplify_reshape): Replace assert by error
368 message for negative elements in SHAPE array.
369
370 2021-12-04 Harald Anlauf <anlauf@gmx.de>
371
372 Backported from master:
373 2021-11-26 Harald Anlauf <anlauf@gmx.de>
374
375 PR fortran/103411
376 * check.c (gfc_check_reshape): Improve check of size of source
377 array for the RESHAPE intrinsic against the given shape when pad
378 is not given, and shape is a parameter. Try other simplifications
379 of shape.
380
381 2021-12-04 Harald Anlauf <anlauf@gmx.de>
382
383 Backported from master:
384 2021-11-30 Harald Anlauf <anlauf@gmx.de>
385
386 PR fortran/103473
387 * simplify.c (simplify_minmaxloc_nodim): Avoid NULL pointer
388 dereference when shape is not set.
389
390 2021-12-04 Harald Anlauf <anlauf@gmx.de>
391
392 Backported from master:
393 2021-12-03 Harald Anlauf <anlauf@gmx.de>
394 Steven G. Kargl <kargl@gcc.gnu.org>
395
396 PR fortran/103505
397 * array.c (match_array_element_spec): Try to simplify array
398 element specifications to improve early checking.
399 * expr.c (gfc_try_simplify_expr): New. Try simplification of an
400 expression via gfc_simplify_expr. When an error occurs, roll
401 back.
402 * gfortran.h (gfc_try_simplify_expr): Declare it.
403
404 2021-11-29 Jakub Jelinek <jakub@redhat.com>
405
406 Backported from master:
407 2021-11-21 Jakub Jelinek <jakub@redhat.com>
408
409 PR debug/103315
410 * trans-types.c (gfc_get_array_descr_info): Use DW_OP_deref_size 1
411 instead of DW_OP_deref for DW_AT_rank.
412
413 2021-11-24 Harald Anlauf <anlauf@gmx.de>
414
415 Backported from master:
416 2021-11-23 Harald Anlauf <anlauf@gmx.de>
417
418 PR fortran/103392
419 * simplify.c (simplify_bound): Do not try to simplify
420 LBOUND/UBOUND for arrays with POINTER or ALLOCATABLE attribute.
421
422 2021-11-24 Harald Anlauf <anlauf@gmx.de>
423
424 Backported from master:
425 2021-11-23 Harald Anlauf <anlauf@gmx.de>
426
427 PR fortran/87711
428 PR fortran/87851
429 * trans-array.c (arg_evaluated_for_scalarization): Add LEN_TRIM to
430 list of intrinsics for which an optional KIND argument needs to be
431 removed before scalarization.
432
433 2021-11-22 Harald Anlauf <anlauf@gmx.de>
434
435 Backported from master:
436 2021-11-21 Harald Anlauf <anlauf@gmx.de>
437 Steven G. Kargl <kargl@gcc.gnu.org>
438
439 PR fortran/99061
440 * trans-intrinsic.c (gfc_lookup_intrinsic): Helper function for
441 looking up gfortran builtin intrinsics.
442 (gfc_conv_intrinsic_atrigd): Use it.
443 (gfc_conv_intrinsic_cotan): Likewise.
444 (gfc_conv_intrinsic_cotand): Likewise.
445 (gfc_conv_intrinsic_atan2d): Likewise.
446
447 2021-11-16 Mikael Morin <mikael@gcc.gnu.org>
448
449 Backported from master:
450 2021-11-12 Mikael Morin <mikael@gcc.gnu.org>
451
452 PR fortran/97896
453 * intrinsic.c (add_sym_4ind): Remove.
454 (add_functions): Use add_sym4 instead of add_sym4ind.
455 Don’t special case the index intrinsic.
456 * iresolve.c (gfc_resolve_index_func): Use the individual arguments
457 directly instead of the full argument list.
458 * intrinsic.h (gfc_resolve_index_func): Update the declaration
459 accordingly.
460 * trans-decl.c (gfc_get_extern_function_decl): Don’t modify the
461 list of arguments in the case of the index intrinsic.
462 * trans-array.h (gfc_get_intrinsic_for_expr,
463 gfc_get_proc_ifc_for_expr): New.
464 * trans-array.c (gfc_get_intrinsic_for_expr,
465 arg_evaluated_for_scalarization): New.
466 (gfc_walk_elemental_function_args): Add intrinsic procedure
467 as argument. Count arguments. Check arg_evaluated_for_scalarization.
468 * trans-intrinsic.c (gfc_walk_intrinsic_function): Update call.
469 * trans-stmt.c (get_intrinsic_for_code): New.
470 (gfc_trans_call): Update call.
471
472 2021-11-11 Harald Anlauf <anlauf@gmx.de>
473
474 Backported from master:
475 2021-11-10 Harald Anlauf <anlauf@gmx.de>
476
477 PR fortran/103137
478 PR fortran/103138
479 * check.c (gfc_check_shape): Avoid NULL pointer dereference on
480 missing ref.
481 * simplify.c (gfc_simplify_cshift): Avoid NULL pointer dereference
482 when shape not set.
483 (gfc_simplify_transpose): Likewise.
484
485 2021-11-07 Harald Anlauf <anlauf@gmx.de>
486
487 Backported from master:
488 2021-10-26 Harald Anlauf <anlauf@gmx.de>
489
490 PR fortran/102816
491 * resolve.c (resolve_structure_cons): Reject invalid array spec of
492 a DT component referenced in a structure constructor.
493
494 2021-11-07 Harald Anlauf <anlauf@gmx.de>
495
496 Backported from master:
497 2021-10-15 Harald Anlauf <anlauf@gmx.de>
498 Tobias Burnus <tobias@codesourcery.com>
499
500 PR fortran/102685
501 * decl.c (match_clist_expr): Set rank/shape of clist initializer
502 to match LHS.
503 * resolve.c (resolve_structure_cons): In a structure constructor,
504 compare shapes of array components against declared shape.
505
506 2021-11-07 Harald Anlauf <anlauf@gmx.de>
507
508 Backported from master:
509 2021-11-06 Harald Anlauf <anlauf@gmx.de>
510
511 PR fortran/102715
512 * decl.c (add_init_expr_to_sym): Reject rank mismatch between
513 array and its initializer.
514
515 2021-11-07 Harald Anlauf <anlauf@gmx.de>
516
517 Backported from master:
518 2021-11-05 Harald Anlauf <anlauf@gmx.de>
519
520 PR fortran/102817
521 * expr.c (simplify_parameter_variable): Copy shape of referenced
522 subobject when simplifying.
523
524 2021-11-07 Harald Anlauf <anlauf@gmx.de>
525
526 Backported from master:
527 2021-10-10 Harald Anlauf <anlauf@gmx.de>
528
529 PR fortran/99348
530 PR fortran/102521
531 * decl.c (add_init_expr_to_sym): Extend initialization of
532 parameter arrays from scalars to handle derived types.
533
534 2021-10-27 Harald Anlauf <anlauf@gmx.de>
535
536 Backported from master:
537 2021-10-26 Harald Anlauf <anlauf@gmx.de>
538
539 PR fortran/102917
540 * decl.c (match_attr_spec): Remove invalid integer kind checks on
541 KIND and LEN attributes of PDTs.
542
543 2021-10-19 Tobias Burnus <tobias@codesourcery.com>
544
545 Backported from master:
546 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
547
548 PR fortran/102745
549 * intrinsic.c (gfc_convert_type_warn): Fix checks by checking CLASS
550 and do typcheck in correct order for type extension.
551 * misc.c (gfc_typename): Print proper not internal CLASS type name.
552
553 2021-10-17 Harald Anlauf <anlauf@gmx.de>
554
555 Backported from master:
556 2021-10-14 Harald Anlauf <anlauf@gmx.de>
557
558 PR fortran/102716
559 * check.c (gfc_check_shape): Reorder checks so that invalid KIND
560 arguments can be detected.
561
562 2021-10-06 Tobias Burnus <tobias@codesourcery.com>
563
564 Backported from master:
565 2021-10-06 Tobias Burnus <tobias@codesourcery.com>
566
567 * resolve.c (resolve_values): Only show
568 deprecated warning if attr.referenced.
569
570 2021-10-03 Harald Anlauf <anlauf@gmx.de>
571
572 Backported from master:
573 2021-09-30 Harald Anlauf <anlauf@gmx.de>
574
575 PR fortran/102458
576 * simplify.c (simplify_size): Resolve expressions used in array
577 specifications so that SIZE can be simplified.
578
579 2021-10-03 Harald Anlauf <anlauf@gmx.de>
580
581 Backported from master:
582 2021-09-24 Harald Anlauf <anlauf@gmx.de>
583
584 PR fortran/102458
585 * expr.c (is_non_constant_intrinsic): Check for intrinsics
586 excluded in constant expressions (F2018:10.1.12).
587 (gfc_is_constant_expr): Use that check.
588
589 2021-09-30 Harald Anlauf <anlauf@gmx.de>
590
591 Backported from master:
592 2021-09-29 Harald Anlauf <anlauf@gmx.de>
593
594 PR fortran/102520
595 * array.c (expand_constructor): Do not dereference NULL pointer.
596
597 2021-09-21 Harald Anlauf <anlauf@gmx.de>
598
599 Backported from master:
600 2021-09-17 Harald Anlauf <anlauf@gmx.de>
601
602 PR fortran/102366
603 * trans-decl.c (gfc_finish_var_decl): Disable the warning message
604 for variables moved from stack to static storange if they are
605 declared in the main, but allow the move to happen.
606
607 2021-09-20 Tobias Burnus <tobias@codesourcery.com>
608
609 * trans-openmp.c (gfc_split_omp_clauses): Don't put 'order(concurrent)'
610 on 'distribute' for combined directives, matching OpenMP 5.0
611
612 2021-09-19 Harald Anlauf <anlauf@gmx.de>
613
614 Backported from master:
615 2021-09-16 Harald Anlauf <anlauf@gmx.de>
616
617 PR fortran/102287
618 * trans-expr.c (gfc_conv_procedure_call): Wrap deallocation of
619 allocatable components of optional allocatable derived type
620 procedure arguments with INTENT(OUT) into a presence check.
621
622 2021-09-19 Harald Anlauf <anlauf@gmx.de>
623
624 Backported from master:
625 2021-09-14 Harald Anlauf <anlauf@gmx.de>
626
627 PR fortran/102311
628 * resolve.c (resolve_entries): Attempt to recover cleanly after
629 rejecting mismatched function entries.
630
631 2021-09-16 Harald Anlauf <anlauf@gmx.de>
632
633 Backported from master:
634 2021-09-13 Harald Anlauf <anlauf@gmx.de>
635
636 PR fortran/85130
637 * expr.c (find_substring_ref): Handle given substring start and
638 end indices as signed integers, not unsigned.
639
640 2021-09-16 Harald Anlauf <anlauf@gmx.de>
641
642 Backported from master:
643 2021-09-13 Harald Anlauf <anlauf@gmx.de>
644
645 PR fortran/82314
646 * decl.c (add_init_expr_to_sym): For proper initialization of
647 array-valued named constants the array bounds need to be
648 simplified before adding the initializer.
649
650 2021-09-11 Harald Anlauf <anlauf@gmx.de>
651
652 Backported from master:
653 2021-09-09 Harald Anlauf <anlauf@gmx.de>
654
655 PR fortran/98490
656 * trans-expr.c (gfc_conv_substring): Do not generate substring
657 bounds check for implied do loop index variable before it actually
658 becomes defined.
659
660 2021-09-11 Harald Anlauf <anlauf@gmx.de>
661
662 Backported from master:
663 2021-09-07 Harald Anlauf <anlauf@gmx.de>
664
665 PR fortran/101327
666 * expr.c (find_array_element): When bounds cannot be determined as
667 constant, return error instead of aborting.
668
669 2021-09-05 Harald Anlauf <anlauf@gmx.de>
670
671 Backported from master:
672 2021-08-31 Harald Anlauf <anlauf@gmx.de>
673
674 PR fortran/100950
675 * simplify.c (substring_has_constant_len): Minimize checks for
676 substring expressions being allowed.
677
678 2021-09-05 Harald Anlauf <anlauf@gmx.de>
679
680 Backported from master:
681 2021-08-19 Harald Anlauf <anlauf@gmx.de>
682
683 PR fortran/100950
684 * simplify.c (substring_has_constant_len): New.
685 (gfc_simplify_len): Handle case of substrings with constant
686 bounds.
687
688 2021-09-03 Harald Anlauf <anlauf@gmx.de>
689
690 Backported from master:
691 2021-08-30 Harald Anlauf <anlauf@gmx.de>
692
693 PR fortran/101349
694 * resolve.c (resolve_allocate_expr): An unlimited polymorphic
695 argument to ALLOCATE must be ALLOCATABLE or a POINTER. Fix the
696 corresponding check.
697
698 2021-09-03 Harald Anlauf <anlauf@gmx.de>
699
700 Backported from master:
701 2021-08-30 Harald Anlauf <anlauf@gmx.de>
702
703 PR fortran/102113
704 * match.c (gfc_match_goto): Allow for whitespace in parsing list
705 of labels.
706
707 2021-08-30 Harald Anlauf <anlauf@gmx.de>
708
709 Backported from master:
710 2021-08-28 Harald Anlauf <anlauf@gmx.de>
711
712 PR fortran/87737
713 * resolve.c (resolve_entries): For functions of type CHARACTER
714 tighten the checks for matching characteristics.
715
716 2021-08-28 Paul Thomas <pault@gcc.gnu.org>
717
718 Backported from master:
719 2021-05-06 Paul Thomas <pault@gcc.gnu.org>
720
721 PR fortran/46691
722 PR fortran/99819
723 * class.c (gfc_build_class_symbol): Remove the error that
724 disables assumed size class arrays. Class array types that are
725 not deferred shape or assumed rank are given a unique name and
726 placed in the procedure namespace.
727 * trans-array.c (gfc_trans_g77_array): Obtain the data pointer
728 for class arrays.
729 (gfc_trans_dummy_array_bias): Suppress the runtime error for
730 extent violations in explicit shape class arrays because it
731 always fails.
732 * trans-expr.c (gfc_conv_procedure_call): Handle assumed size
733 class actual arguments passed to non-descriptor formal args by
734 using the data pointer, stored as the symbol's backend decl.
735
736 2021-08-26 Harald Anlauf <anlauf@gmx.de>
737
738 Backported from master:
739 2021-08-24 Harald Anlauf <anlauf@gmx.de>
740
741 PR fortran/98411
742 * trans-decl.c (gfc_finish_var_decl): Adjust check to handle
743 implicit SAVE as well as variables in the main program. Improve
744 warning message text.
745
746 2021-08-16 Harald Anlauf <anlauf@gmx.de>
747
748 Backported from master:
749 2021-08-15 Harald Anlauf <anlauf@gmx.de>
750
751 PR fortran/99351
752 * match.c (sync_statement): Replace %v code by %e in gfc_match to
753 allow for function references as STAT and ERRMSG arguments.
754 * resolve.c (resolve_sync): Adjust checks of STAT= and ERRMSG= to
755 being definable arguments. Function references with a data
756 pointer result are accepted.
757 * trans-stmt.c (gfc_trans_sync): Adjust assertion.
758
759 2021-08-11 Harald Anlauf <anlauf@gmx.de>
760
761 Backported from master:
762 2021-07-28 Harald Anlauf <anlauf@gmx.de>
763
764 PR fortran/101564
765 * expr.c (gfc_check_vardef_context): Add check for KIND and LEN
766 parameter inquiries.
767 * match.c (gfc_match): Fix comment for %v code.
768 (gfc_match_allocate, gfc_match_deallocate): Replace use of %v code
769 by %e in gfc_match to allow for function references as STAT and
770 ERRMSG arguments.
771 * resolve.c (resolve_allocate_deallocate): Avoid NULL pointer
772 dereferences and shortcut for bad STAT and ERRMSG argument to
773 (DE)ALLOCATE. Remove bogus parts of checks for STAT and ERRMSG.
774
775 2021-07-28 Harald Anlauf <anlauf@gmx.de>
776
777 Backported from master:
778 2021-07-23 Harald Anlauf <anlauf@gmx.de>
779
780 PR fortran/101536
781 * check.c (array_check): Adjust check for the case of CLASS
782 arrays.
783
784 2021-07-28 Harald Anlauf <anlauf@gmx.de>
785
786 Backported from master:
787 2021-07-21 Harald Anlauf <anlauf@gmx.de>
788
789 PR fortran/101514
790 * target-memory.c (gfc_interpret_derived): Size of array component
791 of derived type can only be computed here for explicit shape.
792 * trans-types.c (gfc_get_nodesc_array_type): Do not dereference
793 NULL pointers.
794
795 2021-07-28 Harald Anlauf <anlauf@gmx.de>
796
797 Backported from master:
798 2021-07-18 Harald Anlauf <anlauf@gmx.de>
799
800 PR fortran/101084
801 * io.c (resolve_tag_format): Extend FORMAT check to unknown type.
802
803 2021-07-28 Release Manager
804
805 * GCC 11.2.0 released.
806
807 2021-07-15 Harald Anlauf <anlauf@gmx.de>
808
809 Backported from master:
810 2021-07-14 Harald Anlauf <anlauf@gmx.de>
811
812 PR fortran/100949
813 * trans-expr.c (gfc_trans_class_init_assign): Call
814 gfc_conv_expr_present only for dummy variables.
815
816 2021-07-08 Thomas Koenig <tkoenig@gcc.gnu.org>
817
818 Backported from master:
819 2021-07-06 Thomas Koenig <tkoenig@gcc.gnu.org>
820
821 PR fortran/100227
822 * frontend-passes.c (traverse_io_block): Adjust test for
823 when a variable is eligible for the transformation to
824 array slice.
825
826 2021-06-19 Harald Anlauf <anlauf@gmx.de>
827
828 Backported from master:
829 2021-06-18 Harald Anlauf <anlauf@gmx.de>
830
831 PR fortran/100283
832 PR fortran/101123
833 * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Unconditionally
834 convert result of min/max to result type.
835
836 2021-06-18 Harald Anlauf <anlauf@gmx.de>
837
838 Backported from master:
839 2021-06-16 Harald Anlauf <anlauf@gmx.de>
840
841 PR fortran/95501
842 PR fortran/95502
843 * expr.c (gfc_check_pointer_assign): Avoid NULL pointer
844 dereference.
845 * match.c (gfc_match_pointer_assignment): Likewise.
846 * parse.c (gfc_check_do_variable): Avoid comparison with NULL
847 symtree.
848
849 2021-06-17 Jakub Jelinek <jakub@redhat.com>
850
851 Backported from master:
852 2021-06-09 Jakub Jelinek <jakub@redhat.com>
853
854 PR fortran/100965
855 * trans-openmp.c (gfc_omp_finish_clause): Gimplify OMP_CLAUSE_SIZE.
856
857 2021-06-16 José Rui Faustino de Sousa <jrfsousa@gmail.com>
858
859 PR fortran/82376
860 * trans-expr.c (gfc_conv_procedure_call): Evaluate function result
861 and then pass a pointer.
862
863 2021-06-06 Andre Vehreschild <vehre@gcc.gnu.org>
864 Steve Kargl <kargl@gcc.gnu.org>
865
866 PR fortran/98301
867 * trans-decl.c (gfc_build_builtin_function_decls): Move decl.
868 * trans-intrinsic.c (conv_intrinsic_random_init): Use bool for
869 lib-call of caf_random_init instead of logical (4-byte).
870 * trans.h: Add tree var for random_init.
871
872 2021-06-04 Harald Anlauf <anlauf@gmx.de>
873
874 Backported from master:
875 2021-06-04 Harald Anlauf <anlauf@gmx.de>
876
877 PR fortran/99839
878 * frontend-passes.c (inline_matmul_assign): Do not inline matmul
879 if the assignment to the resulting array if it is not of canonical
880 type (real/integer/complex/logical).
881
882 2021-05-28 Harald Anlauf <anlauf@gmx.de>
883
884 Backported from master:
885 2021-05-17 Harald Anlauf <anlauf@gmx.de>
886
887 PR fortran/98411
888 * trans-decl.c (gfc_finish_var_decl): Add check for explicit SAVE
889 attribute.
890
891 2021-05-28 Harald Anlauf <anlauf@gmx.de>
892
893 Backported from master:
894 2021-05-27 Harald Anlauf <anlauf@gmx.de>
895
896 PR fortran/100656
897 * trans-array.c (gfc_conv_ss_startstride): Do not call check for
898 presence of a dummy argument when a symbol actually refers to a
899 non-dummy.
900
901 2021-05-28 Harald Anlauf <anlauf@gmx.de>
902
903 Backported from master:
904 2021-05-27 Harald Anlauf <anlauf@gmx.de>
905
906 PR fortran/100602
907 * trans-intrinsic.c (gfc_conv_intrinsic_size): Use CLASS data
908 attributes for CLASS arrays for generation of runtime error.
909
910 2021-05-25 Harald Anlauf <anlauf@gmx.de>
911
912 Backported from master:
913 2021-05-23 Harald Anlauf <anlauf@gmx.de>
914
915 PR fortran/100551
916 * trans-expr.c (gfc_conv_procedure_call): Adjust check for
917 implicit conversion of actual argument to an unlimited polymorphic
918 procedure argument.
919
920 2021-05-25 Tobias Burnus <tobias@codesourcery.com>
921
922 Backported from master:
923 2021-05-25 Tobias Burnus <tobias@codesourcery.com>
924 Johannes Nendwich <a08727063@unet.univie.ac.at>
925
926 * intrinsic.texi (GERROR, GETARGS, GETLOG, NORM2, PARITY, RANDOM_INIT,
927 RANDOM_NUMBER): Fix typos and copy'n'paste errors.
928
929 2021-05-23 Tobias Burnus <tobias@codesourcery.com>
930
931 Backported from master:
932 2021-05-23 Tobias Burnus <tobias@codesourcery.com>
933
934 * intrinsic.texi (ATOMIC_ADD, ATOMIC_FETCH_ADD): Use the
935 proper variable name in the description.
936
937 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
938
939 Backported from master:
940 2021-05-17 Tobias Burnus <tobias@codesourcery.com>
941
942 PR fortran/100633
943 * resolve.c (gfc_resolve_code): Reject nonintrinsic assignments in
944 OMP WORKSHARE.
945
946 2021-05-17 Tobias Burnus <tobias@codesourcery.com>
947
948 Backported from master:
949 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
950
951 * resolve.c (resolve_symbol): Handle implicit SAVE of main-program
952 for vars in 'omp threadprivate' and 'omp declare target'.
953
954 2021-05-05 Harald Anlauf <anlauf@gmx.de>
955
956 Backported from master:
957 2021-05-05 Harald Anlauf <anlauf@gmx.de>
958
959 PR fortran/100274
960 * interface.c (gfc_compare_actual_formal): Continue checks after
961 emitting warning for argument length mismatch.
962 * trans-expr.c (gfc_conv_procedure_call): Check for NULL pointer
963 dereference.
964
965 2021-04-29 Tobias Burnus <tobias@codesourcery.com>
966
967 Backported from master:
968 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
969
970 * openmp.c (gfc_match_omp_variable_list): Gobble whitespace before
971 checking whether a '%' or parenthesis-open follows as next character.
972
973 2021-04-27 Harald Anlauf <anlauf@gmx.de>
974
975 Backported from master:
976 2021-04-24 Harald Anlauf <anlauf@gmx.de>
977
978 PR fortran/100218
979 * expr.c (gfc_check_vardef_context): Extend check to allow pointer
980 from a function reference.
981
982 2021-04-27 Harald Anlauf <anlauf@gmx.de>
983
984 Backported from master:
985 2021-04-24 Harald Anlauf <anlauf@gmx.de>
986
987 PR fortran/100154
988 * check.c (variable_check): Allow function reference having a data
989 pointer result.
990 (arg_strlen_is_zero): New function.
991 (gfc_check_fgetputc_sub): Add static check of character and status
992 arguments.
993 (gfc_check_fgetput_sub): Likewise.
994 * intrinsic.c (add_subroutines): Fix argument name for the
995 character argument to intrinsic subroutines fget[c], fput[c].
996
997 2021-04-27 Release Manager
998
999 * GCC 11.1.0 released.
1000
1001 2021-04-20 Paul Thomas <pault@gcc.gnu.org>
1002
1003 PR fortran/100110
1004 * trans-decl.c (gfc_get_symbol_decl): Replace test for host
1005 association with a check that the current and symbol namespaces
1006 are the same.
1007
1008 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
1009
1010 * lang.opt (fopenacc-kernels=): Remove.
1011
1012 2021-04-16 José Rui Faustino de Sousa <jrfsousa@gmail.com>
1013
1014 PR fortran/100094
1015 * trans-array.c (gfc_trans_deferred_array): Add code to initialize
1016 pointers and allocatables with correct TKR parameters.
1017
1018 2021-04-16 José Rui Faustino de Sousa <jrfsousa@gmail.com>
1019
1020 PR fortran/100018
1021 * resolve.c: Add association check before de-referencing pointer.
1022
1023 2021-04-16 Harald Anlauf <anlauf@gmx.de>
1024 Paul Thomas <pault@gcc.gnu.org>
1025
1026 PR fortran/63797
1027 * module.c (write_symtree): Do not write interface of intrinsic
1028 procedure to module file for F2003 and newer.
1029
1030 2021-04-15 Paul Thomas <pault@gcc.gnu.org>
1031
1032 PR fortran/99307
1033 * symbol.c: Remove trailing white space.
1034 * trans-array.c (gfc_trans_create_temp_array): Create a class
1035 temporary for class expressions and assign the new descriptor
1036 to the data field.
1037 (build_class_array_ref): If the class expr can be extracted,
1038 then use that for 'decl'. Class function results are reliably
1039 handled this way. Call gfc_find_and_cut_at_last_class_ref to
1040 eliminate largely redundant code. Remove dead code and recast
1041 the rest of the code to extract 'decl' for remaining cases.
1042 Call gfc_build_spanned_array_ref.
1043 (gfc_alloc_allocatable_for_assignment): Use class descriptor
1044 element length for 'elemsize1'. Eliminate repeat set of dtype
1045 for class expressions.
1046 * trans-expr.c (gfc_find_and_cut_at_last_class_ref): Include
1047 additional code from build_class_array_ref, and use optional
1048 gfc_typespec pointer argument.
1049 (gfc_trans_scalar_assign): Make use of pre and post blocks for
1050 all class expressions.
1051 * trans.c (get_array_span): For unlimited polymorphic exprs
1052 multiply the span by the value of the _len field.
1053 (gfc_build_spanned_array_ref): New function.
1054 (gfc_build_array_ref): Call gfc_build_spanned_array_ref and
1055 eliminate repeated code.
1056 * trans.h: Add arg to gfc_find_and_cut_at_last_class_ref and
1057 add prototype for gfc_build_spanned_array_ref.
1058
1059 2021-04-14 Martin Liska <mliska@suse.cz>
1060
1061 * intrinsic.texi: The table has first column empty and it makes
1062 trouble when processing makeinfo --xml output.
1063
1064 2021-04-09 Tobias Burnus <tobias@codesourcery.com>
1065
1066 PR fortran/99817
1067 * trans-types.c (gfc_get_function_type): Also generate hidden
1068 coarray argument for character arguments.
1069
1070 2021-04-03 Paul Thomas <pault@gcc.gnu.org>
1071
1072 PR fortran/99818
1073 * interface.c (compare_parameter): The codimension attribute is
1074 applied to the _data field of class formal arguments.
1075
1076 2021-04-01 Harald Anlauf <anlauf@gmx.de>
1077
1078 PR fortran/99840
1079 * simplify.c (gfc_simplify_transpose): Properly initialize
1080 resulting shape.
1081
1082 2021-03-28 Paul Thomas <pault@gcc.gnu.org>
1083
1084 PR fortran/99602
1085 * trans-expr.c (gfc_conv_procedure_call): Use the _data attrs
1086 for class expressions and detect proc pointer evaluations by
1087 the non-null actual argument list.
1088
1089 2021-03-27 Steve Kargl <kargl@gcc.gnu.org>
1090
1091 * misc.c (gfc_typename): Fix off-by-one in buffer sizes.
1092
1093 2021-03-26 Tobias Burnus <tobias@codesourcery.com>
1094
1095 PR fortran/99651
1096 * intrinsic.c (gfc_intrinsic_func_interface): Set
1097 attr.proc = PROC_INTRINSIC if FL_PROCEDURE.
1098
1099 2021-03-24 Tobias Burnus <tobias@codesourcery.com>
1100
1101 PR fortran/99369
1102 * resolve.c (resolve_operator): Make 'msg' buffer larger
1103 and use snprintf.
1104
1105 2021-03-23 Tobias Burnus <tobias@codesourcery.com>
1106
1107 PR fortran/93660
1108 * trans-decl.c (build_function_decl): Add comment;
1109 increment hidden_typelist for caf_token/caf_offset.
1110 * trans-types.c (gfc_get_function_type): Add comment;
1111 add missing caf_token/caf_offset args.
1112
1113 2021-03-22 Tobias Burnus <tobias@codesourcery.com>
1114
1115 PR fortran/99688
1116 * match.c (select_type_set_tmp, gfc_match_select_type,
1117 gfc_match_select_rank): Fix 'name' buffersize to avoid out of bounds.
1118 * resolve.c (resolve_select_type): Likewise.
1119
1120 2021-03-19 Thomas Koenig <tkoenig@gcc.gnu.org>
1121
1122 * frontend-passes.c (inline_limit_check): Add rank_a
1123 argument. If a is rank 1, set the second dimension to 1.
1124 (inline_matmul_assign): Pass rank_a argument to inline_limit_check.
1125 (call_external_blas): Likewise.
1126
1127 2021-03-15 Thomas Koenig <tkoenig@gcc.gnu.org>
1128
1129 PR fortran/99345
1130 * frontend-passes.c (doloop_contained_procedure_code):
1131 Properly handle EXEC_IOLENGTH.
1132
1133 2021-03-15 Paul Thomas <pault@gcc.gnu.org>
1134
1135 PR fortran/99545
1136 * trans-stmt.c (gfc_trans_allocate): Mark the initialization
1137 assignment by setting init_flag.
1138
1139 2021-03-14 Harald Anlauf <anlauf@gmx.de>
1140 Paul Thomas <pault@gcc.gnu.org>
1141
1142 * trans-expr.c (gfc_conv_procedure_call): Fix runtime checks for
1143 CLASS arguments.
1144 * trans-intrinsic.c (gfc_conv_intrinsic_size): Likewise.
1145
1146 2021-03-13 Paul Thomas <pault@gcc.gnu.org>
1147
1148 PR fortran/99125
1149 * trans-array.c (gfc_conv_expr_descriptor): For deferred length
1150 length components use the ss_info string length instead of
1151 gfc_get_expr_charlen. Make sure that the deferred string length
1152 is a variable before assigning to it. Otherwise use the expr.
1153 * trans-expr.c (gfc_conv_string_length): Make sure that the
1154 deferred string length is a variable before assigning to it.
1155
1156 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
1157
1158 PR fortran/99514
1159 * resolve.c (resolve_symbol): Accept vars which are in DATA
1160 and hence (either) implicit SAVE (or in common).
1161
1162 2021-03-10 Harald Anlauf <anlauf@gmx.de>
1163
1164 PR fortran/99205
1165 * data.c (gfc_assign_data_value): Reject non-constant character
1166 length for lvalue.
1167 * trans-array.c (gfc_conv_array_initializer): Restrict loop to
1168 elements which are defined to avoid NULL pointer dereference.
1169
1170 2021-03-10 Tobias Burnus <tobias@codesourcery.com>
1171
1172 * intrinsic.texi (MIN): Correct 'maximum' to 'minimum'.
1173
1174 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
1175
1176 PR fortran/96983
1177 * trans-intrinsic.c (build_round_expr): Do not implicitly assume
1178 that __float128 is the 128-bit floating-point type.
1179
1180 2021-03-08 Harald Anlauf <anlauf@gmx.de>
1181
1182 PR fortran/49278
1183 * data.c (gfc_assign_data_value): Reject variable with PARAMETER
1184 attribute in DATA statement.
1185
1186 2021-03-05 Tobias Burnus <tobias@codesourcery.com>
1187
1188 PR fortran/99355
1189 PR fortran/57871
1190 * invoke.texi (-freal{4,8}-real-*): Extend description.
1191 * primary.c (match_real_constant): Also promote real literals
1192 with '_kind' number.
1193
1194 2021-03-04 Tobias Burnus <tobias@codesourcery.com>
1195
1196 PR fortran/99355
1197 * decl.c (gfc_match_old_kind_spec, gfc_match_kind_spec): Avoid
1198 redoing kind conversions.
1199 * primary.c (match_real_constant): Likewise.
1200
1201 2021-02-28 Jakub Jelinek <jakub@redhat.com>
1202
1203 PR fortran/99303
1204 * openmp.c (gfc_omp_requires_add_clause): Fix up diagnostic message
1205 wordings.
1206 (resolve_omp_clauses): Likewise.
1207
1208 2021-02-28 Jakub Jelinek <jakub@redhat.com>
1209
1210 PR fortran/99300
1211 * frontend-passes.c (doloop_code): Replace double space in diagnostics
1212 with a single space.
1213
1214 2021-02-24 Paul Thomas <pault@gcc.gnu.org>
1215
1216 PR fortran/98342
1217 * trans-expr.c (gfc_conv_derived_to_class): Add optional arg.
1218 'derived_array' to hold the fixed, parmse expr in the case of
1219 assumed rank formal arguments. Deal with optional arguments.
1220 (gfc_conv_procedure_call): Null 'derived' array for each actual
1221 argument. Add its address to the call to gfc_conv_derived_to_
1222 class. Access the 'data' field of scalar descriptors before
1223 deallocating allocatable components. Also strip NOPs before the
1224 calls to gfc_deallocate_alloc_comp. Use 'derived' array as the
1225 input to gfc_deallocate_alloc_comp if it is available.
1226 * trans.h : Include the optional argument 'derived_array' to
1227 the prototype of gfc_conv_derived_to_class. The default value
1228 is NULL_TREE.
1229
1230 2021-02-23 Paul Thomas <pault@gcc.gnu.org>
1231
1232 PR fortran/99124
1233 * resolve.c (resolve_fl_procedure): Include class results in
1234 the test for F2018, C15100.
1235 * trans-array.c (get_class_info_from_ss): Do not use the saved
1236 descriptor to obtain the class expression for variables. Use
1237 gfc_get_class_from_expr instead.
1238
1239 2021-02-23 Harald Anlauf <anlauf@gmx.de>
1240
1241 PR fortran/99206
1242 * simplify.c (gfc_simplify_reshape): Set string length for
1243 character arguments.
1244
1245 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
1246
1247 PR fortran/99171
1248 * trans-openmp.c (gfc_omp_is_optional_argument): Regard optional
1249 dummy procs as nonoptional as no special treatment is needed.
1250
1251 2021-02-21 Harald Anlauf <anlauf@gmx.de>
1252
1253 * trans-expr.c (gfc_conv_procedure_call): Do not add clobber to
1254 allocatable intent(out) argument.
1255
1256 2021-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1257
1258 PR fortran/98686
1259 * match.c (gfc_match_namelist): If BT_UNKNOWN, check for
1260 IMPLICIT NONE and and issue an error, otherwise set the type
1261 to its IMPLICIT type so that any subsequent use of objects will
1262 will confirm their types.
1263
1264 2021-02-19 Harald Anlauf <anlauf@gmx.de>
1265
1266 * symbol.c (gfc_add_flavor): Reverse order of conditions.
1267
1268 2021-02-19 Tobias Burnus <tobias@codesourcery.com>
1269
1270 PR fortran/99010
1271 * dependency.c (gfc_dep_resolver): Fix coarray handling.
1272
1273 2021-02-19 Tobias Burnus <tobias@codesourcery.com>
1274
1275 PR fortran/99146
1276 * interface.c:
1277
1278 2021-02-19 Tobias Burnus <tobias@codesourcery.com>
1279
1280 PR fortran/99027
1281 * simplify.c (simplify_bound_dim): Honor DIMEN_ELEMENT
1282 when using dim=.
1283
1284 2021-02-17 Julian Brown <julian@codesourcery.com>
1285
1286 * openmp.c (resolve_omp_clauses): Disallow selecting components
1287 of arrays of derived type.
1288
1289 2021-02-17 Julian Brown <julian@codesourcery.com>
1290
1291 * trans-openmp.c (gfc_trans_omp_clauses): Handle element selection
1292 for arrays of derived types.
1293
1294 2021-02-16 Tobias Burnus <tobias@codesourcery.com>
1295
1296 * expr.c (gfc_is_simplify_contiguous): Handle REF_INQUIRY, i.e.
1297 %im and %re which are EXPR_VARIABLE.
1298 * openmp.c (resolve_omp_clauses): Diagnose %re/%im explicitly.
1299
1300 2021-02-16 Tobias Burnus <tobias@codesourcery.com>
1301
1302 PR fortran/99111
1303 * io.c (resolve_tag_format): Reject BT_DERIVED/CLASS/VOID
1304 as (array-valued) FORMAT tag.
1305
1306 2021-02-12 Tobias Burnus <tobias@codesourcery.com>
1307
1308 PR fortran/99043
1309 * trans-expr.c (gfc_conv_procedure_call): Don't reset
1310 rank of assumed-rank array.
1311
1312 2021-02-11 Paul Thomas <pault@gcc.gnu.org>
1313
1314 PR fortran/98897
1315 * match.c (gfc_match_call): Include associate names as possible
1316 entities with typebound subroutines. The target needs to be
1317 resolved for the type.
1318
1319 2021-02-11 Paul Thomas <pault@gcc.gnu.org>
1320
1321 PR fortran/99060
1322 * primary.c (gfc_match_varspec): Test for non-null 'previous'
1323 before using its name in the error message.
1324
1325 2021-02-11 Tobias Burnus <tobias@codesourcery.com>
1326
1327 * intrinsic.texi (FINDLOC): Add 'MASK' to argument table.
1328 (MAXLOC, MAXVAL, MINLOC, MINVAL): For 'MASK', remove 'an
1329 array' as scalars are also permitted.
1330
1331 2021-02-10 Julian Brown <julian@codesourcery.com>
1332
1333 PR fortran/98979
1334 * openmp.c (resolve_omp_clauses): Omit OpenACC update in
1335 contiguity check and stride-specified error.
1336
1337 2021-02-04 Julian Brown <julian@codesourcery.com>
1338
1339 * openmp.c (resolve_omp_clauses): Omit OpenACC update in
1340 contiguity check and stride-specified error.
1341
1342 2021-02-04 Julian Brown <julian@codesourcery.com>
1343
1344 * trans-openmp.c (gfc_trans_omp_clauses): Use class_pointer attribute
1345 for BT_CLASS.
1346
1347 2021-02-04 Julian Brown <julian@codesourcery.com>
1348
1349 * trans-openmp.c (gfc_trans_omp_clauses): Fix dereferencing for
1350 BT_DERIVED members.
1351
1352 2021-02-04 Tobias Burnus <tobias@codesourcery.com>
1353
1354 * openmp.c (resolve_omp_clauses): Explicitly diagnose
1355 substrings as not permitted.
1356
1357 2021-02-03 Jeff Law <law@redhat.com>
1358
1359 * intrinsic.texi (ANINT): Fix typo.
1360
1361 2021-02-03 Tobias Burnus <tobias@codesourcery.com>
1362
1363 PR fortran/98913
1364 * dependency.c (gfc_dep_resolver): Treat local access
1365 to coarrays like any array access in dependency analysis.
1366
1367 2021-01-28 Harald Anlauf <anlauf@gmx.de>
1368
1369 PR fortran/86470
1370 * trans.c (gfc_call_malloc): Allocate area of size 1 if passed
1371 size is NULL (as documented).
1372
1373 2021-01-27 Paul Thomas <pault@gcc.gnu.org>
1374
1375 PR fortran/93924
1376 PR fortran/93925
1377 * trans-expr.c (gfc_conv_procedure_call): Suppress the call to
1378 gfc_conv_intrinsic_to_class for unlimited polymorphic procedure
1379 pointers.
1380 (gfc_trans_assignment_1): Similarly suppress class assignment
1381 for class valued procedure pointers.
1382
1383 2021-01-27 Paul Thomas <pault@gcc.gnu.org>
1384
1385 PR fortran/98472
1386 * trans-array.c (gfc_conv_expr_descriptor): Include elemental
1387 procedure pointers in the assert under the comment 'elemental
1388 function' and eliminate the second, spurious assert.
1389
1390 2021-01-25 Harald Anlauf <anlauf@gmx.de>
1391
1392 PR fortran/70070
1393 * data.c (create_character_initializer): Check substring indices
1394 against bounds.
1395 (gfc_assign_data_value): Catch error returned from
1396 create_character_initializer.
1397
1398 2021-01-25 Tobias Burnus <tobias@codesourcery.com>
1399
1400 * intrinsic.texi (CO_BROADCAST, CO_MIN, CO_REDUCE, CO_SUM): Fix typos.
1401
1402 2021-01-25 Steve Kargl <kargl@gcc.gnu.org>
1403
1404 PR fortran/98517
1405 * resolve.c (resolve_charlen): Check that length expression is
1406 present before testing for scalar/integer..
1407
1408 2021-01-22 Paul Thomas <pault@gcc.gnu.org>
1409
1410 PR fortran/98565
1411 * trans-intrinsic.c (gfc_conv_associated): Do not add a _data
1412 component for scalar class function targets. Instead, fix the
1413 function result and access the _data from that.
1414
1415 2021-01-21 Jorge D'Elia <jdelia@cimec.unl.edu.ar>
1416
1417 * intrinsic.texi (CO_MAX): Fix typo.
1418
1419 2021-01-21 Paul Thomas <pault@gcc.gnu.org>
1420
1421 PR fortran/96320
1422 * decl.c (gfc_match_modproc): It is not an error to find a
1423 module procedure declaration within a contains block.
1424 * expr.c (gfc_check_vardef_context): Pure procedure result is
1425 assignable. Change 'own_scope' accordingly.
1426 * resolve.c (resolve_typebound_procedure): A procedure that
1427 has the module procedure attribute is almost certainly a
1428 module procedure, whatever its interface.
1429
1430 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
1431
1432 PR fortran/98476
1433 * openmp.c (resolve_omp_clauses): Change use_device_ptr
1434 to use_device_addr for unless type(c_ptr); check all
1435 list item for is_device_ptr.
1436
1437 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
1438
1439 * dump-parse-tree.c (show_omp_clauses): Handle detach clause.
1440 * frontend-passes.c (gfc_code_walker): Walk detach expression.
1441 * gfortran.h (struct gfc_omp_clauses): Add detach field.
1442 (gfc_c_intptr_kind): New.
1443 * openmp.c (gfc_free_omp_clauses): Free detach clause.
1444 (gfc_match_omp_detach): New.
1445 (enum omp_mask1): Add OMP_CLAUSE_DETACH.
1446 (enum omp_mask2): Remove OMP_CLAUSE_DETACH.
1447 (gfc_match_omp_clauses): Handle OMP_CLAUSE_DETACH for OpenMP.
1448 (OMP_TASK_CLAUSES): Add OMP_CLAUSE_DETACH.
1449 (resolve_omp_clauses): Prevent use of detach with mergeable and
1450 overriding the data sharing mode of the event handle.
1451 * trans-openmp.c (gfc_trans_omp_clauses): Handle detach clause.
1452 * trans-types.c (gfc_c_intptr_kind): New.
1453 (gfc_init_kinds): Initialize gfc_c_intptr_kind.
1454 * types.def
1455 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
1456 to...
1457 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
1458 ...this. Add extra argument.
1459
1460 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1461
1462 * gfortran.h (gfc_resolve_substring): Add prototype.
1463 * primary.c (match_string_constant): Simplify substrings with
1464 constant starting and ending points.
1465 * resolve.c: Rename resolve_substring to gfc_resolve_substring.
1466 (gfc_resolve_ref): Use renamed function gfc_resolve_substring.
1467
1468 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1469
1470 PR fortran/98661
1471 * resolve.c (resolve_component): Derived type components with
1472 ALLOCATABLE or POINTER attribute shall have a deferred shape.
1473
1474 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1475
1476 Revert:
1477 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1478
1479 PR fortran/98661
1480 * resolve.c (resolve_component): Derived type components with
1481 ALLOCATABLE or POINTER attribute shall have a deferred shape.
1482
1483 2021-01-14 Harald Anlauf <anlauf@gmx.de>
1484
1485 PR fortran/98661
1486 * resolve.c (resolve_component): Derived type components with
1487 ALLOCATABLE or POINTER attribute shall have a deferred shape.
1488
1489 2021-01-08 Paul Thomas <pault@gcc.gnu.org>
1490
1491 PR fortran/93794
1492 * trans-expr.c (gfc_conv_component_ref): Remove the condition
1493 that deferred character length components only be allocatable.
1494
1495 2021-01-08 Paul Thomas <pault@gcc.gnu.org>
1496
1497 PR fortran/98458
1498 * simplify.c (is_constant_array_expr): If an array constructor
1499 expression has elements other than constants or structures, try
1500 fixing the expression with gfc_reduce_init_expr. Also, if shape
1501 is NULL, obtain the array size and set it.
1502
1503 2021-01-07 Paul Thomas <pault@gcc.gnu.org>
1504
1505 PR fortran/93701
1506 * resolve.c (find_array_spec): Put static prototype for
1507 resolve_assoc_var before this function and call for associate
1508 variables.
1509
1510 2021-01-06 Harald Anlauf <anlauf@gmx.de>
1511
1512 * resolve.c (resolve_component): Add check for valid CLASS
1513 reference before trying to access CLASS data.
1514
1515 2021-01-04 Martin Liska <mliska@suse.cz>
1516
1517 * ChangeLog-2018: Remove duplicate ChangeLog entries.
1518
1519 2021-01-01 Harald Anlauf <anlauf@gmx.de>
1520
1521 * class.c (gfc_find_vtab): Add check on attribute is_class.
1522
1523 2021-01-01 Jakub Jelinek <jakub@redhat.com>
1524
1525 * gfortranspec.c (lang_specific_driver): Update copyright notice
1526 dates.
1527 * gfc-internals.texi: Bump @copying's copyright year.
1528 * gfortran.texi: Ditto.
1529 * intrinsic.texi: Ditto.
1530 * invoke.texi: Ditto.
1531
1532 2021-01-01 Jakub Jelinek <jakub@redhat.com>
1533
1534 * ChangeLog-2020: Rotate ChangeLog. New file.
1535
1536 \f
1537 Copyright (C) 2021 Free Software Foundation, Inc.
1538
1539 Copying and distribution of this file, with or without modification,
1540 are permitted in any medium without royalty provided the copyright
1541 notice and this notice are preserved.
This page took 0.104849 seconds and 5 git commands to generate.