]>
Commit | Line | Data |
---|---|---|
50205195 GA |
1 | 2023-04-28 Julian Brown <julian@codesourcery.com> |
2 | ||
3 | PR fortran/109622 | |
4 | * trans-openmp.cc (gfc_trans_omp_clauses): Attach/detach clause fixes. | |
5 | ||
6 | 2023-04-28 Tobias Burnus <tobias@codesourcery.com> | |
7 | ||
8 | * gfortran.texi: Fix typos. | |
9 | * decl.cc: Fix typos in comments and in a variable name. | |
10 | * arith.cc: Fix comment typos. | |
11 | * check.cc: Likewise. | |
12 | * class.cc: Likewise. | |
13 | * dependency.cc: Likewise. | |
14 | * expr.cc: Likewise. | |
15 | * frontend-passes.cc: Likewise. | |
16 | * gfortran.h: Likewise. | |
17 | * intrinsic.cc: Likewise. | |
18 | * iresolve.cc: Likewise. | |
19 | * match.cc: Likewise. | |
20 | * module.cc: Likewise. | |
21 | * primary.cc: Likewise. | |
22 | * resolve.cc: Likewise. | |
23 | * simplify.cc: Likewise. | |
24 | * trans-array.cc: Likewise. | |
25 | * trans-decl.cc: Likewise. | |
26 | * trans-expr.cc: Likewise. | |
27 | * trans-intrinsic.cc: Likewise. | |
28 | * trans-openmp.cc: Likewise. | |
29 | * trans-stmt.cc: Likewise. | |
30 | ||
49cea02d GA |
31 | 2023-04-25 Tobias Burnus <tobias@codesourcery.com> |
32 | ||
33 | * openmp.cc (gfc_resolve_omp_do_blocks): Handle zero | |
34 | or more than one exec statements before/after 'omp scan'. | |
35 | * trans-openmp.cc (gfc_trans_omp_do): Likewise. | |
36 | ||
6ab856aa GA |
37 | 2023-04-22 Harald Anlauf <anlauf@gmx.de> |
38 | Steven G. Kargl <kargl@gcc.gnu.org> | |
39 | ||
40 | PR fortran/109500 | |
41 | * interface.cc (gfc_compare_actual_formal): Reject allocatable | |
42 | functions being used as actual argument for allocable dummy. | |
43 | ||
1aee19f9 GA |
44 | 2023-04-14 Harald Anlauf <anlauf@gmx.de> |
45 | ||
46 | PR fortran/109511 | |
47 | * simplify.cc (gfc_simplify_set_exponent): Fix implementation of | |
48 | compile-time simplification of intrinsic SET_EXPONENT for argument | |
49 | X < 1 and for I < 0. | |
50 | ||
51 | 2023-04-14 Paul Thomas <pault@gcc.gnu.org> | |
52 | ||
53 | PR fortran/104272 | |
54 | * gfortran.h : Add expr3_not_explicit bit field to gfc_code. | |
55 | * resolve.cc (resolve_allocate_expr): Set bit field when the | |
56 | default initializer is applied to expr3. | |
57 | * trans-stmt.cc (gfc_trans_allocate): If expr3_not_explicit is | |
58 | set, do not deallocate expr3. | |
59 | ||
48d0244b GA |
60 | 2023-04-13 Harald Anlauf <anlauf@gmx.de> |
61 | ||
62 | PR fortran/109492 | |
63 | * trans-expr.cc (gfc_conv_power_op): Use absu_hwi and | |
64 | unsigned HOST_WIDE_INT for portability. | |
65 | ||
66c7257b GA |
66 | 2023-04-12 Harald Anlauf <anlauf@gmx.de> |
67 | ||
68 | PR fortran/104312 | |
69 | * resolve.cc (resolve_entries): Handle functions with ENTRY and | |
70 | ALLOCATABLE results. | |
71 | * trans-expr.cc (gfc_conv_procedure_call): Functions with a result | |
72 | with the POINTER or ALLOCATABLE attribute shall not get any special | |
73 | treatment with -ff2c, as they cannot be written in Fortran 77. | |
74 | * trans-types.cc (gfc_return_by_reference): Likewise. | |
75 | (gfc_get_function_type): Likewise. | |
76 | ||
77 | 2023-04-12 Harald Anlauf <anlauf@gmx.de> | |
78 | ||
79 | PR fortran/61615 | |
80 | PR fortran/99982 | |
81 | * interface.cc (compare_parameter): Enable type and rank checks for | |
82 | arguments of derived type from the intrinsic module ISO_C_BINDING. | |
83 | ||
0f04ebb4 GA |
84 | 2023-04-08 Paul Thomas <pault@gcc.gnu.org> |
85 | ||
86 | PR fortran/87477 | |
87 | * iresolve.cc (gfc_resolve_adjustl, gfc_resolve_adjustr): if | |
88 | string length is deferred use the string typespec for result. | |
89 | * resolve.cc (resolve_assoc_var): Handle parentheses around the | |
90 | target expression. | |
91 | (resolve_block_construct): Remove unnecessary static decls. | |
92 | * trans-array.cc (gfc_conv_expr_descriptor): Guard string len | |
93 | expression in condition. Improve handling of string length and | |
94 | span, especially for substrings of the descriptor. | |
95 | (duplicate_allocatable): Make element type more explicit with | |
96 | 'eltype'. | |
97 | * trans-decl.cc (gfc_get_symbol_decl): Emit a fatal error with | |
98 | appropriate message instead of ICE if symbol type is unknown. | |
99 | (gfc_generate_function_code): Set current locus to proc_sym | |
100 | declared_at. | |
101 | * trans-expr.cc (gfc_get_expr_charlen): Retain last charlen in | |
102 | 'previous' and use if end expression in substring reference is | |
103 | null. | |
104 | (gfc_conv_string_length): Use gfc_conv_expr_descriptor if | |
105 | 'expr_flat' is an array. Add post block to catch deallocation | |
106 | of temporaries. | |
107 | (gfc_conv_procedure_call): Assign the parmse string length to | |
108 | the expression string length, if it is deferred. | |
109 | (gfc_trans_alloc_subarray_assign): If this is a deferred string | |
110 | length component, store the string length in the hidden comp. | |
111 | Update the typespec length accordingly. Generate a new type | |
112 | spec for the call to gfc_duplicate-allocatable in this case. | |
113 | * trans-io.cc (gfc_trans_transfer): Scalarize transfer of | |
114 | deferred character array components. | |
115 | ||
645b1362 GA |
116 | 2023-04-04 Harald Anlauf <anlauf@gmx.de> |
117 | ||
118 | PR fortran/104349 | |
119 | * expr.cc (check_restricted): Adjust check for valid variables in | |
120 | restricted expressions: make no exception for module variables. | |
121 | ||
236cde72 GA |
122 | 2023-04-01 Thomas Koenig <tkoenig@gcc.gnu.org> |
123 | ||
124 | * dump-parse-tree.cc (get_c_type_name): Fix "long_long" | |
125 | type name to be "long long". | |
126 | ||
d20a6a33 GA |
127 | 2023-03-30 Andrew Pinski <apinski@marvell.com> |
128 | ||
129 | * dump-parse-tree.cc (get_c_type_name): Fix "long_long" | |
130 | type name to be "long long". Add a comment on why adding | |
131 | 2 to the name too. | |
132 | ||
579cdc1e GA |
133 | 2023-03-28 Jakub Jelinek <jakub@redhat.com> |
134 | ||
135 | PR fortran/109314 | |
136 | * openmp.cc (gfc_omp_absent_contains_clause): Fix typo in diagnostics | |
137 | - composit -> composite. | |
138 | ||
810b924f GA |
139 | 2023-03-25 Harald Anlauf <anlauf@gmx.de> |
140 | ||
141 | PR fortran/104321 | |
142 | * trans-decl.cc (gfc_conv_cfi_to_gfc): Remove dead code. | |
143 | ||
13ec81eb GA |
144 | 2023-03-24 Harald Anlauf <anlauf@gmx.de> |
145 | ||
146 | * expr.cc (free_expr0): Free also BOZ strings as part of an expression. | |
147 | ||
148 | 2023-03-24 Haochen Gui <guihaoc@gcc.gnu.org> | |
149 | Tobias Burnus <tobias@codesourcery.com> | |
150 | ||
151 | PR target/103628 | |
152 | * target-memory.cc (gfc_interpret_float): Return FAIL when | |
153 | native_interpret_expr gets a NULL tree. | |
154 | * arith.cc (gfc_hollerith2real): Return NULL when | |
155 | gfc_interpret_float fails. | |
156 | * error.cc (gfc_buffered_p): Define. | |
157 | * gfortran.h (gfc_buffered_p): Declare. | |
158 | * intrinsic.cc: Add diagnostic.h to include list. | |
159 | (do_simplify): Save errorcount and check it at finish. Report a | |
160 | "Cannot simplify expression" error on a bad result if error count | |
161 | doesn't change and no other errors buffered. | |
162 | ||
50bd9c41 GA |
163 | 2023-03-22 Harald Anlauf <anlauf@gmx.de> |
164 | Steven G. Kargl <kargl@gcc.gnu.org> | |
165 | ||
166 | PR fortran/104572 | |
167 | * resolve.cc (gfc_resolve_finalizers): Argument of a FINAL subroutine | |
168 | cannot be an alternate return. | |
169 | ||
03178527 GA |
170 | 2023-03-21 Harald Anlauf <anlauf@gmx.de> |
171 | ||
172 | PR fortran/99036 | |
173 | * decl.cc (gfc_match_modproc): Reject MODULE PROCEDURE if not in a | |
174 | generic module interface. | |
175 | ||
176 | 2023-03-21 Arsen Arsenović <arsen@aarsen.me> | |
177 | ||
178 | * invoke.texi: Remove usages of @gol. | |
179 | * intrinsic.texi: Ditto. | |
180 | ||
181 | 2023-03-21 Paul Thomas <pault@gcc.gnu.org> | |
182 | ||
183 | PR fortran/109206 | |
184 | * trans-array.cc (gfc_trans_array_constructor_value): Correct | |
185 | incorrect setting of typespec. | |
186 | ||
187 | 2023-03-21 Paul Thomas <pault@gcc.gnu.org> | |
188 | ||
189 | PR fortran/109209 | |
190 | * resolve.cc (generate_component_assignments): Restore the | |
191 | exclusion of allocatable components from the loop. | |
192 | ||
582f246b GA |
193 | 2023-03-20 Harald Anlauf <anlauf@gmx.de> |
194 | ||
195 | PR fortran/109216 | |
196 | * invoke.texi: Correct documentation of how underscores are appended | |
197 | to external names. | |
198 | ||
199 | 2023-03-20 Harald Anlauf <anlauf@gmx.de> | |
200 | ||
201 | PR fortran/109186 | |
202 | * simplify.cc (gfc_simplify_nearest): Fix off-by-one error in setting | |
203 | up real kind-specific maximum exponent for mpfr. | |
204 | ||
205 | 2023-03-20 Paul Thomas <pault@gcc.gnu.org> | |
206 | ||
207 | PR fortran/87127 | |
208 | * resolve.cc (check_host_association): If an external function | |
209 | is typed but not declared explicitly to be external, change the | |
210 | old symbol from a variable to an external function. | |
211 | ||
09abeb73 GA |
212 | 2023-03-19 Harald Anlauf <anlauf@gmx.de> |
213 | ||
214 | PR fortran/85877 | |
215 | * resolve.cc (resolve_fl_procedure): Check for an explicit interface | |
216 | of procedures with the BIND(C) attribute (F2018:15.4.2.2). | |
217 | ||
218 | 2023-03-19 Thomas Koenig <tkoenig@gcc.gnu.org> | |
219 | ||
220 | * gfortran.texi: Mention behavior on overflow. | |
221 | ||
cffcb774 GA |
222 | 2023-03-18 Paul Thomas <pault@gcc.gnu.org> |
223 | ||
224 | PR fortran/103854 | |
225 | PR fortran/96122 | |
226 | PR fortran/37336 | |
227 | * class.cc (finalize_component): Include the missing arguments | |
228 | in the call to the component's finalizer wrapper. | |
229 | (has_finalizer_component): Do not return true for procedure | |
230 | pointer components. | |
231 | (finalizer_insert_packed_call): Remove the redundant argument | |
232 | in the call to the final subroutine. | |
233 | (generate_finalization_wrapper): Add support for assumed rank | |
234 | finalizers. | |
235 | (gfc_may_be_finalized): New helper function. | |
236 | * dump-parse-tree.cc (write_proc): Whitespace. | |
237 | * gfortran.h : Add prototype for gfc_may_be_finalized. | |
238 | * resolve.cc (resolve_function): Correct derived types that | |
239 | have an incomplete namespace. | |
240 | (resolve_where, gfc_resolve_where_code_in_forall, | |
241 | gfc_resolve_forall_body, gfc_resolve_code): Check that the op | |
242 | code is still EXEC_ASSIGN. If it is set lhs to must finalize. | |
243 | (is_finalizable_type): New function. | |
244 | (generate_component_assignments): Set must_finalize if needed. | |
245 | (gfc_resolve_finalizers): Error if assumed rank finalizer is | |
246 | not the only one. Warning on lack of scalar finalizer modified | |
247 | to account for assumed rank finalizers. | |
248 | (generate_final_call): New function. | |
249 | (generate_component_assignments): Enclose the outermost call in | |
250 | a block to capture automatic deallocation and final calls. | |
251 | Set must_finalize as required to satisfy the standards. Use an | |
252 | explicit pointer assignment for pointer components to capture | |
253 | finalization of the target. Likewise use explicit assignment | |
254 | for allocatable components. Do not use the temporary copy of | |
255 | the lhs in defined assignment if the component is allocatable. | |
256 | Put the temporary in the same namespace as the lhs symbol if | |
257 | the component may be finalized. Remove the leading assignment | |
258 | from the expansion of assignment of components that have their | |
259 | own defined assignment components. Suppress finalization of | |
260 | assignment of temporary components to the lhs. Make an explicit | |
261 | final call for the rhs function temporary if it exists. | |
262 | (gfc_resolve_code): Set must_finalize for assignments with an | |
263 | array constructor on the rhs. | |
264 | (gfc_resolve_finalizers): Ensure that an assumed rank finalizer | |
265 | is the only finalizer for that type and correct the surprising | |
266 | warning for the lack of a scalar finalizer. | |
267 | (check_defined_assignments): Handle allocatable components. | |
268 | (resolve_fl_derived): Set referenced the vtab for use | |
269 | associated symbols. | |
270 | (resolve_symbol): Set referenced an unreferenced symbol that | |
271 | will be finalized. | |
272 | * trans-array.cc (gfc_trans_array_constructor_value): Add code | |
273 | to finalize the constructor result. Warn that this feature was | |
274 | removed in F2018 and that it is suppressed by -std=2018. | |
275 | (trans_array_constructor): Add finalblock, pass to previous | |
276 | and apply to loop->post if filled. | |
277 | (gfc_add_loop_ss_code): Add se finalblock to outer loop post. | |
278 | (gfc_trans_array_cobounds, gfc_trans_array_bounds): Add any | |
279 | generated finalization code to the main block. | |
280 | (structure_alloc_comps): Add boolean argument to suppress | |
281 | finalization and use it for calls from | |
282 | gfc_deallocate_alloc_comp_no_caf. Otherwise it defaults to | |
283 | false. | |
284 | (gfc_copy_alloc_comp_no_fini): New wrapper for | |
285 | structure_alloc_comps. | |
286 | (gfc_alloc_allocatable_for_assignment): Suppress finalization | |
287 | by setting new arg in call to gfc_deallocate_alloc_comp_no_caf. | |
288 | (gfc_trans_deferred_array): Use gfc_may_be_finalized and do not | |
289 | deallocate the components of entities with a leading '_' in the | |
290 | name that are also marked as artificial. | |
291 | * trans-array.h : Add the new boolean argument to the prototype | |
292 | of gfc_deallocate_alloc_comp_no_caf with a default of false. | |
293 | Add prototype for gfc_copy_alloc_comp_no_fini. | |
294 | * trans-decl.cc(init_intent_out_dt): Tidy up the code. | |
295 | * trans-expr.cc (gfc_init_se): Initialize finalblock. | |
296 | (gfc_conv_procedure_call): Use gfc_finalize_tree_expr to | |
297 | finalize function results. Replace in-line block for class | |
298 | results with call to new function. | |
299 | (gfc_conv_expr): Finalize structure constructors for F2003 and | |
300 | F2008. Warn that this feature was deleted in F2018 and, unlike | |
301 | array constructors, is not default. Add array constructor | |
302 | finalblock to the post block. | |
303 | (gfc_trans_scalar_assign): Suppress finalization by setting new | |
304 | argument in call to gfc_deallocate_alloc_comp_no_caf. Add the | |
305 | finalization blocks to the main block. | |
306 | (gfc_trans_arrayfunc_assign): Use gfc_assignment_finalizer_call | |
307 | and ensure that finalization occurs after the evaluation of the | |
308 | rhs but using the initial value for the lhs. Finalize rhs | |
309 | function results using gfc_finalize_tree_expr. | |
310 | (trans_class_assignment, gfc_trans_assignment_1): As previous | |
311 | function, taking care to order evaluation, assignment and | |
312 | finalization correctly. | |
313 | * trans-io.cc (gfc_trans_transfer): Add the final block. | |
314 | * trans-stmt.cc (gfc_trans_call, gfc_trans_allocate): likewise. | |
315 | (trans_associate_var): Nullify derived allocatable components | |
316 | and finalize function targets with defined assignment | |
317 | components on leaving the block scope. | |
318 | (trans_allocate): Finalize source expressions, if required, | |
319 | and set init_expr artificial temporarily to suppress the | |
320 | finalization in gfc_trans_assignment. | |
321 | * trans.cc (gfc_add_finalizer_call): Do not finalize the | |
322 | temporaries generated in type assignment with defined | |
323 | assignment components. | |
324 | (gfc_assignment_finalizer_call): New function. | |
325 | (gfc_finalize_tree_expr): New function. | |
326 | * trans.h: Add finalblock to gfc_se. Add the prototypes for | |
327 | gfc_finalize_tree_expr and gfc_assignment_finalizer_call. | |
328 | ||
39b1814c GA |
329 | 2023-03-15 Harald Anlauf <anlauf@gmx.de> |
330 | Tobias Burnus <tobias@codesourcery.com> | |
331 | ||
332 | PR fortran/58331 | |
333 | * interface.cc (compare_parameter): Adjust check of array dummy | |
334 | arguments to handle the case of CLASS variables. | |
335 | ||
ed65cebf GA |
336 | 2023-03-11 Harald Anlauf <anlauf@gmx.de> |
337 | ||
338 | PR fortran/106945 | |
339 | * trans-expr.cc (gfc_copy_class_to_class): Convert element counts in | |
340 | bounds check to common type for comparison. | |
341 | ||
c8065441 GA |
342 | 2023-03-10 Harald Anlauf <anlauf@gmx.de> |
343 | ||
344 | PR fortran/104332 | |
345 | * resolve.cc (resolve_symbol): Avoid NULL pointer dereference while | |
346 | checking a symbol with the BIND(C) attribute. | |
347 | ||
fa9fd689 GA |
348 | 2023-03-05 Harald Anlauf <anlauf@gmx.de> |
349 | Tobias Burnus <tobias@codesourcery.com> | |
350 | ||
351 | PR fortran/106856 | |
352 | * class.cc (gfc_build_class_symbol): Handle update of attributes of | |
353 | existing class container. | |
354 | (gfc_find_derived_vtab): Fix several memory leaks. | |
355 | (find_intrinsic_vtab): Ditto. | |
356 | * decl.cc (attr_decl1): Manage update of symbol attributes from | |
357 | CLASS attributes. | |
358 | * primary.cc (gfc_variable_attr): OPTIONAL shall not be taken or | |
359 | updated from the class container. | |
360 | * symbol.cc (free_old_symbol): Adjust management of symbol versions | |
361 | to not prematurely free array specs while working on the declation | |
362 | of CLASS variables. | |
363 | ||
c88a7c63 GA |
364 | 2023-03-01 Tobias Burnus <tobias@codesourcery.com> |
365 | ||
366 | PR middle-end/108546 | |
367 | * trans-openmp.cc (gfc_trans_omp_clauses): Fix mapping of | |
368 | type(C_ptr) variables. | |
369 | ||
bf0e0fc0 GA |
370 | 2023-02-27 Harald Anlauf <anlauf@gmx.de> |
371 | ||
372 | PR fortran/108937 | |
373 | * trans-intrinsic.cc (gfc_conv_intrinsic_ibits): Handle corner case | |
374 | LEN argument of IBITS equal to BITSIZE(I). | |
375 | ||
94341f0b GA |
376 | 2023-02-25 Mikael Morin <mikael@gcc.gnu.org> |
377 | ||
378 | PR fortran/108923 | |
379 | * intrinsic.cc (get_intrinsic_dummy_arg, | |
380 | set_intrinsic_dummy_arg): Rename the former to the latter. | |
381 | Remove the return value, add a reference to the lhs as argument, | |
382 | and do the pointer assignment inside the function. Don't do | |
383 | it if the pointer is already non-NULL. | |
384 | (sort_actual): Update caller. | |
385 | ||
386 | 2023-02-25 Harald Anlauf <anlauf@gmx.de> | |
387 | ||
388 | * arith.cc (gfc_real2int): Clear mpfr variable after use. | |
389 | ||
390 | 2023-02-25 Tobias Burnus <tobias@codesourcery.com> | |
391 | ||
392 | PR fortran/108621 | |
393 | * trans-expr.cc (gfc_conv_gfc_desc_to_cfi_desc): Skip setting of | |
394 | bounds of CFI desc for 'pointer,intent(out)'. | |
395 | ||
43411063 GA |
396 | 2023-02-24 Rimvydas Jasinskas <rimvydas.jas@gmail.com> |
397 | ||
398 | * trans-decl.cc (gfc_finish_var_decl): Apply attribute. | |
399 | (generate_local_decl): Add diagnostic for dummy and local variables. | |
400 | ||
401 | 2023-02-24 Mikael Morin <mikael@gcc.gnu.org> | |
402 | ||
403 | PR fortran/108923 | |
404 | * expr.cc (gfc_free_actual_arglist): Free associated_dummy | |
405 | memory. | |
406 | (gfc_copy_actual_arglist): Make a copy of the associated_dummy | |
407 | field if it is set in the original element. | |
408 | ||
409 | 2023-02-24 Harald Anlauf <anlauf@gmx.de> | |
410 | ||
411 | PR fortran/108924 | |
412 | * frontend-passes.cc (do_subscript): Clear used gmp variable. | |
413 | ||
e2b20ed3 GA |
414 | 2023-02-23 Arsen Arsenović <arsen@aarsen.me> |
415 | ||
416 | * invoke.texi: Reorder index entries around @items. | |
417 | ||
418 | 2023-02-23 Arsen Arsenović <arsen@aarsen.me> | |
419 | ||
420 | * invoke.texi: Reorder @opindex commands to precede @items they | |
421 | relate to. | |
422 | ||
b6f98991 GA |
423 | 2023-02-22 Harald Anlauf <anlauf@gmx.de> |
424 | ||
425 | PR fortran/96024 | |
426 | * resolve.cc (resolve_component): The type of a CHARACTER length | |
427 | expression must be INTEGER. | |
428 | ||
c3bf22d9 GA |
429 | 2023-02-21 Harald Anlauf <anlauf@gmx.de> |
430 | ||
431 | PR fortran/96025 | |
432 | * parse.cc (check_function_result_typed): Improve type check of | |
433 | specification expression for character length and return status. | |
434 | (parse_spec): Use status from above. | |
435 | * resolve.cc (resolve_fntype): Prevent use of invalid specification | |
436 | expression for character length. | |
437 | ||
88cc4495 GA |
438 | 2023-02-16 Patrick Palka <ppalka@redhat.com> |
439 | ||
440 | * gfortran.h: Mechanically drop static from static inline | |
441 | functions via s/^static inline/inline/g. | |
442 | ||
29a35391 GA |
443 | 2023-02-15 Steve Kargl <kargl@gcc.gnu.org> |
444 | ||
445 | PR fortran/103608 | |
446 | * frontend-passes.cc (do_intent): Catch NULL pointer dereference on | |
447 | reference to invalid formal argument. | |
448 | ||
449 | 2023-02-15 Steve Kargl <kargl@gcc.gnu.org> | |
450 | ||
451 | PR fortran/104554 | |
452 | * resolve.cc (check_assumed_size_reference): Avoid NULL pointer | |
453 | dereference. | |
454 | ||
455 | 2023-02-15 Tobias Burnus <tobias@codesourcery.com> | |
456 | ||
457 | PR fortran/108512 | |
458 | * openmp.cc (gfc_resolve_omp_parallel_blocks): Handle combined 'loop' | |
459 | directives. | |
460 | (gfc_resolve_do_iterator): Set a source location for added | |
461 | 'private'-clause arguments. | |
462 | * resolve.cc (gfc_resolve_code): Call gfc_resolve_omp_do_blocks | |
463 | also for EXEC_OMP_LOOP and gfc_resolve_omp_parallel_blocks for | |
464 | combined directives with loop + '{masked,master} taskloop (simd)'. | |
465 | ||
ae719781 GA |
466 | 2023-02-13 Harald Anlauf <anlauf@gmx.de> |
467 | ||
468 | PR fortran/103475 | |
469 | * primary.cc (gfc_expr_attr): Avoid NULL pointer dereference for | |
470 | invalid use of CLASS variable. | |
471 | ||
472 | 2023-02-13 Rimvydas Jasinskas <rimvydas.jas@gmail.com> | |
473 | ||
474 | * decl.cc: Add EXT_ATTR_NOINLINE, EXT_ATTR_NORETURN, EXT_ATTR_WEAK. | |
475 | * gfortran.h (ext_attr_id_t): Ditto. | |
476 | * gfortran.texi (GCC$ ATTRIBUTES): Document them. | |
477 | * trans-decl.cc (build_function_decl): Apply them. | |
478 | ||
e92e2c96 GA |
479 | 2023-02-09 Harald Anlauf <anlauf@gmx.de> |
480 | Steven G. Kargl <kargl@gcc.gnu.org> | |
481 | ||
482 | PR fortran/69636 | |
483 | PR fortran/103779 | |
484 | * intrinsic.cc (gfc_convert_chartype): Recover on invalid character | |
485 | kind in conversion instead of generating an internal error. | |
486 | ||
487 | 2023-02-09 Tobias Burnus <tobias@codesourcery.com> | |
488 | ||
489 | PR fortran/107424 | |
490 | * trans-openmp.cc (struct dovar_init_d): Add 'sym' and | |
491 | 'non_unit_incr' members. | |
492 | (gfc_nonrect_loop_expr): New. | |
493 | (gfc_trans_omp_do): Call it; use normal loop bounds | |
494 | for unit stride - and only create local loop var. | |
495 | ||
496 | 2023-02-09 Tobias Burnus <tobias@codesourcery.com> | |
497 | ||
498 | * parse.cc (decode_omp_directive): Really ignore 'assumes' with | |
499 | -fopenmp-simd. | |
500 | ||
f6fc79d0 GA |
501 | 2023-02-08 Steve Kargl <kargl@gcc.gnu.org> |
502 | ||
503 | PR fortran/103259 | |
504 | * resolve.cc (resolve_common_vars): Avoid NULL pointer dereference | |
505 | when a symbol's location is not set. | |
506 | ||
8f3b85ef GA |
507 | 2023-02-07 Harald Anlauf <anlauf@gmx.de> |
508 | ||
509 | PR fortran/95107 | |
510 | * trans-decl.cc (gfc_finish_var_decl): With -fno-automatic, do not | |
511 | make ASSOCIATE variables TREE_STATIC. | |
512 | ||
e4421a77 GA |
513 | 2023-02-05 Harald Anlauf <anlauf@gmx.de> |
514 | ||
515 | PR fortran/108592 | |
516 | * arith.cc (gfc_arith_divide): Emit integer division truncation | |
517 | warnings using gfc_warning instead of gfc_warning_now to prevent | |
518 | redundant messages. | |
519 | ||
49e52115 GA |
520 | 2023-02-03 Jakub Jelinek <jakub@redhat.com> |
521 | ||
522 | PR fortran/108451 | |
523 | * trans-decl.cc (gfc_trans_use_stmts): Call clear_slot before | |
524 | doing continue. | |
525 | ||
0a251e74 GA |
526 | 2023-02-01 Harald Anlauf <anlauf@gmx.de> |
527 | ||
528 | PR fortran/108609 | |
529 | * expr.cc (find_array_section): Add check to prevent interpreting an | |
530 | mpz non-integer constant as an integer. | |
531 | ||
532 | 2023-02-01 Tobias Burnus <tobias@codesourcery.com> | |
533 | ||
534 | * openmp.cc (resolve_omp_clauses): Check also for | |
535 | power of two. | |
536 | ||
6357588d GA |
537 | 2023-01-29 Mikael Morin <mikael@gcc.gnu.org> |
538 | ||
539 | PR fortran/108450 | |
540 | * check.cc (gfc_check_minloc_maxloc): Explicitly set argument name. | |
541 | (gfc_check_findloc): Ditto. | |
542 | ||
543 | 2023-01-29 Jerry DeLisle <jvdelisle@gcc.gnu.org> | |
544 | ||
545 | PR fortran/103506 | |
546 | * parse.cc (parse_module): Remove use of a bool error value | |
547 | that prevented proper setting of the namespace pointer. | |
548 | ||
ee2c965e GA |
549 | 2023-01-28 Harald Anlauf <anlauf@gmx.de> |
550 | Steven G. Kargl <kargl@gcc.gnu.org> | |
551 | ||
552 | PR fortran/108527 | |
553 | * resolve.cc (compare_bound_int): Expression to compare must be of | |
554 | type INTEGER. | |
555 | (compare_bound_mpz_t): Likewise. | |
556 | (check_dimension): Fix comment on checks applied to array section | |
557 | and clean up associated logic. | |
558 | ||
559 | 2023-01-28 Harald Anlauf <anlauf@gmx.de> | |
560 | ||
561 | PR fortran/108453 | |
562 | * match.cc (gfc_match_common): A USE associated name shall not appear | |
563 | in a COMMON block (F2018:C8121). | |
564 | ||
338eb0f0 GA |
565 | 2023-01-27 Tobias Burnus <tobias@codesourcery.com> |
566 | ||
567 | PR fortran/108558 | |
568 | * trans-openmp.cc (gfc_split_omp_clauses): Handle has_device_addr. | |
569 | ||
2371d100 GA |
570 | 2023-01-26 Harald Anlauf <anlauf@gmx.de> |
571 | ||
572 | PR fortran/108544 | |
573 | * resolve.cc (check_host_association): Extend host association check | |
574 | so that it is not restricted to functions. Also prevent NULL pointer | |
575 | dereference. | |
576 | ||
9bb6515b GA |
577 | 2023-01-25 Steve Kargl <kargl@gcc.gnu.org> |
578 | ||
579 | PR fortran/108528 | |
580 | * array.cc (compare_bounds): Return false instead of generating an | |
581 | internal error on an invalid argument type. | |
582 | ||
0fa22168 GA |
583 | 2023-01-24 Harald Anlauf <anlauf@gmx.de> |
584 | ||
585 | PR fortran/108529 | |
586 | * simplify.cc (simplify_transformation): Do not try to simplify | |
587 | transformational intrinsic when the ARRAY argument has a NULL shape. | |
588 | ||
607f278a GA |
589 | 2023-01-23 Harald Anlauf <anlauf@gmx.de> |
590 | ||
591 | PR fortran/108502 | |
592 | * dependency.cc (gfc_check_dependency): Prevent NULL pointer | |
593 | dereference while recursively checking expressions. | |
594 | ||
595 | 2023-01-23 Harald Anlauf <anlauf@gmx.de> | |
596 | ||
597 | PR fortran/108501 | |
598 | * interface.cc (get_expr_storage_size): Check array subscript triplets | |
599 | that we actually have integer values before trying to extract with | |
600 | mpz_get_si. | |
601 | ||
602 | 2023-01-23 Harald Anlauf <anlauf@gmx.de> | |
603 | ||
604 | PR fortran/108420 | |
605 | * iresolve.cc (check_charlen_present): Preserve character length if | |
606 | there is no array constructor. | |
607 | ||
d5717e7f GA |
608 | 2023-01-21 Jerry DeLisle <jvdelisle@gcc.gnu.org> |
609 | ||
610 | PR fortran/102595 | |
611 | * data.cc (gfc_assign_data_value): Remove check for PARAMETER in DATA. | |
612 | * primary.cc (match_variable): Add check for PARAMETER in DATA. | |
613 | ||
0846336d GA |
614 | 2023-01-19 Harald Anlauf <anlauf@gmx.de> |
615 | ||
616 | PR fortran/108434 | |
617 | * expr.cc (class_allocatable): Prevent NULL pointer dereference | |
618 | or invalid read. | |
619 | (class_pointer): Likewise. | |
620 | ||
8d07b193 GA |
621 | 2023-01-17 Harald Anlauf <anlauf@gmx.de> |
622 | ||
623 | PR fortran/108421 | |
624 | * interface.cc (get_expr_storage_size): Check that we actually have | |
625 | an integer value before trying to extract it with mpz_get_si. | |
626 | ||
ecd637e9 GA |
627 | 2023-01-12 Tobias Burnus <tobias@codesourcery.com> |
628 | ||
629 | PR fortran/107706 | |
630 | * openmp.cc (gfc_resolve_omp_assumptions): Reject nonscalars. | |
631 | ||
81ed98bc GA |
632 | 2023-01-11 Jakub Jelinek <jakub@redhat.com> |
633 | ||
634 | PR fortran/108349 | |
635 | * f95-lang.cc (gfc_init_builtin_function): Fix up function types | |
636 | for BUILT_IN_REALLOC and BUILT_IN_SINCOS{F,,L}. Formatting fixes. | |
637 | ||
f432ad09 GA |
638 | 2023-01-10 Harald Anlauf <anlauf@gmx.de> |
639 | ||
640 | PR fortran/97345 | |
641 | * frontend-passes.cc (do_subscript): Clear used gmp variables. | |
642 | ||
fee53a31 GA |
643 | 2023-01-02 Jakub Jelinek <jakub@redhat.com> |
644 | ||
645 | * gfortranspec.cc (lang_specific_driver): Update copyright notice | |
646 | dates. | |
647 | * gfc-internals.texi: Bump @copying's copyright year. | |
648 | * gfortran.texi: Ditto. | |
649 | * intrinsic.texi: Ditto. | |
650 | * invoke.texi: Ditto. | |
651 | ||
21fa2a29 | 652 | \f |
d64f8779 | 653 | Copyright (C) 2023 Free Software Foundation, Inc. |
ad41bd84 JM |
654 | |
655 | Copying and distribution of this file, with or without modification, | |
656 | are permitted in any medium without royalty provided the copyright | |
657 | notice and this notice are preserved. |