Daily bump.
[official-gcc.git] / gcc / fortran / ChangeLog
blob8fdbd5d32d30b8ec90703a1857fc2bc7e4217078
1 2024-02-15  Kwok Cheung Yeung  <kcyeung@baylibre.com>
3         * dump-parse-tree.cc (show_attr): Handle omp_declare_target_indirect
4         attribute.
5         * f95-lang.cc (gfc_gnu_attributes): Add entry for 'omp declare
6         target indirect'.
7         * gfortran.h (symbol_attribute): Add omp_declare_target_indirect
8         field.
9         (struct gfc_omp_clauses): Add indirect field.
10         * openmp.cc (omp_mask2): Add OMP_CLAUSE_INDIRECT.
11         (gfc_match_omp_clauses): Match indirect clause.
12         (OMP_DECLARE_TARGET_CLAUSES): Add OMP_CLAUSE_INDIRECT.
13         (gfc_match_omp_declare_target): Check omp_device_type and apply
14         omp_declare_target_indirect attribute to symbol if indirect clause
15         active.  Show warning if there are only device_type and/or indirect
16         clauses on the directive.
17         * trans-decl.cc (add_attributes_to_decl): Add 'omp declare target
18         indirect' attribute if symbol has indirect attribute set.
20 2024-02-14  Steve Kargl  <kargl@gcc.gnu.org>
22         PR fortran/105847
23         * trans-io.cc (transfer_namelist_element): When building the
24         namelist object name, if the use rename attribute is set, use
25         the local name specified in the use statement.
27 2024-02-14  Jakub Jelinek  <jakub@redhat.com>
29         * error.cc (error_print): For u printing of ptrdiff_t,
30         print ptrdiff_t argument converted to unsigned long long and
31         masked with 2ULL * PTRDIFF_MAX + 1.
33 2024-02-13  Tobias Burnus  <tburnus@baylibre.com>
35         PR middle-end/113904
36         * trans-openmp.cc (gfc_trans_omp_declare_variant): Handle splitting of
37         OMP_TRAIT_PROPERTY_EXPR into OMP_TRAIT_PROPERTY_{DEV_NUM,BOOL}_EXPR.
38         * openmp.cc (gfc_match_omp_context_selector): Likewise; rejects
39         non-const device_num/condition; improve diagnostic.
41 2024-02-13  Harald Anlauf  <anlauf@gmx.de>
43         PR fortran/113866
44         * trans-expr.cc (gfc_conv_procedure_call): When passing an optional
45         dummy argument to an optional dummy argument of a bind(c) procedure
46         and the dummy argument is passed via a CFI descriptor, no special
47         presence check and passing of a default NULL pointer is needed.
49 2024-02-13  Steve Kargl  <kargl@gcc.gnu.org>
51         PR fortran/113883
52         * trans-array.cc (gfc_trans_deferred_array): Set length to zero,
53         avoiding extraneous diagnostics.
55 2024-02-10  Jakub Jelinek  <jakub@redhat.com>
57         * error.cc (error_print): Handle z and t modifiers on d, i and u.
58         * check.cc (gfc_check_transfer): Use %zd instead of %ld and casts to
59         long.
60         * primary.cc (gfc_convert_to_structure_constructor): Use %td instead
61         of %ld and casts to long.
63 2024-02-10  Jakub Jelinek  <jakub@redhat.com>
65         * trans-common.cc (build_common_decl): Use %wu instead of %lu and
66         casts to unsigned long.
67         * resolve.cc (resolve_ordinary_assign): Use %wd instead of %ld and
68         casts to long.
69         * array.cc (gfc_resolve_character_array_constructor): Likewise.
70         * data.cc (create_character_initializer): Likewise.
72 2024-02-09  Harald Anlauf  <anlauf@gmx.de>
74         PR fortran/113799
75         * arith.cc (reduce_unary): Remember any overflow encountered during
76         reduction of unary arithmetic operations on array constructors and
77         continue, and return error status, but terminate on serious errors.
79 2024-01-28  Harald Anlauf  <anlauf@gmx.de>
81         PR fortran/113377
82         * trans-expr.cc (conv_dummy_value): Treat NULL actual argument to
83         optional dummy with the VALUE attribute as not present.
84         (gfc_conv_procedure_call): Likewise.
86 2024-01-27  Harald Anlauf  <anlauf@gmx.de>
88         PR fortran/104908
89         * trans-array.cc (gfc_conv_array_ref): Restrict use of transformed
90         descriptor (sym->backend_decl) to the unlimited polymorphic case.
92 2024-01-24  Harald Anlauf  <anlauf@gmx.de>
94         PR fortran/113377
95         * trans-expr.cc (conv_dummy_value): New.
96         (gfc_conv_procedure_call): Factor code for handling dummy arguments
97         with the VALUE attribute in the scalar case into conv_dummy_value().
98         Reuse and adjust for calling elemental procedures.
100 2024-01-21  Harald Anlauf  <anlauf@gmx.de>
102         PR fortran/113377
103         * trans-expr.cc (gfc_conv_procedure_call): Fix handling of optional
104         scalar arguments of intrinsic type with the VALUE attribute.
106 2024-01-20  Mikael Morin  <mikael@gcc.gnu.org>
108         PR fortran/48776
109         PR fortran/111291
110         * parse.cc: Restore current interface to its previous value on error.
112 2024-01-19  Harald Anlauf  <anlauf@gmx.de>
114         PR fortran/113471
115         * trans-array.cc (array_bound_check_elemental): Array bounds check
116         shall apply here to elemental dimensions of an array section only.
118 2024-01-13  Harald Anlauf  <anlauf@gmx.de>
120         PR fortran/67277
121         * trans-intrinsic.cc (gfc_conv_intrinsic_ishftc): Handle optional
122         dummy argument for SIZE passed to ISHFTC.  Set default value to
123         BIT_SIZE(I) when missing.
125 2024-01-13  Harald Anlauf  <anlauf@gmx.de>
127         PR fortran/113305
128         * gfortran.h (gfc_loop_annot): New.
129         (gfc_iterator, gfc_forall_iterator): Use for annotation control.
130         * array.cc (gfc_copy_iterator): Adjust.
131         * gfortran.texi: Document annotations IVDEP, UNROLL n, VECTOR,
132         NOVECTOR as applied to DO CONCURRENT.
133         * parse.cc (parse_do_block): Parse annotations IVDEP, UNROLL n,
134         VECTOR, NOVECTOR as applied to DO CONCURRENT.  Apply UNROLL only to
135         first loop control variable.
136         * trans-stmt.cc (iter_info): Use gfc_loop_annot.
137         (gfc_trans_simple_do): Adjust.
138         (gfc_trans_forall_loop): Annotate loops with IVDEP, UNROLL n,
139         VECTOR, NOVECTOR as needed for DO CONCURRENT.
140         (gfc_trans_forall_1): Handle loop annotations.
142 2024-01-08  Harald Anlauf  <anlauf@gmx.de>
144         PR fortran/113245
145         * trans-intrinsic.cc (gfc_conv_intrinsic_size): Use
146         gfc_conv_expr_present() for proper check of optional DIM argument.
148 2024-01-06  Harald Anlauf  <anlauf@gmx.de>
149             José Rui Faustino de Sousa  <jrfsousa@gmail.com>
151         PR fortran/96724
152         * iresolve.cc (gfc_resolve_repeat): Force conversion to
153         gfc_charlen_int_kind before call to gfc_multiply.
155 2024-01-04  David Malcolm  <dmalcolm@redhat.com>
157         * lang.opt.urls: New file, autogenerated by
158         regenerate-opt-urls.py.
160 2024-01-03  Harald Anlauf  <anlauf@gmx.de>
162         * trans-types.cc (gfc_get_nodesc_array_type): Clear used gmp
163         variables.
165 2024-01-03  Jakub Jelinek  <jakub@redhat.com>
167         * gfortranspec.cc (lang_specific_driver): Update copyright notice
168         dates.
169         * gfc-internals.texi: Bump @copying's copyright year.
170         * gfortran.texi: Ditto.
171         * intrinsic.texi: Ditto.
172         * invoke.texi: Ditto.
175 Copyright (C) 2024 Free Software Foundation, Inc.
177 Copying and distribution of this file, with or without modification,
178 are permitted in any medium without royalty provided the copyright
179 notice and this notice are preserved.