]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/fortran/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / fortran / ChangeLog
1 2023-02-16 Steve Kargl <kargl@gcc.gnu.org>
2
3 Backported from master:
4 2023-02-15 Steve Kargl <kargl@gcc.gnu.org>
5
6 PR fortran/104554
7 * resolve.cc (check_assumed_size_reference): Avoid NULL pointer
8 dereference.
9
10 2023-02-10 Jakub Jelinek <jakub@redhat.com>
11
12 Backported from master:
13 2023-02-03 Jakub Jelinek <jakub@redhat.com>
14
15 PR fortran/108451
16 * trans-decl.cc (gfc_trans_use_stmts): Call clear_slot before
17 doing continue.
18
19 2023-02-10 Jakub Jelinek <jakub@redhat.com>
20
21 Backported from master:
22 2023-01-11 Jakub Jelinek <jakub@redhat.com>
23
24 PR fortran/108349
25 * f95-lang.cc (gfc_init_builtin_function): Fix up function types
26 for BUILT_IN_REALLOC and BUILT_IN_SINCOS{F,,L}. Formatting fixes.
27
28 2023-02-09 Steve Kargl <kargl@gcc.gnu.org>
29
30 Backported from master:
31 2023-02-08 Steve Kargl <kargl@gcc.gnu.org>
32
33 PR fortran/103259
34 * resolve.cc (resolve_common_vars): Avoid NULL pointer dereference
35 when a symbol's location is not set.
36
37 2023-02-08 Harald Anlauf <anlauf@gmx.de>
38
39 Backported from master:
40 2023-02-07 Harald Anlauf <anlauf@gmx.de>
41
42 PR fortran/95107
43 * trans-decl.cc (gfc_finish_var_decl): With -fno-automatic, do not
44 make ASSOCIATE variables TREE_STATIC.
45
46 2023-02-05 Mikael Morin <mikael@gcc.gnu.org>
47
48 Backported from master:
49 2023-01-29 Mikael Morin <mikael@gcc.gnu.org>
50
51 PR fortran/108450
52 * check.cc (gfc_check_minloc_maxloc): Explicitly set argument name.
53 (gfc_check_findloc): Ditto.
54
55 2023-02-05 Harald Anlauf <anlauf@gmx.de>
56
57 Backported from master:
58 2023-02-01 Harald Anlauf <anlauf@gmx.de>
59
60 PR fortran/108609
61 * expr.cc (find_array_section): Add check to prevent interpreting an
62 mpz non-integer constant as an integer.
63
64 2023-02-05 Harald Anlauf <anlauf@gmx.de>
65
66 Backported from master:
67 2023-01-28 Harald Anlauf <anlauf@gmx.de>
68 Steven G. Kargl <kargl@gcc.gnu.org>
69
70 PR fortran/108527
71 * resolve.cc (compare_bound_int): Expression to compare must be of
72 type INTEGER.
73 (compare_bound_mpz_t): Likewise.
74 (check_dimension): Fix comment on checks applied to array section
75 and clean up associated logic.
76
77 2023-02-02 Harald Anlauf <anlauf@gmx.de>
78
79 Backported from master:
80 2023-01-28 Harald Anlauf <anlauf@gmx.de>
81
82 PR fortran/108453
83 * match.cc (gfc_match_common): A USE associated name shall not appear
84 in a COMMON block (F2018:C8121).
85
86 2023-01-30 Tobias Burnus <tobias@codesourcery.com>
87
88 Backported from master:
89 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
90
91 PR fortran/108558
92 * trans-openmp.cc (gfc_split_omp_clauses): Handle has_device_addr.
93
94 2023-01-28 Harald Anlauf <anlauf@gmx.de>
95
96 Backported from master:
97 2023-01-24 Harald Anlauf <anlauf@gmx.de>
98
99 PR fortran/108529
100 * simplify.cc (simplify_transformation): Do not try to simplify
101 transformational intrinsic when the ARRAY argument has a NULL shape.
102
103 2023-01-28 Harald Anlauf <anlauf@gmx.de>
104
105 Backported from master:
106 2022-07-14 Harald Anlauf <anlauf@gmx.de>
107 Steven G. Kargl <kargl@gcc.gnu.org>
108
109 PR fortran/106209
110 * decl.cc (add_init_expr_to_sym): Handle bad initializers for
111 implied-shape arrays.
112
113 2023-01-28 Harald Anlauf <anlauf@gmx.de>
114
115 Backported from master:
116 2023-01-17 Harald Anlauf <anlauf@gmx.de>
117
118 PR fortran/108421
119 * interface.cc (get_expr_storage_size): Check that we actually have
120 an integer value before trying to extract it with mpz_get_si.
121
122 2023-01-28 Harald Anlauf <anlauf@gmx.de>
123
124 Backported from master:
125 2023-01-23 Harald Anlauf <anlauf@gmx.de>
126
127 PR fortran/108420
128 * iresolve.cc (check_charlen_present): Preserve character length if
129 there is no array constructor.
130
131 2023-01-28 Harald Anlauf <anlauf@gmx.de>
132
133 Backported from master:
134 2023-01-23 Harald Anlauf <anlauf@gmx.de>
135
136 PR fortran/108501
137 * interface.cc (get_expr_storage_size): Check array subscript triplets
138 that we actually have integer values before trying to extract with
139 mpz_get_si.
140
141 2023-01-28 Harald Anlauf <anlauf@gmx.de>
142
143 Backported from master:
144 2023-01-23 Harald Anlauf <anlauf@gmx.de>
145
146 PR fortran/108502
147 * dependency.cc (gfc_check_dependency): Prevent NULL pointer
148 dereference while recursively checking expressions.
149
150 2023-01-23 Harald Anlauf <anlauf@gmx.de>
151
152 Backported from master:
153 2023-01-19 Harald Anlauf <anlauf@gmx.de>
154
155 PR fortran/108434
156 * expr.cc (class_allocatable): Prevent NULL pointer dereference
157 or invalid read.
158 (class_pointer): Likewise.
159
160 2023-01-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
161
162 PR fortran/106731
163 * trans-array.cc (gfc_trans_auto_array_allocation): Remove gcc_assert (!TREE_STATIC()).
164
165 2022-12-28 Harald Anlauf <anlauf@gmx.de>
166
167 Backported from master:
168 2022-12-23 Harald Anlauf <anlauf@gmx.de>
169
170 PR fortran/108131
171 * array.cc (match_array_element_spec): Avoid too early simplification
172 of matched array element specs that can lead to a misinterpretation
173 when used as array bounds in array declarations.
174
175 2022-12-18 Paul Thomas <pault@gcc.gnu.org>
176
177 Backported from master:
178 2022-12-09 Paul Thomas <pault@gcc.gnu.org>
179
180 PR fortran/107872
181 * resolve.cc (derived_inaccessible): Skip over allocatable components
182 to prevent an infinite loop.
183
184 2022-11-25 Harald Anlauf <anlauf@gmx.de>
185
186 Backported from master:
187 2022-11-18 Harald Anlauf <anlauf@gmx.de>
188
189 PR fortran/107576
190 * interface.cc (gfc_procedure_use): Reject NULL as actual argument
191 when there is no explicit procedure interface.
192
193 2022-10-29 José Rui Faustino de Sousa <jrfsousa@gmail.com>
194
195 Backported from master:
196 2022-10-21 José Rui Faustino de Sousa <jrfsousa@gmail.com>
197
198 PR fortran/100097
199 PR fortran/100098
200 * trans-array.cc (gfc_trans_class_array): New function to
201 initialize class descriptor's TKR information.
202 * trans-array.h (gfc_trans_class_array): Add function prototype.
203 * trans-decl.cc (gfc_trans_deferred_vars): Add calls to the new
204 function for both pointers and allocatables.
205
206 2022-10-28 Harald Anlauf <anlauf@gmx.de>
207
208 Backported from master:
209 2022-10-26 Harald Anlauf <anlauf@gmx.de>
210
211 PR fortran/103413
212 * symbol.cc (gfc_type_compatible): A boz-literal-constant has no type
213 and thus is not considered compatible to any type.
214
215 2022-10-23 Harald Anlauf <anlauf@gmx.de>
216
217 Backported from master:
218 2022-10-20 Harald Anlauf <anlauf@gmx.de>
219 Steven G. Kargl <kargl@gcc.gnu.org>
220
221 PR fortran/105633
222 * expr.cc (find_array_section): Move check for NULL pointers so
223 that both subscript triplets and vector subscripts are covered.
224
225 2022-10-12 Mikael Morin <mikael@gcc.gnu.org>
226
227 Backported from master:
228 2022-09-25 Mikael Morin <mikael@gcc.gnu.org>
229
230 PR fortran/106817
231 * trans-expr.cc (gfc_conv_procedure_call): Collect all clobbers
232 to their own separate block. Append the block of clobbers to
233 the procedure preliminary block after the argument evaluation
234 codes for all the arguments.
235
236 2022-10-12 Mikael Morin <mikael@gcc.gnu.org>
237
238 Backported from master:
239 2022-09-25 Mikael Morin <mikael@gcc.gnu.org>
240
241 PR fortran/105012
242 * trans-expr.cc (gfc_conv_procedure_call): Retrieve variable
243 from the just calculated variable reference.
244
245 2022-10-12 Mikael Morin <mikael@gcc.gnu.org>
246
247 Backported from master:
248 2022-09-25 Mikael Morin <mikael@gcc.gnu.org>
249
250 * trans.h (gfc_conv_expr_reference): Remove add_clobber
251 argument.
252 * trans-expr.cc (gfc_conv_expr_reference): Ditto. Inline code
253 depending on add_clobber and conditions controlling it ...
254 (gfc_conv_procedure_call): ... to here.
255
256 2022-10-08 José Rui Faustino de Sousa <jrfsousa@gmail.com>
257
258 Backported from master:
259 2022-10-01 José Rui Faustino de Sousa <jrfsousa@gmail.com>
260
261 PR fortran/100040
262 PR fortran/100029
263 * trans-expr.cc (gfc_conv_class_to_class): Add code to have
264 assumed-rank arrays recognized as full arrays and fix the type
265 of the array assignment.
266 (gfc_conv_procedure_call): Change order of code blocks such that
267 the free of ALLOCATABLE dummy arguments with INTENT(OUT) occurs
268 first.
269
270 2022-10-01 José Rui Faustino de Sousa <jrfsousa@gmail.com>
271
272 Backported from master:
273 2022-09-22 José Rui Faustino de Sousa <jrfsousa@gmail.com>
274
275 PR fortran/100103
276 * trans-array.cc (gfc_is_reallocatable_lhs): Add select rank
277 temporary associate names as possible targets of automatic
278 reallocation.
279
280 2022-10-01 José Rui Faustino de Sousa <jrfsousa@gmail.com>
281
282 Backported from master:
283 2022-09-20 José Rui Faustino de Sousa <jrfsousa@gmail.com>
284
285 PR fortran/100132
286 * trans-types.cc (create_fn_spec): Fix function attributes when
287 passing polymorphic pointers.
288
289 2022-09-29 Harald Anlauf <anlauf@gmx.de>
290
291 Backported from master:
292 2022-09-27 Harald Anlauf <anlauf@gmx.de>
293
294 PR fortran/107054
295 * simplify.cc (gfc_simplify_unpack): Replace assert by condition
296 that terminates simplification when there are not enough elements
297 in the constructor of argument VECTOR.
298
299 2022-09-29 Harald Anlauf <anlauf@gmx.de>
300
301 Backported from master:
302 2022-09-22 Harald Anlauf <anlauf@gmx.de>
303
304 PR fortran/82868
305 * trans-decl.cc (generate_coarray_sym_init): Skip symbol
306 if attr.associate_var.
307
308 2022-09-29 Harald Anlauf <anlauf@gmx.de>
309
310 Backported from master:
311 2022-09-20 Harald Anlauf <anlauf@gmx.de>
312
313 PR fortran/106985
314 * expr.cc (gfc_simplify_expr): Avoid NULL pointer dereference.
315
316 2022-09-22 Harald Anlauf <anlauf@gmx.de>
317
318 Backported from master:
319 2022-09-20 Harald Anlauf <anlauf@gmx.de>
320
321 PR fortran/106986
322 * simplify.cc (gfc_simplify_findloc): Do not try to simplify
323 intrinsic FINDLOC when the ARRAY argument has a NULL shape.
324
325 2022-09-16 Harald Anlauf <anlauf@gmx.de>
326
327 Backported from master:
328 2022-09-15 Harald Anlauf <anlauf@gmx.de>
329
330 PR fortran/106857
331 * simplify.cc (gfc_simplify_pack): Check for NULL pointer dereferences
332 while walking through constructors (error recovery).
333
334 2022-09-16 José Rui Faustino de Sousa <jrfsousa@gmail.com>
335
336 Backported from master:
337 2022-09-03 José Rui Faustino de Sousa <jrfsousa@gmail.com>
338
339 PR fortran/100245
340 * trans-expr.cc (trans_class_assignment): Add if clause to handle
341 derived type in the LHS.
342
343 2022-09-05 José Rui Faustino de Sousa <jrfsousa@gmail.com>
344
345 Backported from master:
346 2022-09-04 José Rui Faustino de Sousa <jrfsousa@gmail.com>
347
348 PR fortran/100136
349 * trans-expr.cc (gfc_conv_procedure_call): Add handling of pointer
350 expressions.
351
352 2022-08-30 Tobias Burnus <tobias@codesourcery.com>
353
354 Backported from master:
355 2022-08-25 Tobias Burnus <tobias@codesourcery.com>
356
357 * parse.cc (parse_omp_structured_block): When parsing strictly
358 structured blocks, issue an error if the end-directive comes
359 before the 'end block'.
360
361 2022-08-29 Jakub Jelinek <jakub@redhat.com>
362
363 Backported from master:
364 2022-08-26 Jakub Jelinek <jakub@redhat.com>
365
366 PR fortran/106579
367 * trans-intrinsic.cc: Include realmpfr.h.
368 (conv_intrinsic_ieee_value): New function.
369 (gfc_conv_ieee_arithmetic_function): Handle ieee_value.
370
371 2022-08-29 Jakub Jelinek <jakub@redhat.com>
372
373 Backported from master:
374 2022-08-26 Jakub Jelinek <jakub@redhat.com>
375
376 PR fortran/106579
377 * f95-lang.cc (gfc_init_builtin_functions): Initialize
378 BUILT_IN_FPCLASSIFY.
379 * libgfortran.h (IEEE_OTHER_VALUE, IEEE_SIGNALING_NAN,
380 IEEE_QUIET_NAN, IEEE_NEGATIVE_INF, IEEE_NEGATIVE_NORMAL,
381 IEEE_NEGATIVE_DENORMAL, IEEE_NEGATIVE_SUBNORMAL,
382 IEEE_NEGATIVE_ZERO, IEEE_POSITIVE_ZERO, IEEE_POSITIVE_DENORMAL,
383 IEEE_POSITIVE_SUBNORMAL, IEEE_POSITIVE_NORMAL, IEEE_POSITIVE_INF):
384 New enum.
385 * trans-intrinsic.cc (conv_intrinsic_ieee_class): New function.
386 (gfc_conv_ieee_arithmetic_function): Handle ieee_class.
387
388 2022-08-26 Harald Anlauf <anlauf@gmx.de>
389
390 Backported from master:
391 2022-08-24 Harald Anlauf <anlauf@gmx.de>
392
393 PR fortran/103694
394 * simplify.cc (simplify_size): The size expression of an array cannot
395 be simplified if an error occurs while resolving the array spec.
396
397 2022-08-23 Tobias Burnus <tobias@codesourcery.com>
398
399 Backported from master:
400 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
401
402 PR fortran/106566
403 * openmp.cc (gfc_match_omp_declare_simd): Accept module procedures.
404
405 2022-08-19 Release Manager
406
407 * GCC 12.2.0 released.
408
409 2022-07-26 Harald Anlauf <anlauf@gmx.de>
410
411 Backported from master:
412 2022-07-26 Harald Anlauf <anlauf@gmx.de>
413
414 PR fortran/103504
415 * interface.cc (get_sym_storage_size): Array bounds and character
416 length can only be of integer type.
417
418 2022-07-20 Harald Anlauf <anlauf@gmx.de>
419
420 Backported from master:
421 2022-07-20 Harald Anlauf <anlauf@gmx.de>
422
423 PR fortran/101330
424 * openmp.cc (gfc_match_iterator): Remove left-over code from
425 development that could lead to a crash on invalid input.
426
427 2022-07-16 Steve Kargl <kargl@gcc.gnu.org>
428
429 Backported from master:
430 2022-07-15 Steve Kargl <kargl@gcc.gnu.org>
431
432 PR fortran/104313
433 * trans-decl.cc (gfc_generate_return): Do not generate conflicting
434 fake results for functions with no result variable under -ff2c.
435
436 2022-07-03 Harald Anlauf <anlauf@gmx.de>
437
438 Backported from master:
439 2022-06-30 Harald Anlauf <anlauf@gmx.de>
440 Steven G. Kargl <kargl@gcc.gnu.org>
441
442 PR fortran/103137
443 PR fortran/103138
444 PR fortran/103693
445 PR fortran/105243
446 * decl.cc (gfc_match_data_decl): Reject CLASS entity declaration
447 when it is given the PARAMETER attribute.
448
449 2022-07-03 Harald Anlauf <anlauf@gmx.de>
450
451 Backported from master:
452 2022-06-29 Harald Anlauf <anlauf@gmx.de>
453 Steven G. Kargl <kargl@gcc.gnu.org>
454
455 PR fortran/106121
456 * simplify.cc (gfc_simplify_extends_type_of): Do not attempt to
457 simplify when one of the arguments is a CLASS variable that was
458 not properly declared.
459
460 2022-06-30 Harald Anlauf <anlauf@gmx.de>
461
462 Backported from master:
463 2022-06-26 Harald Anlauf <anlauf@gmx.de>
464
465 PR fortran/105954
466 * decl.cc (variable_decl): Adjust upper bounds for explicit-shape
467 specs with constant bound expressions to ensure non-negative
468 extents.
469
470 2022-06-30 Harald Anlauf <anlauf@gmx.de>
471
472 Backported from master:
473 2022-06-26 Harald Anlauf <anlauf@gmx.de>
474
475 PR fortran/105691
476 * simplify.cc (gfc_simplify_index): Replace old simplification
477 code by the equivalent of the runtime library implementation. Use
478 HOST_WIDE_INT instead of int for string index, length variables.
479
480 2022-06-30 Harald Anlauf <anlauf@gmx.de>
481
482 Backported from master:
483 2022-06-24 Harald Anlauf <anlauf@gmx.de>
484
485 PR fortran/105813
486 * check.cc (gfc_check_unpack): Try to simplify MASK argument to
487 UNPACK so that checking of the VECTOR argument can work when MASK
488 is a variable.
489
490 2022-05-13 Harald Anlauf <anlauf@gmx.de>
491
492 Backported from master:
493 2022-05-11 Harald Anlauf <anlauf@gmx.de>
494 Steven G. Kargl <kargl@gcc.gnu.org>
495
496 PR fortran/105230
497 * expr.cc (find_array_section): Correct logic to avoid NULL
498 pointer dereference on invalid array section.
499
500 2022-05-06 Release Manager
501
502 * GCC 12.1.0 released.
503
504 2022-05-02 Thomas Koenig <tkoenig@gcc.gnu.org>
505
506 Backported from master:
507 2022-04-29 Thomas Koenig <tkoenig@gcc.gnu.org>
508
509 * gfortran.texi: Fix exchanged period and letter.
510
511 2022-04-28 Thomas Koenig <tkoenig@gcc.gnu.org>
512
513 Backported from master:
514 2022-04-28 Thomas Koenig <tkoenig@gcc.gnu.org>
515
516 * gfortran.texi: Mention r16_ieee and r16_ibm.
517 * invoke.texi: Likewise.
518
519 2022-04-27 Mikael Morin <mikael@gcc.gnu.org>
520
521 PR fortran/103662
522 PR fortran/105379
523 * array.cc (compare_bounds): Use bool as return type.
524 Support non-constant expressions.
525 (gfc_compare_array_spec): Update call to compare_bounds.
526
527 2022-04-27 Mikael Morin <mikael@gcc.gnu.org>
528
529 PR fortran/102043
530 PR fortran/105381
531 * trans-array.cc (non_negative_strides_array_p): Inline variable
532 orig_decl and merge nested if conditions. Add condition to not
533 recurse if the next argument is the same as the current.
534
535 2022-04-25 Jakub Jelinek <jakub@redhat.com>
536 Thomas Schwinge <thomas@codesourcery.com>
537
538 PR fortran/104717
539 * trans-openmp.cc (gfc_trans_oacc_construct): Wrap construct body
540 in an extra BIND_EXPR.
541
542 2022-04-24 Mikael Morin <mikael@gcc.gnu.org>
543 Jakub Jelinek <jakub@redhat.com>
544
545 PR fortran/103662
546 * interface.cc (gfc_compare_derived_types): Support comparing
547 unlimited polymorphic fake symbols. Recursively compare class
548 descriptor types and virtual table types.
549 * resolve.cc (resolve_fl_derived): Add type to the types list
550 on unlimited polymorphic short-circuit return.
551
552 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
553 Richard Biener <rguenther@suse.de>
554
555 PR fortran/102043
556 * trans.h (gfc_build_array_ref): Add non_negative_offset
557 argument.
558 * trans.cc (gfc_build_array_ref): Ditto. Use pointer arithmetic
559 if non_negative_offset is false.
560 * trans-expr.cc (gfc_conv_substring): Set flag in the call to
561 gfc_build_array_ref.
562 * trans-array.cc (gfc_get_cfi_dim_item,
563 gfc_conv_descriptor_dimension): Same.
564 (build_array_ref): Decide on whether to set the flag and update
565 the call.
566 (gfc_conv_scalarized_array_ref): Same. New argument tmp_array.
567 (gfc_conv_tmp_array_ref): Update call to
568 gfc_conv_scalarized_ref.
569 (non_negative_strides_array_p): New function.
570
571 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
572
573 PR fortran/102043
574 * trans-array.cc (gfc_conv_expr_descriptor): Use
575 gfc_conv_tmp_array_ref.
576
577 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
578
579 PR fortran/102043
580 * trans-io.cc: Add handling for the case where the array
581 is referenced using pointer arithmetic.
582
583 2022-04-22 Mikael Morin <mikael@gcc.gnu.org>
584
585 PR fortran/102043
586 * trans-expr.cc: Pre-evaluate src and dest to variables
587 before using them.
588
589 2022-04-21 Fritz Reese <foreese@gcc.gnu.org>
590
591 PR fortran/105310
592 * trans-expr.cc (gfc_conv_union_initializer): Pass vec* by reference.
593
594 2022-04-13 Tobias Burnus <tobias@codesourcery.com>
595
596 PR fortran/105242
597 * match.cc (match_exit_cycle): Handle missing OMP LOOP, DO and SIMD
598 directives in the EXIT/CYCLE diagnostic.
599
600 2022-04-10 Harald Anlauf <anlauf@gmx.de>
601
602 PR fortran/105184
603 * array.cc (match_subscript): Reject assumed size coarray
604 specification with missing lower bound.
605 * resolve.cc (resolve_allocate_expr): Fix logic for checking
606 allocate-coshape-spec in ALLOCATE statement.
607
608 2022-04-05 Sandra Loosemore <sandra@codesourcery.com>
609
610 * trans-openmp.cc (gfc_split_omp_clauses): Fix mask for
611 EXEC_OMP_MASKED_TASKLOOP.
612
613 2022-04-05 Harald Anlauf <anlauf@gmx.de>
614
615 PR fortran/104210
616 * arith.cc (eval_intrinsic): Avoid NULL pointer dereference.
617 (gfc_zero_size_array): Likewise.
618
619 2022-04-05 Harald Anlauf <anlauf@gmx.de>
620 Steven G. Kargl <kargl@gcc.gnu.org>
621
622 PR fortran/105138
623 * intrinsic.cc (gfc_is_intrinsic): When a symbol refers to a
624 RECURSIVE procedure, it cannot be an INTRINSIC.
625
626 2022-03-30 Harald Anlauf <anlauf@gmx.de>
627
628 PR fortran/100892
629 * check.cc (gfc_check_associated): Avoid NULL pointer dereference.
630
631 2022-03-29 Harald Anlauf <anlauf@gmx.de>
632 Steven G. Kargl <kargl@gcc.gnu.org>
633
634 PR fortran/104571
635 * resolve.cc (resolve_elemental_actual): Avoid NULL pointer
636 dereference.
637
638 2022-03-29 Harald Anlauf <anlauf@gmx.de>
639
640 PR fortran/50549
641 * resolve.cc (resolve_structure_cons): Reject pointer assignments
642 of character with different lengths in structure constructor.
643
644 2022-03-25 Jakub Jelinek <jakub@redhat.com>
645
646 PR fortran/103691
647 * trans-array.cc (gfc_conv_array_initializer): If TYPE_MAX_VALUE is
648 smaller than TYPE_MIN_VALUE (i.e. empty array), ignore the
649 initializer; if TYPE_MIN_VALUE is equal to TYPE_MAX_VALUE, use just
650 the TYPE_MIN_VALUE as index instead of RANGE_EXPR.
651
652 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
653
654 PR fortran/103560
655 * scanner.cc (add_path_to_list): Don't append '/' to the
656 save include path.
657 (open_included_file): Use '/' in concatenating path + file name.
658 * module.cc (gzopen_included_file_1): Likewise.
659
660 2022-03-22 Harald Anlauf <anlauf@gmx.de>
661
662 PR fortran/104999
663 * simplify.cc (gfc_simplify_cshift): Ensure temporary holding
664 source array stride is initialized.
665
666 2022-03-19 Mikael Morin <mikael@gcc.gnu.org>
667
668 PR fortran/104228
669 PR fortran/104570
670 * parse.cc (parse_associate): Use a new distinct gfc_charlen if the
671 copied type has one whose length is not known to be constant.
672 * resolve.cc (resolve_assoc_var): Reset charlen if it’s shared with
673 the associate target regardless of the expression type.
674 Don’t reinitialize charlen if it’s deferred.
675
676 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
677
678 PR fortran/103039
679 * trans-openmp.cc (gfc_omp_clause_copy_ctor, gfc_omp_clause_dtor):
680 Only privatize pointer for associate names.
681
682 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
683
684 PR fortran/103039
685 * openmp.cc (resolve_omp_clauses): Improve associate-name diagnostic
686 for select type/rank.
687
688 2022-03-11 Tobias Burnus <tobias@codesourcery.com>
689
690 * trans-openmp.cc (gfc_trans_omp_clauses, gfc_omp_finish_clause):
691 Obtain size for mapping only if allocatable array is allocated.
692
693 2022-03-09 Harald Anlauf <anlauf@gmx.de>
694
695 PR fortran/104849
696 * expr.cc (find_array_section): Avoid NULL pointer dereference on
697 invalid array section.
698
699 2022-03-09 Tobias Burnus <tobias@codesourcery.com>
700
701 * trans-intrinsic.cc (gfc_conv_intrinsic_sizeof): Fix CLASS handling.
702
703 2022-03-08 Tobias Burnus <tobias@codesourcery.com>
704
705 PR fortran/104126
706 * trans-expr.cc (gfc_conv_gfc_desc_to_cfi_desc): Handle NULL
707 without MOLD.
708
709 2022-03-08 Harald Anlauf <anlauf@gmx.de>
710
711 PR fortran/104811
712 * frontend-passes.cc (optimize_minmaxloc): Do not attempt
713 frontend-optimization of MINLOC/MAXLOC for character arrays, as
714 there is no suitable code yet for inline expansion.
715
716 2022-03-07 Tobias Burnus <tobias@codesourcery.com>
717
718 PR fortran/99585
719 PR fortran/104430
720 * trans-expr.cc (conv_parent_component_references): Fix comment;
721 simplify comparison.
722 (gfc_maybe_dereference_var): Avoid d referencing a nonpointer.
723
724 2022-03-07 Tobias Burnus <tobias@codesourcery.com>
725
726 * array.cc (gfc_ref_dimen_size): Fix comment typo.
727 * dump-parse-tree.cc (gfc_dump_c_prototypes): Likewise.
728 * frontend-passes.cc (cfe_code): Likewise.
729 * gfortran.texi: Likewise.
730 * resolve.cc (generate_component_assignments): Likewise.
731 * simplify.cc (gfc_simplify_this_image): Likewise.
732 * trans-expr.cc (trans_scalar_class_assign,
733 gfc_maybe_dereference_var): Likewise.
734 * intrinsic.texi: Remove word duplication.
735 * invoke.texi: Likewise.
736
737 2022-03-07 Jakub Jelinek <jakub@redhat.com>
738
739 * trans-expr.cc: Fix up duplicated word issue in a comment.
740 * gfortran.h: Likewise.
741 * scanner.cc: Likewise.
742
743 2022-03-07 Martin Liska <mliska@suse.cz>
744
745 * intrinsic.cc (gfc_is_intrinsic): Remove asterisk from error
746 message.
747
748 2022-03-07 Martin Liska <mliska@suse.cz>
749
750 PR translation/90148
751 * intrinsic.cc (gfc_is_intrinsic): Put
752 quote to a proper place.
753
754 2022-03-03 Kwok Cheung Yeung <kcy@codesourcery.com>
755
756 PR fortran/104131
757 * openmp.cc (gfc_match_omp_detach): Move check for type of event
758 handle to...
759 (resolve_omp_clauses) ...here. Also check that the event handle is
760 not an array, or an array access or structure element access.
761
762 2022-03-02 Harald Anlauf <anlauf@gmx.de>
763
764 PR fortran/104573
765 * resolve.cc (resolve_structure_cons): Avoid NULL pointer
766 dereference when there is no valid component.
767
768 2022-02-24 Harald Anlauf <anlauf@gmx.de>
769
770 PR fortran/84519
771 * dump-parse-tree.cc (show_code_node): Dump QUIET specifier when
772 present.
773 * match.cc (gfc_match_stopcode): Implement parsing of F2018 QUIET
774 specifier. F2018 stopcodes may have non-default integer kind.
775 * resolve.cc (gfc_resolve_code): Add checks for QUIET argument.
776 * trans-stmt.cc (gfc_trans_stop): Pass QUIET specifier to call of
777 library function.
778
779 2022-02-22 Harald Anlauf <anlauf@gmx.de>
780
781 PR fortran/104619
782 * resolve.cc (resolve_structure_cons): Skip shape check if shape
783 of constructor cannot be determined at compile time.
784
785 2022-02-20 Harald Anlauf <anlauf@gmx.de>
786
787 PR fortran/77693
788 * data.cc (gfc_assign_data_value): If a variable in a data
789 statement has the POINTER attribute, check for allowed initial
790 data target that is compatible with pointer assignment.
791 * gfortran.h (IS_POINTER): New macro.
792
793 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
794
795 * trans-openmp.cc (gfc_trans_omp_depobj): Fix to alloc/ptr dummy
796 and for c_ptr.
797
798 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
799
800 * trans-openmp.cc (gfc_trans_omp_clauses, gfc_trans_omp_depobj):
801 Depend on the proper addr, for ptr/alloc depend on pointee.
802
803 2022-02-14 Harald Anlauf <anlauf@gmx.de>
804
805 PR fortran/104211
806 * expr.cc (find_array_section): Replace assertion by error
807 recovery when encountering bad array constructor.
808
809 2022-02-13 Mikael Morin <mikael@gcc.gnu.org>
810
811 PR fortran/104228
812 * resolve.cc (resolve_assoc_var): Also create a new character
813 length for non-dummy associate targets.
814 * trans-stmt.cc (trans_associate_var): Initialize character length
815 even if no temporary is used for the associate variable.
816
817 2022-02-10 Roger Sayle <roger@nextmovesoftware.com>
818 Tobias Burnus <tobias@codesourcery.com>
819
820 * trans-common.cc (GFC_EQUIV_FMT): New macro respecting the
821 target's NO_DOT_IN_LABEL and NO_DOLLAR_IN_LABEL preferences.
822 (build_equiv_decl): Use GFC_EQUIV_FMT here.
823
824 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
825
826 PR fortran/104329
827 * openmp.cc (resolve_omp_atomic): Defer extra-code assert after
828 other diagnostics.
829
830 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
831
832 * dump-parse-tree.cc (show_omp_clauses): Added OMP_LIST_HAS_DEVICE_ADDR
833 case.
834 * gfortran.h: Added OMP_LIST_HAS_DEVICE_ADDR.
835 * openmp.cc (enum omp_mask2): Added OMP_CLAUSE_HAS_DEVICE_ADDR.
836 (gfc_match_omp_clauses): Parse HAS_DEVICE_ADDR clause.
837 (resolve_omp_clauses): Same.
838 * trans-openmp.cc (gfc_trans_omp_variable_list): Added
839 OMP_LIST_HAS_DEVICE_ADDR case.
840 (gfc_trans_omp_clauses): Firstprivatize of array descriptors.
841
842 2022-02-09 Harald Anlauf <anlauf@gmx.de>
843
844 PR fortran/66193
845 * arith.cc (reduce_binary_ac): When reducing binary expressions,
846 try simplification. Handle case of empty constructor.
847 (reduce_binary_ca): Likewise.
848
849 2022-02-03 Harald Anlauf <anlauf@gmx.de>
850
851 PR fortran/104311
852 * check.cc (gfc_calculate_transfer_sizes): Checks for case when
853 storage size of SOURCE is greater than zero while the storage size
854 of MOLD is zero and MOLD is an array shall not depend on SIZE.
855
856 2022-02-03 Jakub Jelinek <jakub@redhat.com>
857
858 PR fortran/104328
859 * openmp.cc (is_scalar_intrinsic_expr): If must_be_var && conv_ok
860 and expr is conversion, verify it is a conversion from EXPR_VARIABLE
861 with non-NULL symtree. Check ->block->next before dereferencing it.
862
863 2022-02-01 Harald Anlauf <anlauf@gmx.de>
864
865 PR fortran/104331
866 * simplify.cc (gfc_simplify_eoshift): Avoid NULL pointer
867 dereference when shape is not set.
868
869 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
870
871 PR fortran/103790
872 * trans-array.cc (structure_alloc_comps): Prevent descriptor
873 stacking for non-array data; do not broadcast caf-tokens.
874 * trans-intrinsic.cc (conv_co_collective): Prevent generation
875 of unused descriptor.
876
877 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
878
879 Revert:
880 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
881
882 PR fortran/103790
883 * trans-array.cc (structure_alloc_comps): Prevent descriptor
884 stacking for non-array data; do not broadcast caf-tokens.
885 * trans-intrinsic.cc (conv_co_collective): Prevent generation
886 of unused descriptor.
887
888 2022-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
889
890 PR fortran/103790
891 * trans-array.cc (structure_alloc_comps): Prevent descriptor
892 stacking for non-array data; do not broadcast caf-tokens.
893 * trans-intrinsic.cc (conv_co_collective): Prevent generation
894 of unused descriptor.
895
896 2022-01-27 Harald Anlauf <anlauf@gmx.de>
897
898 PR fortran/104128
899 * expr.cc (gfc_copy_expr): Convert internal representation of
900 string to wide char in value only for default character kind.
901 * target-memory.cc (interpret_array): Pass flag for conversion of
902 wide chars.
903 (gfc_target_interpret_expr): Likewise.
904
905 2022-01-27 Harald Anlauf <anlauf@gmx.de>
906
907 PR fortran/84784
908 * trans-intrinsic.cc (conv_intrinsic_image_status): Convert result
909 to resulting (default) integer type.
910 (conv_intrinsic_team_number): Likewise.
911 (gfc_conv_intrinsic_popcnt_poppar): Likewise.
912
913 2022-01-25 Harald Anlauf <anlauf@gmx.de>
914
915 PR fortran/104227
916 * check.cc (gfc_calculate_transfer_sizes): Fix checking of arrays
917 passed as MOLD argument to the TRANSFER intrinsic for having
918 storage size zero.
919
920 2022-01-25 Harald Anlauf <anlauf@gmx.de>
921
922 PR fortran/104212
923 * check.cc (gfc_check_norm2): Check that optional argument DIM is
924 scalar.
925 (gfc_check_parity): Likewise.
926
927 2022-01-24 Jakub Jelinek <jakub@redhat.com>
928
929 * lang.opt (fconvert=): Add EnumSet property and mention also
930 r16_ieee and r16_ibm arguments.
931 (big-endian, little-endian, native, swap): Add Set(1) property.
932 (r16_ieee, r16_ibm): New EnumValue entries with Set(2) property.
933 * trans-types.cc (gfc_init_kinds): Emit gfc_fatal_error for
934 -fconvert=r16_ieee or -fconvert=r16_ibm when R16_IEEE <=> R16_IBM
935 conversions aren't supported.
936
937 2022-01-22 Harald Anlauf <anlauf@gmx.de>
938
939 PR fortran/104127
940 * simplify.cc (gfc_simplify_transfer): Ensure that the result
941 typespec is set up for TRANSFER with MOLD of type CHARACTER
942 including character length even if the result is a zero-sized
943 array.
944
945 2022-01-20 Sandra Loosemore <sandra@codesourcery.com>
946
947 PR fortran/103695
948 PR fortran/102621
949 * gfortran.h (struct gfc_namespace) Add omp_affinity_iterator
950 field.
951 * dump-parse-tree.cc (show_iterator): Use it.
952 * openmp.cc (gfc_match_iterator): Likewise.
953 (resolve_omp_clauses): Likewise.
954 * trans-decl.cc (gfc_finish_var_decl): Likewise.
955 * trans-openmp.cc (handle_iterator): Likewise.
956
957 2022-01-18 Harald Anlauf <anlauf@gmx.de>
958
959 PR fortran/103692
960 * array.cc (gfc_expand_constructor): Handle zero-sized array
961 constructors.
962
963 2022-01-17 Martin Liska <mliska@suse.cz>
964
965 * check.cc (gfc_check_all_any): Rename .c names to .cc.
966 * class.cc (find_intrinsic_vtab): Likewise.
967 * config-lang.in: Likewise.
968 * cpp.cc (cpp_define_builtins): Likewise.
969 * data.cc (get_array_index): Likewise.
970 * decl.cc (match_clist_expr): Likewise.
971 (get_proc_name): Likewise.
972 (gfc_verify_c_interop_param): Likewise.
973 (gfc_get_pdt_instance): Likewise.
974 (gfc_match_formal_arglist): Likewise.
975 (gfc_get_type_attr_spec): Likewise.
976 * dependency.cc: Likewise.
977 * error.cc (gfc_format_decoder): Likewise.
978 * expr.cc (check_restricted): Likewise.
979 (gfc_build_default_init_expr): Likewise.
980 * f95-lang.cc: Likewise.
981 * gfc-internals.texi: Likewise.
982 * gfortran.h (enum match): Likewise.
983 (enum procedure_type): Likewise.
984 (enum oacc_routine_lop): Likewise.
985 (gfc_get_pdt_instance): Likewise.
986 (gfc_end_source_files): Likewise.
987 (gfc_mpz_set_hwi): Likewise.
988 (gfc_get_option_string): Likewise.
989 (gfc_find_sym_in_expr): Likewise.
990 (gfc_errors_to_warnings): Likewise.
991 (gfc_real_4_kind): Likewise.
992 (gfc_free_finalizer): Likewise.
993 (gfc_sym_get_dummy_args): Likewise.
994 (gfc_check_intrinsic_standard): Likewise.
995 (gfc_free_case_list): Likewise.
996 (gfc_resolve_oacc_routines): Likewise.
997 (gfc_check_vardef_context): Likewise.
998 (gfc_free_association_list): Likewise.
999 (gfc_implicit_pure_function): Likewise.
1000 (gfc_ref_dimen_size): Likewise.
1001 (gfc_compare_actual_formal): Likewise.
1002 (gfc_resolve_wait): Likewise.
1003 (gfc_dt_upper_string): Likewise.
1004 (gfc_generate_module_code): Likewise.
1005 (gfc_delete_bbt): Likewise.
1006 (debug): Likewise.
1007 (gfc_build_block_ns): Likewise.
1008 (gfc_dep_difference): Likewise.
1009 (gfc_invalid_null_arg): Likewise.
1010 (gfc_is_finalizable): Likewise.
1011 (gfc_fix_implicit_pure): Likewise.
1012 (gfc_is_size_zero_array): Likewise.
1013 (gfc_is_reallocatable_lhs): Likewise.
1014 * gfortranspec.cc: Likewise.
1015 * interface.cc (compare_actual_expr): Likewise.
1016 * intrinsic.cc (add_functions): Likewise.
1017 * iresolve.cc (gfc_resolve_matmul): Likewise.
1018 (gfc_resolve_alarm_sub): Likewise.
1019 * iso-c-binding.def: Likewise.
1020 * lang-specs.h: Likewise.
1021 * libgfortran.h (GFC_STDERR_UNIT_NUMBER): Likewise.
1022 * match.cc (gfc_match_label): Likewise.
1023 (gfc_match_symbol): Likewise.
1024 (match_derived_type_spec): Likewise.
1025 (copy_ts_from_selector_to_associate): Likewise.
1026 * match.h (gfc_match_call): Likewise.
1027 (gfc_get_common): Likewise.
1028 (gfc_match_omp_end_single): Likewise.
1029 (gfc_match_volatile): Likewise.
1030 (gfc_match_bind_c): Likewise.
1031 (gfc_match_literal_constant): Likewise.
1032 (gfc_match_init_expr): Likewise.
1033 (gfc_match_array_constructor): Likewise.
1034 (gfc_match_end_interface): Likewise.
1035 (gfc_match_print): Likewise.
1036 (gfc_match_expr): Likewise.
1037 * matchexp.cc (next_operator): Likewise.
1038 * mathbuiltins.def: Likewise.
1039 * module.cc (free_true_name): Likewise.
1040 * openmp.cc (gfc_resolve_omp_parallel_blocks): Likewise.
1041 (gfc_omp_save_and_clear_state): Likewise.
1042 * parse.cc (parse_union): Likewise.
1043 (set_syms_host_assoc): Likewise.
1044 * resolve.cc (resolve_actual_arglist): Likewise.
1045 (resolve_elemental_actual): Likewise.
1046 (check_host_association): Likewise.
1047 (resolve_typebound_function): Likewise.
1048 (resolve_typebound_subroutine): Likewise.
1049 (gfc_resolve_expr): Likewise.
1050 (resolve_assoc_var): Likewise.
1051 (resolve_typebound_procedures): Likewise.
1052 (resolve_equivalence_derived): Likewise.
1053 * simplify.cc (simplify_bound): Likewise.
1054 * symbol.cc (gfc_set_default_type): Likewise.
1055 (gfc_add_ext_attribute): Likewise.
1056 * target-memory.cc (gfc_target_interpret_expr): Likewise.
1057 * target-memory.h (gfc_target_interpret_expr): Likewise.
1058 * trans-array.cc (gfc_get_cfi_dim_sm): Likewise.
1059 (gfc_conv_shift_descriptor_lbound): Likewise.
1060 (gfc_could_be_alias): Likewise.
1061 (gfc_get_dataptr_offset): Likewise.
1062 * trans-const.cc: Likewise.
1063 * trans-decl.cc (trans_function_start): Likewise.
1064 (gfc_trans_deferred_vars): Likewise.
1065 (generate_local_decl): Likewise.
1066 (gfc_generate_function_code): Likewise.
1067 * trans-expr.cc (gfc_vptr_size_get): Likewise.
1068 (gfc_trans_class_array_init_assign): Likewise.
1069 (POWI_TABLE_SIZE): Likewise.
1070 (gfc_conv_procedure_call): Likewise.
1071 (gfc_trans_arrayfunc_assign): Likewise.
1072 * trans-intrinsic.cc (gfc_conv_intrinsic_len): Likewise.
1073 (gfc_conv_intrinsic_loc): Likewise.
1074 (conv_intrinsic_event_query): Likewise.
1075 * trans-io.cc (gfc_build_st_parameter): Likewise.
1076 * trans-openmp.cc (gfc_omp_check_optional_argument): Likewise.
1077 (gfc_omp_unshare_expr_r): Likewise.
1078 (gfc_trans_omp_array_section): Likewise.
1079 (gfc_trans_omp_clauses): Likewise.
1080 * trans-stmt.cc (trans_associate_var): Likewise.
1081 (gfc_trans_deallocate): Likewise.
1082 * trans-stmt.h (gfc_trans_class_init_assign): Likewise.
1083 (gfc_trans_deallocate): Likewise.
1084 (gfc_trans_oacc_declare): Likewise.
1085 * trans-types.cc: Likewise.
1086 * trans-types.h (enum gfc_packed): Likewise.
1087 * trans.cc (N_): Likewise.
1088 (trans_code): Likewise.
1089 * trans.h (gfc_build_compare_string): Likewise.
1090 (gfc_conv_expr_type): Likewise.
1091 (gfc_trans_deferred_vars): Likewise.
1092 (getdecls): Likewise.
1093 (gfc_get_array_descr_info): Likewise.
1094 (gfc_omp_firstprivatize_type_sizes): Likewise.
1095 (GTY): Likewise.
1096
1097 2022-01-17 Martin Liska <mliska@suse.cz>
1098
1099 * arith.c: Moved to...
1100 * arith.cc: ...here.
1101 * array.c: Moved to...
1102 * array.cc: ...here.
1103 * bbt.c: Moved to...
1104 * bbt.cc: ...here.
1105 * check.c: Moved to...
1106 * check.cc: ...here.
1107 * class.c: Moved to...
1108 * class.cc: ...here.
1109 * constructor.c: Moved to...
1110 * constructor.cc: ...here.
1111 * convert.c: Moved to...
1112 * convert.cc: ...here.
1113 * cpp.c: Moved to...
1114 * cpp.cc: ...here.
1115 * data.c: Moved to...
1116 * data.cc: ...here.
1117 * decl.c: Moved to...
1118 * decl.cc: ...here.
1119 * dependency.c: Moved to...
1120 * dependency.cc: ...here.
1121 * dump-parse-tree.c: Moved to...
1122 * dump-parse-tree.cc: ...here.
1123 * error.c: Moved to...
1124 * error.cc: ...here.
1125 * expr.c: Moved to...
1126 * expr.cc: ...here.
1127 * f95-lang.c: Moved to...
1128 * f95-lang.cc: ...here.
1129 * frontend-passes.c: Moved to...
1130 * frontend-passes.cc: ...here.
1131 * gfortranspec.c: Moved to...
1132 * gfortranspec.cc: ...here.
1133 * interface.c: Moved to...
1134 * interface.cc: ...here.
1135 * intrinsic.c: Moved to...
1136 * intrinsic.cc: ...here.
1137 * io.c: Moved to...
1138 * io.cc: ...here.
1139 * iresolve.c: Moved to...
1140 * iresolve.cc: ...here.
1141 * match.c: Moved to...
1142 * match.cc: ...here.
1143 * matchexp.c: Moved to...
1144 * matchexp.cc: ...here.
1145 * misc.c: Moved to...
1146 * misc.cc: ...here.
1147 * module.c: Moved to...
1148 * module.cc: ...here.
1149 * openmp.c: Moved to...
1150 * openmp.cc: ...here.
1151 * options.c: Moved to...
1152 * options.cc: ...here.
1153 * parse.c: Moved to...
1154 * parse.cc: ...here.
1155 * primary.c: Moved to...
1156 * primary.cc: ...here.
1157 * resolve.c: Moved to...
1158 * resolve.cc: ...here.
1159 * scanner.c: Moved to...
1160 * scanner.cc: ...here.
1161 * simplify.c: Moved to...
1162 * simplify.cc: ...here.
1163 * st.c: Moved to...
1164 * st.cc: ...here.
1165 * symbol.c: Moved to...
1166 * symbol.cc: ...here.
1167 * target-memory.c: Moved to...
1168 * target-memory.cc: ...here.
1169 * trans-array.c: Moved to...
1170 * trans-array.cc: ...here.
1171 * trans-common.c: Moved to...
1172 * trans-common.cc: ...here.
1173 * trans-const.c: Moved to...
1174 * trans-const.cc: ...here.
1175 * trans-decl.c: Moved to...
1176 * trans-decl.cc: ...here.
1177 * trans-expr.c: Moved to...
1178 * trans-expr.cc: ...here.
1179 * trans-intrinsic.c: Moved to...
1180 * trans-intrinsic.cc: ...here.
1181 * trans-io.c: Moved to...
1182 * trans-io.cc: ...here.
1183 * trans-openmp.c: Moved to...
1184 * trans-openmp.cc: ...here.
1185 * trans-stmt.c: Moved to...
1186 * trans-stmt.cc: ...here.
1187 * trans-types.c: Moved to...
1188 * trans-types.cc: ...here.
1189 * trans.c: Moved to...
1190 * trans.cc: ...here.
1191
1192 2022-01-17 Andrew Stubbs <ams@codesourcery.com>
1193
1194 * openmp.c (gfc_match_omp_requires): Don't "sorry" dynamic_allocators.
1195
1196 2022-01-15 Harald Anlauf <anlauf@gmx.de>
1197
1198 PR fortran/83079
1199 * target-memory.c (gfc_interpret_character): Result length is
1200 in bytes and thus depends on the character kind.
1201 * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Compute correct
1202 string length for the result of the TRANSFER intrinsic and for
1203 temporaries for the different character kinds.
1204
1205 2022-01-14 Harald Anlauf <anlauf@gmx.de>
1206
1207 PR fortran/99256
1208 * intrinsic.c: Do not check formal argument type when checking
1209 arguments of intrinsics for alternate return specifiers.
1210
1211 2022-01-14 Harald Anlauf <anlauf@gmx.de>
1212
1213 PR fortran/103782
1214 * expr.c (gfc_simplify_expr): Adjust logic for when to scalarize a
1215 call of an intrinsic which may have been overloaded.
1216
1217 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
1218
1219 * dump-parse-tree.c (show_omp_clauses): Handle OMP_LIST_ALLOCATE.
1220 * gfortran.h (OMP_LIST_ALLOCATE): New enum value.
1221 * openmp.c (enum omp_mask1): Add OMP_CLAUSE_ALLOCATE.
1222 (gfc_match_omp_clauses): Handle OMP_CLAUSE_ALLOCATE
1223 (OMP_PARALLEL_CLAUSES, OMP_DO_CLAUSES, OMP_SECTIONS_CLAUSES)
1224 (OMP_TASK_CLAUSES, OMP_TASKLOOP_CLAUSES, OMP_TARGET_CLAUSES)
1225 (OMP_TEAMS_CLAUSES, OMP_DISTRIBUTE_CLAUSES)
1226 (OMP_SINGLE_CLAUSES): Add OMP_CLAUSE_ALLOCATE.
1227 (OMP_TASKGROUP_CLAUSES): New.
1228 (gfc_match_omp_taskgroup): Use OMP_TASKGROUP_CLAUSES instead of
1229 OMP_CLAUSE_TASK_REDUCTION.
1230 (resolve_omp_clauses): Handle OMP_LIST_ALLOCATE.
1231 (resolve_omp_do): Avoid warning when loop iteration variable is
1232 in allocate clause.
1233 * trans-openmp.c (gfc_trans_omp_clauses): Handle translation of
1234 allocate clause.
1235 (gfc_split_omp_clauses): Update for OMP_LIST_ALLOCATE.
1236
1237 2022-01-13 Harald Anlauf <anlauf@gmx.de>
1238
1239 PR fortran/67804
1240 * primary.c (gfc_match_structure_constructor): Recover from errors
1241 that occurred while checking for a valid structure constructor in
1242 a DATA statement.
1243
1244 2022-01-11 Thomas Koenig <tkoenig@gcc.gnu.org>
1245
1246 * libgfortran.h (unit_convert): Add flags.
1247
1248 2022-01-11 Jakub Jelinek <jakub@redhat.com>
1249
1250 * trans-types.c (gfc_init_kinds): When setting abi_kind to 17, if not
1251 targetting glibc 2.32 or later and -fbuilding-libgfortran, set
1252 gfc_real16_is_float128 and c_float128 in gfc_real_kinds.
1253 (gfc_build_real_type): Don't set c_long_double if c_float128 is
1254 already set.
1255 * trans-intrinsic.c (builtin_decl_for_precision): Don't use
1256 long_double_built_in if gfc_real16_is_float128 and
1257 long_double_type_node == gfc_float128_type_node.
1258 * lang.opt (fbuilding-libgfortran): New undocumented option.
1259
1260 2022-01-11 Jakub Jelinek <jakub@redhat.com>
1261
1262 * trans-intrinsic.c (gfc_get_intrinsic_lib_fndecl): Use
1263 gfc_type_abi_kind.
1264
1265 2022-01-11 Jakub Jelinek <jakub@redhat.com>
1266
1267 * trans-io.c (transfer_array_desc): Pass abi kind instead of kind
1268 to libgfortran.
1269
1270 2022-01-11 Jakub Jelinek <jakub@redhat.com>
1271
1272 * trans-io.c (transfer_namelist_element): Use gfc_type_abi_kind,
1273 formatting fixes.
1274 (transfer_expr): Use gfc_type_abi_kind, use *REAL128* APIs even
1275 for abi_kind == 17.
1276
1277 2022-01-11 Jakub Jelinek <jakub@redhat.com>
1278
1279 * gfortran.h (gfc_real_info): Add abi_kind member.
1280 (gfc_type_abi_kind): Declare.
1281 * trans-types.c (gfc_init_kinds): Initialize abi_kind.
1282 * intrinsic.c (gfc_type_abi_kind): New function.
1283 (conv_name): Use it.
1284 * iresolve.c (resolve_transformational, gfc_resolve_abs,
1285 gfc_resolve_char_achar, gfc_resolve_acos, gfc_resolve_acosh,
1286 gfc_resolve_aimag, gfc_resolve_and, gfc_resolve_aint, gfc_resolve_all,
1287 gfc_resolve_anint, gfc_resolve_any, gfc_resolve_asin,
1288 gfc_resolve_asinh, gfc_resolve_atan, gfc_resolve_atanh,
1289 gfc_resolve_atan2, gfc_resolve_bessel_n2, gfc_resolve_ceiling,
1290 gfc_resolve_cmplx, gfc_resolve_complex, gfc_resolve_cos,
1291 gfc_resolve_cosh, gfc_resolve_count, gfc_resolve_dble,
1292 gfc_resolve_dim, gfc_resolve_dot_product, gfc_resolve_dprod,
1293 gfc_resolve_exp, gfc_resolve_floor, gfc_resolve_hypot,
1294 gfc_resolve_int, gfc_resolve_int2, gfc_resolve_int8, gfc_resolve_long,
1295 gfc_resolve_log, gfc_resolve_log10, gfc_resolve_logical,
1296 gfc_resolve_matmul, gfc_resolve_minmax, gfc_resolve_maxloc,
1297 gfc_resolve_findloc, gfc_resolve_maxval, gfc_resolve_merge,
1298 gfc_resolve_minloc, gfc_resolve_minval, gfc_resolve_mod,
1299 gfc_resolve_modulo, gfc_resolve_nearest, gfc_resolve_or,
1300 gfc_resolve_real, gfc_resolve_realpart, gfc_resolve_reshape,
1301 gfc_resolve_sign, gfc_resolve_sin, gfc_resolve_sinh, gfc_resolve_sqrt,
1302 gfc_resolve_tan, gfc_resolve_tanh, gfc_resolve_transpose,
1303 gfc_resolve_trigd, gfc_resolve_xor, gfc_resolve_random_number):
1304 Likewise.
1305 * trans-decl.c (gfc_build_intrinsic_function_decls): Likewise.
1306
1307 2022-01-10 Paul Thomas <pault@gcc.gnu.org>
1308
1309 PR fortran/103366
1310 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Allow unlimited
1311 polymorphic actual argument passed to assumed type formal.
1312
1313 2022-01-09 Harald Anlauf <anlauf@gmx.de>
1314
1315 PR fortran/103777
1316 * simplify.c (gfc_simplify_maskr): Check validity of argument 'I'
1317 before simplifying.
1318 (gfc_simplify_maskl): Likewise.
1319
1320 2022-01-09 Harald Anlauf <anlauf@gmx.de>
1321
1322 PR fortran/101762
1323 * expr.c (gfc_check_pointer_assign): For pointer initialization
1324 targets, check that subscripts and substring indices in
1325 specifications are constant expressions.
1326
1327 2022-01-09 Mikael Morin <mikael@gcc.gnu.org>
1328
1329 PR fortran/103789
1330 * trans-array.c (arg_evaluated_for_scalarization): Add MASKL, MASKR,
1331 SCAN and VERIFY to the list of intrinsics whose KIND argument is to be
1332 ignored.
1333
1334 2022-01-07 Sandra Loosemore <sandra@codesourcery.com>
1335
1336 PR fortran/103898
1337 * trans-intrinsic.c (gfc_conv_intrinsic_size): Make size_var
1338 actually be a variable and fix surrounding code.
1339
1340 2022-01-06 Steve Kargl <kargl@gcc.gnu.org>
1341 Sandra Loosemore <sandra@codesourcery.com>
1342
1343 PR fortran/103287
1344 * interface.c (argument_rank_mismatch): Replace incorrect assertion
1345 with return.
1346
1347 2022-01-05 Sandra Loosemore <sandra@codesourcery.com>
1348
1349 PR fortran/103258
1350 * decl.c (gfc_match_char_spec): Suppress errors around call
1351 to gfc_reduce_init_expr.
1352 * error.c (gfc_query_suppress_errors): New.
1353 * gfortran.h (gfc_query_suppress_errors): Declare.
1354 * symbol.c (gfc_set_default_type): Check gfc_query_suppress_errors.
1355
1356 2022-01-03 Sandra Loosemore <sandra@codesourcery.com>
1357
1358 PR fortran/103390
1359 * expr.c (gfc_is_simply_contiguous): Make it smarter about
1360 function calls.
1361 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Do not generate
1362 copy loops for array expressions that are not "variables" (lvalues).
1363
1364 2022-01-03 Jakub Jelinek <jakub@redhat.com>
1365
1366 * gfortranspec.c (lang_specific_driver): Update copyright notice
1367 dates.
1368 * gfc-internals.texi: Bump @copying's copyright year.
1369 * gfortran.texi: Ditto.
1370 * intrinsic.texi: Ditto.
1371 * invoke.texi: Ditto.
1372
1373 \f
1374 Copyright (C) 2022 Free Software Foundation, Inc.
1375
1376 Copying and distribution of this file, with or without modification,
1377 are permitted in any medium without royalty provided the copyright
1378 notice and this notice are preserved.