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