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