1 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
4 * trans-openmp.c (gfc_omp_is_optional_argument): Regard optional
5 dummy procs as nonoptional as no special treatment is needed.
7 2021-02-21 Harald Anlauf <anlauf@gmx.de>
9 * trans-expr.c (gfc_conv_procedure_call): Do not add clobber to
10 allocatable intent(out) argument.
12 2021-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
15 * match.c (gfc_match_namelist): If BT_UNKNOWN, check for
16 IMPLICIT NONE and and issue an error, otherwise set the type
17 to its IMPLICIT type so that any subsequent use of objects will
18 will confirm their types.
20 2021-02-19 Harald Anlauf <anlauf@gmx.de>
22 * symbol.c (gfc_add_flavor): Reverse order of conditions.
24 2021-02-19 Tobias Burnus <tobias@codesourcery.com>
27 * dependency.c (gfc_dep_resolver): Fix coarray handling.
29 2021-02-19 Tobias Burnus <tobias@codesourcery.com>
34 2021-02-19 Tobias Burnus <tobias@codesourcery.com>
37 * simplify.c (simplify_bound_dim): Honor DIMEN_ELEMENT
40 2021-02-17 Julian Brown <julian@codesourcery.com>
42 * openmp.c (resolve_omp_clauses): Disallow selecting components
43 of arrays of derived type.
45 2021-02-17 Julian Brown <julian@codesourcery.com>
47 * trans-openmp.c (gfc_trans_omp_clauses): Handle element selection
48 for arrays of derived types.
50 2021-02-16 Tobias Burnus <tobias@codesourcery.com>
52 * expr.c (gfc_is_simplify_contiguous): Handle REF_INQUIRY, i.e.
53 %im and %re which are EXPR_VARIABLE.
54 * openmp.c (resolve_omp_clauses): Diagnose %re/%im explicitly.
56 2021-02-16 Tobias Burnus <tobias@codesourcery.com>
59 * io.c (resolve_tag_format): Reject BT_DERIVED/CLASS/VOID
60 as (array-valued) FORMAT tag.
62 2021-02-12 Tobias Burnus <tobias@codesourcery.com>
65 * trans-expr.c (gfc_conv_procedure_call): Don't reset
66 rank of assumed-rank array.
68 2021-02-11 Paul Thomas <pault@gcc.gnu.org>
71 * match.c (gfc_match_call): Include associate names as possible
72 entities with typebound subroutines. The target needs to be
73 resolved for the type.
75 2021-02-11 Paul Thomas <pault@gcc.gnu.org>
78 * primary.c (gfc_match_varspec): Test for non-null 'previous'
79 before using its name in the error message.
81 2021-02-11 Tobias Burnus <tobias@codesourcery.com>
83 * intrinsic.texi (FINDLOC): Add 'MASK' to argument table.
84 (MAXLOC, MAXVAL, MINLOC, MINVAL): For 'MASK', remove 'an
85 array' as scalars are also permitted.
87 2021-02-10 Julian Brown <julian@codesourcery.com>
90 * openmp.c (resolve_omp_clauses): Omit OpenACC update in
91 contiguity check and stride-specified error.
93 2021-02-04 Julian Brown <julian@codesourcery.com>
95 * openmp.c (resolve_omp_clauses): Omit OpenACC update in
96 contiguity check and stride-specified error.
98 2021-02-04 Julian Brown <julian@codesourcery.com>
100 * trans-openmp.c (gfc_trans_omp_clauses): Use class_pointer attribute
103 2021-02-04 Julian Brown <julian@codesourcery.com>
105 * trans-openmp.c (gfc_trans_omp_clauses): Fix dereferencing for
108 2021-02-04 Tobias Burnus <tobias@codesourcery.com>
110 * openmp.c (resolve_omp_clauses): Explicitly diagnose
111 substrings as not permitted.
113 2021-02-03 Jeff Law <law@redhat.com>
115 * intrinsic.texi (ANINT): Fix typo.
117 2021-02-03 Tobias Burnus <tobias@codesourcery.com>
120 * dependency.c (gfc_dep_resolver): Treat local access
121 to coarrays like any array access in dependency analysis.
123 2021-01-28 Harald Anlauf <anlauf@gmx.de>
126 * trans.c (gfc_call_malloc): Allocate area of size 1 if passed
127 size is NULL (as documented).
129 2021-01-27 Paul Thomas <pault@gcc.gnu.org>
133 * trans-expr.c (gfc_conv_procedure_call): Suppress the call to
134 gfc_conv_intrinsic_to_class for unlimited polymorphic procedure
136 (gfc_trans_assignment_1): Similarly suppress class assignment
137 for class valued procedure pointers.
139 2021-01-27 Paul Thomas <pault@gcc.gnu.org>
142 * trans-array.c (gfc_conv_expr_descriptor): Include elemental
143 procedure pointers in the assert under the comment 'elemental
144 function' and eliminate the second, spurious assert.
146 2021-01-25 Harald Anlauf <anlauf@gmx.de>
149 * data.c (create_character_initializer): Check substring indices
151 (gfc_assign_data_value): Catch error returned from
152 create_character_initializer.
154 2021-01-25 Tobias Burnus <tobias@codesourcery.com>
156 * intrinsic.texi (CO_BROADCAST, CO_MIN, CO_REDUCE, CO_SUM): Fix typos.
158 2021-01-25 Steve Kargl <kargl@gcc.gnu.org>
161 * resolve.c (resolve_charlen): Check that length expression is
162 present before testing for scalar/integer..
164 2021-01-22 Paul Thomas <pault@gcc.gnu.org>
167 * trans-intrinsic.c (gfc_conv_associated): Do not add a _data
168 component for scalar class function targets. Instead, fix the
169 function result and access the _data from that.
171 2021-01-21 Jorge D'Elia <jdelia@cimec.unl.edu.ar>
173 * intrinsic.texi (CO_MAX): Fix typo.
175 2021-01-21 Paul Thomas <pault@gcc.gnu.org>
178 * decl.c (gfc_match_modproc): It is not an error to find a
179 module procedure declaration within a contains block.
180 * expr.c (gfc_check_vardef_context): Pure procedure result is
181 assignable. Change 'own_scope' accordingly.
182 * resolve.c (resolve_typebound_procedure): A procedure that
183 has the module procedure attribute is almost certainly a
184 module procedure, whatever its interface.
186 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
189 * openmp.c (resolve_omp_clauses): Change use_device_ptr
190 to use_device_addr for unless type(c_ptr); check all
191 list item for is_device_ptr.
193 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
195 * dump-parse-tree.c (show_omp_clauses): Handle detach clause.
196 * frontend-passes.c (gfc_code_walker): Walk detach expression.
197 * gfortran.h (struct gfc_omp_clauses): Add detach field.
198 (gfc_c_intptr_kind): New.
199 * openmp.c (gfc_free_omp_clauses): Free detach clause.
200 (gfc_match_omp_detach): New.
201 (enum omp_mask1): Add OMP_CLAUSE_DETACH.
202 (enum omp_mask2): Remove OMP_CLAUSE_DETACH.
203 (gfc_match_omp_clauses): Handle OMP_CLAUSE_DETACH for OpenMP.
204 (OMP_TASK_CLAUSES): Add OMP_CLAUSE_DETACH.
205 (resolve_omp_clauses): Prevent use of detach with mergeable and
206 overriding the data sharing mode of the event handle.
207 * trans-openmp.c (gfc_trans_omp_clauses): Handle detach clause.
208 * trans-types.c (gfc_c_intptr_kind): New.
209 (gfc_init_kinds): Initialize gfc_c_intptr_kind.
211 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
213 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
214 ...this. Add extra argument.
216 2021-01-14 Harald Anlauf <anlauf@gmx.de>
218 * gfortran.h (gfc_resolve_substring): Add prototype.
219 * primary.c (match_string_constant): Simplify substrings with
220 constant starting and ending points.
221 * resolve.c: Rename resolve_substring to gfc_resolve_substring.
222 (gfc_resolve_ref): Use renamed function gfc_resolve_substring.
224 2021-01-14 Harald Anlauf <anlauf@gmx.de>
227 * resolve.c (resolve_component): Derived type components with
228 ALLOCATABLE or POINTER attribute shall have a deferred shape.
230 2021-01-14 Harald Anlauf <anlauf@gmx.de>
233 2021-01-14 Harald Anlauf <anlauf@gmx.de>
236 * resolve.c (resolve_component): Derived type components with
237 ALLOCATABLE or POINTER attribute shall have a deferred shape.
239 2021-01-14 Harald Anlauf <anlauf@gmx.de>
242 * resolve.c (resolve_component): Derived type components with
243 ALLOCATABLE or POINTER attribute shall have a deferred shape.
245 2021-01-08 Paul Thomas <pault@gcc.gnu.org>
248 * trans-expr.c (gfc_conv_component_ref): Remove the condition
249 that deferred character length components only be allocatable.
251 2021-01-08 Paul Thomas <pault@gcc.gnu.org>
254 * simplify.c (is_constant_array_expr): If an array constructor
255 expression has elements other than constants or structures, try
256 fixing the expression with gfc_reduce_init_expr. Also, if shape
257 is NULL, obtain the array size and set it.
259 2021-01-07 Paul Thomas <pault@gcc.gnu.org>
262 * resolve.c (find_array_spec): Put static prototype for
263 resolve_assoc_var before this function and call for associate
266 2021-01-06 Harald Anlauf <anlauf@gmx.de>
268 * resolve.c (resolve_component): Add check for valid CLASS
269 reference before trying to access CLASS data.
271 2021-01-04 Martin Liska <mliska@suse.cz>
273 * ChangeLog-2018: Remove duplicate ChangeLog entries.
275 2021-01-01 Harald Anlauf <anlauf@gmx.de>
277 * class.c (gfc_find_vtab): Add check on attribute is_class.
279 2021-01-01 Jakub Jelinek <jakub@redhat.com>
281 * gfortranspec.c (lang_specific_driver): Update copyright notice
283 * gfc-internals.texi: Bump @copying's copyright year.
284 * gfortran.texi: Ditto.
285 * intrinsic.texi: Ditto.
286 * invoke.texi: Ditto.
288 2021-01-01 Jakub Jelinek <jakub@redhat.com>
290 * ChangeLog-2020: Rotate ChangeLog. New file.
293 Copyright (C) 2021 Free Software Foundation, Inc.
295 Copying and distribution of this file, with or without modification,
296 are permitted in any medium without royalty provided the copyright
297 notice and this notice are preserved.