1 2024-02-15 Kwok Cheung Yeung <kcyeung@baylibre.com>
3 * dump-parse-tree.cc (show_attr): Handle omp_declare_target_indirect
5 * f95-lang.cc (gfc_gnu_attributes): Add entry for 'omp declare
7 * gfortran.h (symbol_attribute): Add omp_declare_target_indirect
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>
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>
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>
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>
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
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
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>
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>
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>
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>
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>
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>
110 * parse.cc: Restore current interface to its previous value on error.
112 2024-01-19 Harald Anlauf <anlauf@gmx.de>
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>
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>
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>
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>
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
165 2024-01-03 Jakub Jelinek <jakub@redhat.com>
167 * gfortranspec.cc (lang_specific_driver): Update copyright notice
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.