| 1 |
2024-12-30 Steven G. Kargl <[email protected]> |
| 2 |
|
| 3 |
PR fortran/117643 |
| 4 |
* check.cc (gfc_check_f_c_string): Check arguments of f_c_string(). |
| 5 |
* gfortran.h (enum gfc_isym_id): New symbol GFC_ISYM_F_C_STRING. |
| 6 |
* intrinsic.cc (add_functions): Add the ISO C Binding routine f_c_string(). |
| 7 |
Wrap nearby long line to less than 80 characters. |
| 8 |
* intrinsic.h (gfc_check_f_c_string): Prototype for gfc_check_f_c_string(). |
| 9 |
* iso-c-binding.def (NAMED_FUNCTION): Declare for ISO C Binding |
| 10 |
routine f_c_string(). |
| 11 |
* primary.cc (gfc_match_rvalue): Fix comment that has been untrue since 2011. |
| 12 |
Add ISOCBINDING_F_C_STRING to conditional. |
| 13 |
* trans-intrinsic.cc (conv_trim): Specialized version of trim() for |
| 14 |
f_c_string(). |
| 15 |
(gfc_conv_intrinsic_function): Use GFC_ISYM_F_C_STRING to trigger in-lining. |
| 16 |
|
| 17 |
2024-12-23 Harald Anlauf <[email protected]> |
| 18 |
|
| 19 |
PR fortran/118179 |
| 20 |
* trans-expr.cc (conv_null_actual): Suppress copying back of |
| 21 |
pointer address for unspecified intent. |
| 22 |
|
| 23 |
2024-12-23 Paul Thomas <[email protected]> |
| 24 |
|
| 25 |
PR fortran/116254 |
| 26 |
PR fortran/118059 |
| 27 |
* trans-array.cc (gfc_trans_create_temp_array): Make sure that |
| 28 |
transformational intrinsics of class objects that change rank, |
| 29 |
most particularly spread, go through the correct code path. Re- |
| 30 |
factor so that changes to the dtype are done on the temporary |
| 31 |
before the class data of the result points to it. |
| 32 |
* trans-expr.cc (arrayfunc_assign_needs_temporary): Character |
| 33 |
array function expressions assigned to an unlimited polymorphic |
| 34 |
variable require a temporary. |
| 35 |
|
| 36 |
2024-12-22 Harald Anlauf <[email protected]> |
| 37 |
|
| 38 |
* check.cc (gfc_check_random_seed): Clear gmp variables returned by |
| 39 |
gfc_array_size. |
| 40 |
* expr.cc (gfc_check_pointer_assign): Likewise. |
| 41 |
|
| 42 |
2024-12-22 Andre Vehreschild <[email protected]> |
| 43 |
|
| 44 |
PR fortran/107635 |
| 45 |
* gfortran.h (gfc_add_caf_accessor): New function. |
| 46 |
* gfortran.texi: Document new API routines. |
| 47 |
* resolve.cc (get_arrayspec_from_expr): Synthesize the arrayspec |
| 48 |
resulting from an expression, i.e. not only the rank, but also |
| 49 |
the bounds. |
| 50 |
(remove_coarray_from_derived_type): Remove coarray ref from a |
| 51 |
derived type to access it in access routine. |
| 52 |
(convert_coarray_class_to_derived_type): Same but for classes. |
| 53 |
The result is a derived type. |
| 54 |
(split_expr_at_caf_ref): Split an expression at the coarray |
| 55 |
reference to move the reference after the coarray ref into the |
| 56 |
access routine. |
| 57 |
(check_add_new_component): Helper to add variables as |
| 58 |
components to derived type transfered to the access routine. |
| 59 |
(create_get_parameter_type): Create the derived type to transfer |
| 60 |
addressing data to the access routine. |
| 61 |
(create_get_callback): Create the access routine. |
| 62 |
(add_caf_get_intrinsic): Use access routine instead of old |
| 63 |
caf_get. |
| 64 |
* trans-decl.cc (gfc_build_builtin_function_decls): Register new |
| 65 |
API routines. |
| 66 |
(gfc_create_module_variable): Use renamed flag. |
| 67 |
(gfc_emit_parameter_debug_info): |
| 68 |
(struct caf_accessor): Linked list of hash-access routine pairs. |
| 69 |
(gfc_add_caf_accessor): Add a hash-access routine pair to above |
| 70 |
linked list. |
| 71 |
(create_caf_accessor_register): Add all registered hash-access |
| 72 |
routine pairs to the current caf_init. |
| 73 |
(generate_coarray_init): Use routine above. |
| 74 |
(gfc_generate_module_vars): Use renamed flag. |
| 75 |
(generate_local_decl): Same. |
| 76 |
(gfc_generate_function_code): Same. |
| 77 |
(gfc_process_block_locals): Same. |
| 78 |
* trans-intrinsic.cc (conv_shape_to_cst): Build the product of a |
| 79 |
shape. |
| 80 |
(gfc_conv_intrinsic_caf_get): Create call to access routine. |
| 81 |
(conv_caf_send): Adapt to caf_get using less arguments. |
| 82 |
(gfc_conv_intrinsic_function): Same. |
| 83 |
* trans.cc (gfc_trans_force_lval): Helper to ensure that an |
| 84 |
expression can be used as an lvalue-ref. |
| 85 |
* trans.h (gfc_trans_force_lval): See above. |
| 86 |
|
| 87 |
2024-12-22 Andre Vehreschild <[email protected]> |
| 88 |
|
| 89 |
PR fortran/107635 |
| 90 |
* gfortran.h (gfc_comp_caf_token): Convenient macro for |
| 91 |
accessing caf_token's tree. |
| 92 |
* resolve.cc (gfc_resolve_ref): Backup caf_lhs when resolving |
| 93 |
expr in array_ref. |
| 94 |
(remove_caf_get_intrinsic): Removed. |
| 95 |
(resolve_variable): Set flag caf_lhs when resolving lhs of |
| 96 |
assignment to prevent insertion of caf_get. |
| 97 |
(resolve_lock_unlock_event): Same, but the lhs is the parameter. |
| 98 |
(resolve_ordinary_assign): Move conversion to caf_send to |
| 99 |
resolve_codes. |
| 100 |
(resolve_codes): Adress caf_get and caf_send here. |
| 101 |
(resolve_fl_derived0): Set component's caf_token when token is |
| 102 |
necessary. |
| 103 |
* trans-array.cc (gfc_conv_array_parameter): Get a coarray for |
| 104 |
expression that have a corank. |
| 105 |
(structure_alloc_comps): Use macro to get caf_token's tree. |
| 106 |
(gfc_alloc_allocatable_for_assignment): Same. |
| 107 |
* trans-expr.cc (gfc_get_ultimate_alloc_ptr_comps_caf_token): |
| 108 |
Same. |
| 109 |
(gfc_trans_structure_assign): Same. |
| 110 |
* trans-intrinsic.cc (conv_expr_ref_to_caf_ref): Same. |
| 111 |
(has_ref_after_cafref): New function to figure that after a |
| 112 |
reference of a coarray another reference is present. |
| 113 |
(conv_caf_send): Get rhs from correct place, when caf_get is |
| 114 |
not removed. |
| 115 |
* trans-types.cc (gfc_get_derived_type): Get caf_token from |
| 116 |
component and no longer guessing. |
| 117 |
|
| 118 |
2024-12-21 Harald Anlauf <[email protected]> |
| 119 |
|
| 120 |
PR fortran/104819 |
| 121 |
* interface.cc (compare_parameter): For the rank check, NULL() |
| 122 |
inherits the rank of a provided MOLD argument. |
| 123 |
(gfc_compare_actual_formal): Adjust check of NULL() actual argument |
| 124 |
against formal to accept F2008 enhancements (allocatable dummy). |
| 125 |
NULL() with MOLD argument retains a pointer/allocatable attribute. |
| 126 |
* trans-expr.cc (conv_null_actual): Implement passing NULL() to |
| 127 |
derived-type dummy with pointer/allocatable attribute, and ensure |
| 128 |
that the actual rank is passed to an assumed-rank dummy. |
| 129 |
(gfc_conv_procedure_call): Use it. |
| 130 |
|
| 131 |
2024-12-20 Sandra Loosemore <[email protected]> |
| 132 |
|
| 133 |
* gfortran.texi: Get rid of some unnecessary hyphens throughout |
| 134 |
the file. |
| 135 |
* invoke.texi: Likewise. |
| 136 |
|
| 137 |
2024-12-20 Sandra Loosemore <[email protected]> |
| 138 |
|
| 139 |
* gfortran.texi: Use the present tense throughout; fix some |
| 140 |
markup issues and awkward wording. |
| 141 |
* invoke.texi: Likewise. |
| 142 |
|
| 143 |
2024-12-20 Sandra Loosemore <[email protected]> |
| 144 |
|
| 145 |
* gfortran.texi: Fix markup, typos, and indexing throughout the |
| 146 |
file. |
| 147 |
* invoke.texi: Likewise. |
| 148 |
|
| 149 |
2024-12-20 Sandra Loosemore <[email protected]> |
| 150 |
|
| 151 |
PR fortran/51820 |
| 152 |
PR fortran/89632 |
| 153 |
PR fortran/109216 |
| 154 |
* invoke.texi (Code Gen Options): Further cleanups of the discussion |
| 155 |
of what -funderscoring and -fsecond-underscore do. |
| 156 |
|
| 157 |
2024-12-20 Harald Anlauf <[email protected]> |
| 158 |
|
| 159 |
PR fortran/118120 |
| 160 |
PR fortran/113928 |
| 161 |
* trans-array.cc (symbols_could_alias): If one symbol refers to a |
| 162 |
complex type and the other to a real type of the same kind, do not |
| 163 |
a priori exclude the possibility of aliasing. |
| 164 |
|
| 165 |
2024-12-17 Sandra Loosemore <[email protected]> |
| 166 |
|
| 167 |
PR c/26154 |
| 168 |
* gfortran.texi (Standards): Remove redundant info about |
| 169 |
OpenMP/OpenACC standard support. |
| 170 |
(OpenMP): Copy-editing and update version info. |
| 171 |
(OpenACC): Likewise. |
| 172 |
* lang.opt.urls: Regenerated. |
| 173 |
|
| 174 |
2024-12-17 Andre Vehreschild <[email protected]> |
| 175 |
|
| 176 |
PR fortran/117347 |
| 177 |
* primary.cc (gfc_match_varspec): Add array constructors for |
| 178 |
guessing their type like with unresolved function calls. |
| 179 |
|
| 180 |
2024-12-16 David Malcolm <[email protected]> |
| 181 |
|
| 182 |
PR sarif-replay/117943 |
| 183 |
* error.cc (gfc_diagnostic_text_starter): Use source-printing |
| 184 |
options from text_output. |
| 185 |
|
| 186 |
2024-12-15 Paul Thomas <[email protected]> |
| 187 |
|
| 188 |
PR fortran/117897 |
| 189 |
* trans-expr.cc (gfc_trans_assignment_1): RHS pointer function |
| 190 |
results must not be finalized. |
| 191 |
|
| 192 |
2024-12-12 Paul Thomas <[email protected]> |
| 193 |
|
| 194 |
PR fortran/117797 |
| 195 |
* trans-array.cc (class_array_element_size): New function. |
| 196 |
(gfc_get_array_span): Refactor, using class_array_element_size |
| 197 |
to return the span for descriptors that are the _data component |
| 198 |
of a class expression and then class dummy references. Revert |
| 199 |
the conditions to those before r15-5083 tidying up using 'sym'. |
| 200 |
|
| 201 |
2024-12-11 Paul Thomas <[email protected]> |
| 202 |
|
| 203 |
PR fortran/117901 |
| 204 |
* trans-stmt.cc (trans_associate_var): A variable character |
| 205 |
length array associate name must generate a DECL expression for |
| 206 |
the data pointer type. |
| 207 |
|
| 208 |
2024-12-09 Harald Anlauf <[email protected]> |
| 209 |
|
| 210 |
* expr.cc (find_array_section): Do not initialize GMP variables |
| 211 |
twice. |
| 212 |
|
| 213 |
2024-12-09 Paul Thomas <[email protected]> |
| 214 |
|
| 215 |
PR fortran/116261 |
| 216 |
* trans-array.cc (gfc_array_init_size): New arg 'explicit_ts', |
| 217 |
to suppress the use of the expr3 element size in the descriptor |
| 218 |
dtype. |
| 219 |
(gfc_array_allocate): New arg 'explicit_ts', used in call to |
| 220 |
gfc_array_init_size. |
| 221 |
* trans-array.h : Modify prototype for gfc_array_allocate for new |
| 222 |
bool argument. |
| 223 |
* trans-stmt.cc (gfc_trans_allocate): Set new argument if the |
| 224 |
typespec is explicit. |
| 225 |
|
| 226 |
2024-12-03 Paul Thomas <[email protected]> |
| 227 |
|
| 228 |
PR fortran/102689 |
| 229 |
* trans-array.cc (get_array_ref_dim_for_loop_dim): Use the arg1 |
| 230 |
class container carried in ss->info as the seed for a lhs in |
| 231 |
class valued transformational intrinsic calls that are not the |
| 232 |
rhs of an assignment. Otherwise, the lhs variable expression is |
| 233 |
taken from the loop chain. For this latter case, the _vptr and |
| 234 |
_len fields are set. |
| 235 |
(gfc_trans_create_temp_array): Use either the lhs expression |
| 236 |
seeds to build a class variable that will take the returned |
| 237 |
descriptor as its _data field. In the case that the arg1 expr. |
| 238 |
is used, 'atmp' must be marked as unused, a typespec built with |
| 239 |
the correct rank and the _vptr and _len fields set. The element |
| 240 |
size is provided for the temporary allocation and to set the |
| 241 |
descriptor span. |
| 242 |
(gfc_array_init_size): When an intrinsic type scalar expr3 is |
| 243 |
used in allocation of a class array, use its element size in |
| 244 |
the descriptor dtype. |
| 245 |
* trans-expr.cc (gfc_conv_class_to_class): Class valued |
| 246 |
transformational intrinsics return the pointer to the array |
| 247 |
descriptor as the _data field of a class temporary. Extract |
| 248 |
directly and return the address of the class temporary. |
| 249 |
(gfc_conv_procedure_call): store the expression for the first |
| 250 |
argument of a class valued transformational intrinsic function |
| 251 |
in the ss info class_container field. Later, use its type as |
| 252 |
the element type in the call to gfc_trans_create_temp_array. |
| 253 |
(fcncall_realloc_result): Add a dtype argument and use it in |
| 254 |
the descriptor, when available. |
| 255 |
(gfc_trans_arrayfunc_assign): For class lhs, build a dtype with |
| 256 |
the lhs rank and the rhs element size and use it in the call to |
| 257 |
fcncall_realloc_result. |
| 258 |
|
| 259 |
2024-12-03 Tobias Burnus <[email protected]> |
| 260 |
|
| 261 |
* trans-decl.cc (gfc_finish_var_decl): Remove setting the alignment. |
| 262 |
|
| 263 |
2024-11-29 Andrew Pinski <[email protected]> |
| 264 |
|
| 265 |
PR fortran/117843 |
| 266 |
* trans-io.cc (gfc_trans_transfer): Add default case. |
| 267 |
|
| 268 |
2024-11-28 Steven G. Kargl <[email protected]> |
| 269 |
|
| 270 |
PR fortran/117765 |
| 271 |
* resolve.cc (pure_subroutine): Check for an impure subroutine |
| 272 |
call in a BLOCK construct nested within a DO CONCURRENT block. |
| 273 |
|
| 274 |
2024-11-28 Harald Anlauf <[email protected]> |
| 275 |
|
| 276 |
PR fortran/117791 |
| 277 |
* trans-io.cc (gfc_trans_transfer): When an array index depends on |
| 278 |
a function evaluation or an expression, do not use optimized array |
| 279 |
I/O of an array section and fall back to normal scalarization. |
| 280 |
|
| 281 |
2024-11-28 David Malcolm <[email protected]> |
| 282 |
|
| 283 |
PR c/104896 |
| 284 |
* resolve.cc (resolve_operator): Replace "%<%s%>" with "%qs" in |
| 285 |
message wording. |
| 286 |
|
| 287 |
2024-11-27 Paul Thomas <[email protected]> |
| 288 |
|
| 289 |
PR fortran/84674 |
| 290 |
PR fortran/117768 |
| 291 |
* class.cc (add_proc_comp): If the component points to a tbp |
| 292 |
that is abstract, do not return since the new version is more |
| 293 |
likely to be usable. |
| 294 |
* resolve.cc (resolve_fl_derived): Remove the condition that |
| 295 |
rejected a completely empty derived type extension. |
| 296 |
|
| 297 |
2024-11-26 Harald Anlauf <[email protected]> |
| 298 |
|
| 299 |
* expr.cc (find_inquiry_ref): Fix memleak introduced by scanning |
| 300 |
the reference chain to find and simplify inquiry references. |
| 301 |
* symbol.cc (gfc_copy_formal_args_intr): Free formal namespace |
| 302 |
when not needed to avoid a front-end memleak. |
| 303 |
|
| 304 |
2024-11-26 Harald Anlauf <[email protected]> |
| 305 |
|
| 306 |
PR fortran/117774 |
| 307 |
* trans-expr.cc (gfc_conv_procedure_call): When passing an array |
| 308 |
to an assumed-rank dummy, terminate search for array reference of |
| 309 |
actual argument before an inquiry reference (e.g. INQUIRY_RE, |
| 310 |
INQUIRY_IM) so that bounds update works properly. |
| 311 |
|
| 312 |
2024-11-26 Paul Thomas <[email protected]> |
| 313 |
|
| 314 |
PR fortran/117763 |
| 315 |
* trans-array.cc (gfc_get_array_span): Guard against derefences |
| 316 |
of 'expr'. Clean up some typos. Use 'gfc_get_vptr_from_expr' |
| 317 |
for clarity and apply a functional reversion of last section |
| 318 |
that deals with class dummies. |
| 319 |
|
| 320 |
2024-11-25 Steve Kargl <[email protected]> |
| 321 |
|
| 322 |
PR fortran/117765 |
| 323 |
* resolve.cc (check_pure_function): Check the stack to |
| 324 |
see if the function is in a nested BLOCK and, if that |
| 325 |
block is inside a DO_CONCURRENT, issue an error. |
| 326 |
|
| 327 |
2024-11-24 Paul Thomas <[email protected]> |
| 328 |
|
| 329 |
PR fortran/85869 |
| 330 |
* trans-expr.cc (trans_class_vptr_len_assignment): To access |
| 331 |
the '_len' field, re must be unlimited polymorphic. |
| 332 |
|
| 333 |
2024-11-24 Paul Thomas <[email protected]> |
| 334 |
|
| 335 |
PR fortran/117730 |
| 336 |
PR fortran/84674 |
| 337 |
* class.cc (add_proc_comp): Only reject a non_overridable if it |
| 338 |
has no overridden procedure and the component is already |
| 339 |
present in the vtype. |
| 340 |
* resolve.cc (resolve_fl_derived): Do not build a vtable for a |
| 341 |
derived type extension that is completely empty. |
| 342 |
|
| 343 |
2024-11-22 Andrew Pinski <[email protected]> |
| 344 |
|
| 345 |
PR bootstrap/117737 |
| 346 |
* arith.cc (INCLUDE_MEMORY): Remove. |
| 347 |
* array.cc (INCLUDE_MEMORY): Remove. |
| 348 |
* bbt.cc (INCLUDE_MEMORY): Remove. |
| 349 |
* check.cc (INCLUDE_MEMORY): Remove. |
| 350 |
* class.cc (INCLUDE_MEMORY): Remove. |
| 351 |
* constructor.cc (INCLUDE_MEMORY): Remove. |
| 352 |
* convert.cc (INCLUDE_MEMORY): Remove. |
| 353 |
* cpp.cc (INCLUDE_MEMORY): Remove. |
| 354 |
* data.cc (INCLUDE_MEMORY): Remove. |
| 355 |
* decl.cc (INCLUDE_MEMORY): Remove. |
| 356 |
* dependency.cc (INCLUDE_MEMORY): Remove. |
| 357 |
* dump-parse-tree.cc (INCLUDE_MEMORY): Remove. |
| 358 |
* error.cc (INCLUDE_MEMORY): Remove. |
| 359 |
* expr.cc (INCLUDE_MEMORY): Remove. |
| 360 |
* f95-lang.cc (INCLUDE_MEMORY): Remove. |
| 361 |
* frontend-passes.cc (INCLUDE_MEMORY): Remove. |
| 362 |
* interface.cc (INCLUDE_MEMORY): Remove. |
| 363 |
* intrinsic.cc (INCLUDE_MEMORY): Remove. |
| 364 |
* io.cc (INCLUDE_MEMORY): Remove. |
| 365 |
* iresolve.cc (INCLUDE_MEMORY): Remove. |
| 366 |
* match.cc (INCLUDE_MEMORY): Remove. |
| 367 |
* matchexp.cc (INCLUDE_MEMORY): Remove. |
| 368 |
* misc.cc (INCLUDE_MEMORY): Remove. |
| 369 |
* module.cc (INCLUDE_MEMORY): Remove. |
| 370 |
* openmp.cc (INCLUDE_MEMORY): Remove. |
| 371 |
* options.cc (INCLUDE_MEMORY): Remove. |
| 372 |
* parse.cc (INCLUDE_MEMORY): Remove. |
| 373 |
* primary.cc (INCLUDE_MEMORY): Remove. |
| 374 |
* resolve.cc (INCLUDE_MEMORY): Remove. |
| 375 |
* scanner.cc (INCLUDE_MEMORY): Remove. |
| 376 |
* simplify.cc (INCLUDE_MEMORY): Remove. |
| 377 |
* st.cc (INCLUDE_MEMORY): Remove. |
| 378 |
* symbol.cc (INCLUDE_MEMORY): Remove. |
| 379 |
* target-memory.cc (INCLUDE_MEMORY): Remove. |
| 380 |
* trans-array.cc (INCLUDE_MEMORY): Remove. |
| 381 |
* trans-common.cc (INCLUDE_MEMORY): Remove. |
| 382 |
* trans-const.cc (INCLUDE_MEMORY): Remove. |
| 383 |
* trans-decl.cc (INCLUDE_MEMORY): Remove. |
| 384 |
* trans-expr.cc (INCLUDE_MEMORY): Remove. |
| 385 |
* trans-intrinsic.cc (INCLUDE_MEMORY): Remove. |
| 386 |
* trans-io.cc (INCLUDE_MEMORY): Remove. |
| 387 |
* trans-openmp.cc (INCLUDE_MEMORY): Remove. |
| 388 |
* trans-stmt.cc (INCLUDE_MEMORY): Remove. |
| 389 |
* trans-types.cc (INCLUDE_MEMORY): Remove. |
| 390 |
* trans.cc (INCLUDE_MEMORY): Remove. |
| 391 |
|
| 392 |
2024-11-22 Tobias Burnus <[email protected]> |
| 393 |
|
| 394 |
* gfortran.h (gfc_omp_namelist): Cleanup interop internal |
| 395 |
representation. |
| 396 |
* dump-parse-tree.cc (show_omp_namelist): Update for changed |
| 397 |
internal representation. |
| 398 |
* match.cc (gfc_free_omp_namelist): Likewise. |
| 399 |
* openmp.cc (gfc_match_omp_prefer_type, gfc_match_omp_init): |
| 400 |
Likewise; also handle some corner cases better and update for |
| 401 |
newer 6.0 changes related to 'fr'. |
| 402 |
(resolve_omp_clauses): Add type-check for interop variables. |
| 403 |
* trans-openmp.cc (gfc_trans_omp_clauses): Handle init, use |
| 404 |
and destroy clauses. |
| 405 |
(gfc_trans_openmp_interop): New. |
| 406 |
(gfc_trans_omp_directive): Call it. |
| 407 |
|
| 408 |
2024-11-20 Harald Anlauf <[email protected]> |
| 409 |
|
| 410 |
PR fortran/83135 |
| 411 |
* expr.cc (sym_is_from_ancestor): New helper function. |
| 412 |
(gfc_check_vardef_context): Refine checking of PROTECTED attribute |
| 413 |
of symbols that are indirectly use-associated in a submodule. |
| 414 |
|
| 415 |
2024-11-20 Paul-Antoine Arras <[email protected]> |
| 416 |
|
| 417 |
* types.def (BT_FN_PTR_CONST_PTR_INT): Declare. |
| 418 |
|
| 419 |
2024-11-20 Mikael Morin <[email protected]> |
| 420 |
|
| 421 |
PR fortran/90608 |
| 422 |
* trans-intrinsic.cc |
| 423 |
(walk_inline_intrinsic_minmaxloc): Add a scalar element for BACK as |
| 424 |
first item of the chain if BACK is present and there will be nested |
| 425 |
loops. |
| 426 |
(gfc_conv_intrinsic_minmaxloc): Evaluate BACK using an inherited |
| 427 |
scalarization chain if there is a nested loop. |
| 428 |
|
| 429 |
2024-11-20 Mikael Morin <[email protected]> |
| 430 |
|
| 431 |
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Only get the size |
| 432 |
along DIM instead of the full size if DIM is present. |
| 433 |
|
| 434 |
2024-11-19 Mikael Morin <[email protected]> |
| 435 |
|
| 436 |
PR fortran/90608 |
| 437 |
* trans-intrinsic.cc (gfc_inline_intrinsic_function_p): Return TRUE |
| 438 |
for MINLOC/MAXLOC with constant DIM and either REAL ARRAY or |
| 439 |
non-scalar MASK. |
| 440 |
(walk_inline_intrinsic_minmaxloc): Walk MASK and if it's an array |
| 441 |
add the chain obtained before that of ARRAY. |
| 442 |
(gfc_conv_intrinsic_minmaxloc): Use the nested loop if there is one. |
| 443 |
To evaluate MASK (respectively ARRAY in the second loop), inherit |
| 444 |
the scalarizer chain if in a nested loop, otherwise keep using the |
| 445 |
chain obtained by walking MASK (respectively ARRAY). If there is a |
| 446 |
nested loop, avoid advancing the parent scalarization chain a second |
| 447 |
time in the second loop. |
| 448 |
|
| 449 |
2024-11-19 Mikael Morin <[email protected]> |
| 450 |
|
| 451 |
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Use |
| 452 |
conditionals based on the MASK expression rather than on its |
| 453 |
scalarization chains. |
| 454 |
|
| 455 |
2024-11-19 Mikael Morin <[email protected]> |
| 456 |
|
| 457 |
PR fortran/90608 |
| 458 |
* trans-intrinsic.cc (gfc_inline_intrinsic_function_p): Return TRUE |
| 459 |
if MASK is scalar. |
| 460 |
(walk_inline_intrinsic_minmaxloc): Append to the scalarization chain |
| 461 |
a scalar element for MASK if it's present. |
| 462 |
(gfc_conv_intrinsic_minmaxloc): Use a local gfc_se struct to serve |
| 463 |
as base for all the expressions evaluated in the nested loop. To |
| 464 |
evaluate MASK when there is a nested loop, enable usage of the |
| 465 |
scalarizer and set the original passed in SE argument as current |
| 466 |
scalarization chain element to use. And use the nested loop from |
| 467 |
the scalarizer instead of the local loop in that case. |
| 468 |
|
| 469 |
2024-11-19 Mikael Morin <[email protected]> |
| 470 |
|
| 471 |
PR fortran/90608 |
| 472 |
* trans-intrinsic.cc (gfc_inline_intrinsic_function_p): Return true |
| 473 |
if DIM is constant, ARRAY is integral and MASK is absent. |
| 474 |
(walk_inline_intrinsic_minmaxloc): If DIM is present, walk ARRAY and |
| 475 |
move the dimension corresponding to DIM to a nested chain, keeping |
| 476 |
the rest of the dimensions as the returned scalarization chain. |
| 477 |
(gfc_conv_intrinsic_minmaxloc): When inside the scalarization loops, |
| 478 |
proceed with inline code generation If DIM is present. If DIM is |
| 479 |
present, skip result array creation and final initialization from |
| 480 |
individual result local variables. If DIM is present and ARRAY has |
| 481 |
rank greater than 1, use the nested loop initialized by the |
| 482 |
scalarizer instead of the local one, use 1 as scalarization |
| 483 |
dimension, and evaluate ARRAY using the inherited scalarization |
| 484 |
chain instead of creating a local one by walking the expression. |
| 485 |
|
| 486 |
2024-11-18 Harald Anlauf <[email protected]> |
| 487 |
|
| 488 |
PR fortran/53357 |
| 489 |
* dependency.cc (gfc_dep_compare_expr): Return correct result if |
| 490 |
relationship of expressions could not be determined. |
| 491 |
* interface.cc (gfc_check_result_characteristics): Implement error |
| 492 |
messages if character function declations and references do not |
| 493 |
agree, else emit warning in cases where a mismatch is suspected. |
| 494 |
* trans-stmt.cc (gfc_trans_allocate): Implement a string length |
| 495 |
check for -fcheck=bounds. |
| 496 |
|
| 497 |
2024-11-16 Paul Thomas <[email protected]> |
| 498 |
|
| 499 |
PR fortran/109066 |
| 500 |
* resolve.cc (generate_component_assignments): If the temporary |
| 501 |
for 'var' is a pointer and 'expr' is neither a constant or |
| 502 |
a variable, change its attribute from pointer to allocatable. |
| 503 |
This avoids assignment to a temporary point that has neither |
| 504 |
been allocated or associated. |
| 505 |
|
| 506 |
2024-11-16 Thomas Koenig <[email protected]> |
| 507 |
|
| 508 |
* gfortran.texi: Document that SELECT CASE works for UNSIGNED. |
| 509 |
|
| 510 |
2024-11-16 Thomas Koenig <[email protected]> |
| 511 |
|
| 512 |
* module.cc (mio_expr): Handle BT_UNSIGNED. |
| 513 |
|
| 514 |
2024-11-15 Jan Hubicka <[email protected]> |
| 515 |
|
| 516 |
* trans-expr.cc (gfc_trans_subcomponent_assign): Fix type of malloc |
| 517 |
parameter. |
| 518 |
|
| 519 |
2024-11-14 Harald Anlauf <[email protected]> |
| 520 |
|
| 521 |
PR fortran/104819 |
| 522 |
* trans-expr.cc (conv_null_actual): Helper function to handle |
| 523 |
passing of NULL() to non-optional dummy arguments of non-bind(c) |
| 524 |
procedures. |
| 525 |
(gfc_conv_procedure_call): Use it for character dummies. |
| 526 |
|
| 527 |
2024-11-13 Paul Thomas <[email protected]> |
| 528 |
|
| 529 |
PR fortran/105054 |
| 530 |
* resolve.cc (get_temp_from_expr): If the pointer function has |
| 531 |
a deferred character length, generate a new deferred charlen |
| 532 |
for the temporary. |
| 533 |
|
| 534 |
2024-11-11 Paul Thomas <[email protected]> |
| 535 |
|
| 536 |
PR fortran/109345 |
| 537 |
* trans-array.cc (gfc_get_array_span): Unlimited polymorphic |
| 538 |
expressions are now treated separately since the span need not |
| 539 |
be the same as the element size. |
| 540 |
|
| 541 |
2024-11-11 Tomas Trnka <[email protected]> |
| 542 |
Paul Thomas <[email protected]> |
| 543 |
|
| 544 |
PR fortran/116388 |
| 545 |
* class.cc (finalize_component): Leading underscore in the name |
| 546 |
of 'byte_stride' to suppress invalid finalization. |
| 547 |
|
| 548 |
2024-11-11 Thomas Koenig <[email protected]> |
| 549 |
|
| 550 |
* check.cc (gfc_check_complex): Reject UNSIGNED. |
| 551 |
* gfortran.texi: Update example program. Note that |
| 552 |
CMPLX, INT and REAL also take unsigned arguments. |
| 553 |
* intrinsic.texi (CMPLX): Document UNSIGNED. |
| 554 |
(INT): Likewise. |
| 555 |
(REAL): Likewise. |
| 556 |
|
| 557 |
2024-11-06 Paul Thomas <[email protected]> |
| 558 |
|
| 559 |
PR fortran/117434 |
| 560 |
* interface.cc (gfc_compare_actual_formal): Skip 'Expected a |
| 561 |
procedure pointer error' if the formal argument typespec has an |
| 562 |
interface and the type of the actual arg is BT_PROCEDURE. |
| 563 |
|
| 564 |
2024-11-05 David Malcolm <[email protected]> |
| 565 |
|
| 566 |
PR fortran/117442 |
| 567 |
* error.cc (error_buffer): Convert to a pointer so it can be |
| 568 |
heap-allocated. |
| 569 |
(gfc_error_now): Update for error_buffer being heap-allocated. |
| 570 |
(gfc_clear_error): Likewise. |
| 571 |
(gfc_error_flag_test): Likewise. |
| 572 |
(gfc_error_check): Likewise. |
| 573 |
(gfc_push_error): Likewise. |
| 574 |
(gfc_pop_error): Likewise. |
| 575 |
(gfc_diagnostics_init): Allocate error_buffer on the heap, rather |
| 576 |
than statically. |
| 577 |
(gfc_diagnostics_finish): Delete error_buffer. |
| 578 |
|
| 579 |
2024-11-02 Thomas Koenig <[email protected]> |
| 580 |
|
| 581 |
* check.cc (gfc_check_mask): Handle BT_INSIGNED. |
| 582 |
* gfortran.h (enum gfc_isym_id): Add GFC_ISYM_UMASKL and |
| 583 |
GFC_ISYM_UMASKR. |
| 584 |
* gfortran.texi: List UMASKL and UMASKR, remove unsigned future |
| 585 |
unsigned arguments for MASKL and MASKR. |
| 586 |
* intrinsic.cc (add_functions): Add UMASKL and UMASKR. |
| 587 |
* intrinsic.h (gfc_simplify_umaskl): New function. |
| 588 |
(gfc_simplify_umaskr): New function. |
| 589 |
(gfc_resolve_umasklr): New function. |
| 590 |
* intrinsic.texi: Document UMASKL and UMASKR. |
| 591 |
* iresolve.cc (gfc_resolve_umasklr): New function. |
| 592 |
* simplify.cc (gfc_simplify_umaskr): New function. |
| 593 |
(gfc_simplify_umaskl): New function. |
| 594 |
|
| 595 |
2024-11-01 Thomas Koenig <[email protected]> |
| 596 |
|
| 597 |
* resolve.cc (resolve_operator): Also handle BT_UNSIGNED. |
| 598 |
|
| 599 |
2024-11-01 Paul Thomas <[email protected]> |
| 600 |
|
| 601 |
PR fortran/115700 |
| 602 |
* resolve.cc (resolve_assoc_var): Extract a substring reference |
| 603 |
with missing as well as non-constant start or end. |
| 604 |
|
| 605 |
2024-10-31 Paul Thomas <[email protected]> |
| 606 |
|
| 607 |
PR fortran/115700 |
| 608 |
* resolve.cc (resolve_variable): The typespec of an expression, |
| 609 |
which is not a substring, can be shared with a deferred length |
| 610 |
associate name. |
| 611 |
(resolve_assoc_var): Extract a substring reference with non- |
| 612 |
constant start or end. Use it to flag up the need for array |
| 613 |
associate name to be a pointer. |
| 614 |
(resolve_block_construct): Change comment from past to future |
| 615 |
tense. |
| 616 |
|
| 617 |
2024-10-30 Harald Anlauf <[email protected]> |
| 618 |
|
| 619 |
* trans-expr.cc (gfc_trans_class_init_assign): Free intermediate |
| 620 |
gfc_expr's. |
| 621 |
* trans.cc (get_final_proc_ref): Likewise. |
| 622 |
(get_elem_size): Likewise. |
| 623 |
(gfc_add_finalizer_call): Likewise. |
| 624 |
|
| 625 |
2024-10-29 David Malcolm <[email protected]> |
| 626 |
|
| 627 |
PR other/116613 |
| 628 |
* error.cc (gfc_diagnostic_build_kind_prefix): Update for |
| 629 |
global_dc's m_printer becoming reference printer. |
| 630 |
(gfc_diagnostics_init): Replace usage of diagnostic_format_decoder |
| 631 |
with global_dc->set_format_decoder. |
| 632 |
|
| 633 |
2024-10-27 Paul Thomas <[email protected]> |
| 634 |
|
| 635 |
PR fortran/115070 |
| 636 |
PR fortran/115348 |
| 637 |
* trans-expr.cc (gfc_trans_class_init_assign): If all the |
| 638 |
components of the default initializer are null for a scalar, |
| 639 |
build an empty statement to prevent prior declarations from |
| 640 |
disappearing. |
| 641 |
|
| 642 |
2024-10-26 Iain Sandoe <[email protected]> |
| 643 |
|
| 644 |
* intrinsic.texi: Add menu item for UINT. |
| 645 |
|
| 646 |
2024-10-26 Thomas Koenig <[email protected]> |
| 647 |
|
| 648 |
* gfortran.texi: Correct reference to make clear that UNSIGNED |
| 649 |
will not be part of F202Y. |
| 650 |
Other clarifications. |
| 651 |
Extend table of intrinsics, add links. |
| 652 |
* intrinsic.texi: Add descriptions for UNSIGNED arguments. |
| 653 |
* invoke.texi: Add anchor for -funsigned. |
| 654 |
|
| 655 |
2024-10-25 Paul Thomas <[email protected]> |
| 656 |
|
| 657 |
PR fortran/79685 |
| 658 |
* decl.cc (match_data_constant): Find the symtree instead of |
| 659 |
the symbol so the use renamed symbols are found. Pass this and |
| 660 |
the derived type to gfc_match_structure_constructor. |
| 661 |
* match.h: Update prototype of gfc_match_structure_contructor. |
| 662 |
* primary.cc (gfc_match_structure_constructor): Remove call to |
| 663 |
gfc_get_ha_sym_tree and use caller supplied symtree instead. |
| 664 |
|
| 665 |
2024-10-25 Jakub Jelinek <[email protected]> |
| 666 |
|
| 667 |
* trans-openmp.cc: Remove trailing whitespace. |
| 668 |
* trans-common.cc: Likewise. |
| 669 |
* match.h: Likewise. |
| 670 |
* scanner.cc: Likewise. |
| 671 |
* gfortranspec.cc: Likewise. |
| 672 |
* io.cc: Likewise. |
| 673 |
* iso-c-binding.def: Likewise. |
| 674 |
* iso-fortran-env.def: Likewise. |
| 675 |
* types.def: Likewise. |
| 676 |
* openmp.cc: Likewise. |
| 677 |
* f95-lang.cc: Likewise. |
| 678 |
|
| 679 |
2024-10-24 David Malcolm <[email protected]> |
| 680 |
Gaius Mulley <[email protected]> |
| 681 |
|
| 682 |
PR other/116613 |
| 683 |
* arith.cc: Add #define INCLUDE_MEMORY. |
| 684 |
* array.cc: Likewise. |
| 685 |
* bbt.cc: Likewise. |
| 686 |
* check.cc: Likewise. |
| 687 |
* class.cc: Likewise. |
| 688 |
* constructor.cc: Likewise. |
| 689 |
* convert.cc: Likewise. |
| 690 |
* cpp.cc: Likewise. |
| 691 |
* data.cc: Likewise. |
| 692 |
* decl.cc: Likewise. |
| 693 |
* dependency.cc: Likewise. |
| 694 |
* dump-parse-tree.cc: Likewise. |
| 695 |
* error.cc: Likewise. |
| 696 |
* expr.cc: Likewise. |
| 697 |
* f95-lang.cc: Likewise. |
| 698 |
* frontend-passes.cc: Likewise. |
| 699 |
* interface.cc: Likewise. |
| 700 |
* intrinsic.cc: Likewise. |
| 701 |
* io.cc: Likewise. |
| 702 |
* iresolve.cc: Likewise. |
| 703 |
* match.cc: Likewise. |
| 704 |
* matchexp.cc: Likewise. |
| 705 |
* misc.cc: Likewise. |
| 706 |
* module.cc: Likewise. |
| 707 |
* openmp.cc: Likewise. |
| 708 |
* options.cc: Likewise. |
| 709 |
* parse.cc: Likewise. |
| 710 |
* primary.cc: Likewise. |
| 711 |
* resolve.cc: Likewise. |
| 712 |
* scanner.cc: Likewise. |
| 713 |
* simplify.cc: Likewise. |
| 714 |
* st.cc: Likewise. |
| 715 |
* symbol.cc: Likewise. |
| 716 |
* target-memory.cc: Likewise. |
| 717 |
* trans-array.cc: Likewise. |
| 718 |
* trans-common.cc: Likewise. |
| 719 |
* trans-const.cc: Likewise. |
| 720 |
* trans-decl.cc: Likewise. |
| 721 |
* trans-expr.cc: Likewise. |
| 722 |
* trans-intrinsic.cc: Likewise. |
| 723 |
* trans-io.cc: Likewise. |
| 724 |
* trans-openmp.cc: Likewise. |
| 725 |
* trans-stmt.cc: Likewise. |
| 726 |
* trans-types.cc: Likewise. |
| 727 |
* trans.cc: Likewise. |
| 728 |
|
| 729 |
2024-10-23 David Malcolm <[email protected]> |
| 730 |
|
| 731 |
PR fortran/105916 |
| 732 |
* error.cc (pp_error_buffer, pp_warning_buffer): Convert from |
| 733 |
output_buffer * to diagnostic_buffer *. |
| 734 |
(warningcount_buffered, werrorcount_buffered): Eliminate. |
| 735 |
(gfc_error_buffer::gfc_error_buffer): Move constructor definition |
| 736 |
here, and initialize "buffer" using *global_dc. |
| 737 |
(gfc_output_buffer_empty_p): Delete in favor of |
| 738 |
diagnostic_buffer::empty_p. |
| 739 |
(gfc_clear_pp_buffer): Replace with... |
| 740 |
(gfc_clear_diagnostic_buffer): ...this, moving implementation |
| 741 |
details to diagnostic_context::clear_diagnostic_buffer. |
| 742 |
(gfc_warning): Replace buffering implementation with calls |
| 743 |
to global_dc->get_diagnostic_buffer and |
| 744 |
global_dc->set_diagnostic_buffer. |
| 745 |
(gfc_clear_warning): Update for renaming of gfc_clear_pp_buffer |
| 746 |
and elimination of warningcount_buffered and werrorcount_buffered. |
| 747 |
(gfc_warning_check): Replace buffering implementation with calls |
| 748 |
to pp_warning_buffer->empty_p and |
| 749 |
global_dc->flush_diagnostic_buffer. |
| 750 |
(gfc_error_opt): Replace buffering implementation with calls to |
| 751 |
global_dc->get_diagnostic_buffer and set_diagnostic_buffer. |
| 752 |
(gfc_clear_error): Update for renaming of gfc_clear_pp_buffer. |
| 753 |
(gfc_error_flag_test): Replace call to gfc_output_buffer_empty_p |
| 754 |
with call to diagnostic_buffer::empty_p. |
| 755 |
(gfc_error_check): Replace buffering implementation with calls |
| 756 |
to pp_error_buffer->empty_p and global_dc->flush_diagnostic_buffer. |
| 757 |
(gfc_move_error_buffer_from_to): Replace buffering implementation |
| 758 |
with usage of diagnostic_buffer. |
| 759 |
(gfc_free_error): Update for renaming of gfc_clear_pp_buffer. |
| 760 |
(gfc_diagnostics_init): Use "new" directly when creating |
| 761 |
pp_warning_buffer. Remove setting of m_flush_p on the two |
| 762 |
buffers, as this is handled by diagnostic_buffer and by |
| 763 |
diagnostic_text_format_buffer's constructor. |
| 764 |
* gfortran.h: Replace #include "pretty-print.h" for output_buffer |
| 765 |
with #include "diagnostic-buffer.h" for diagnostic_buffer. |
| 766 |
(struct gfc_error_buffer): Change type of field "buffer" from |
| 767 |
output_buffer to diagnostic_buffer. Move definition of constructor |
| 768 |
into error.cc so that it can use global_dc. |
| 769 |
|
| 770 |
2024-10-23 Paul Thomas <[email protected]> |
| 771 |
|
| 772 |
PR fortran/116733 |
| 773 |
* array.cc : White space corrections. |
| 774 |
* expr.cc (gfc_check_pointer_assign): Permit assumed rank |
| 775 |
target with -std=f202y. Add constraints that the data pointer |
| 776 |
object must have rank remapping specified and the that the data |
| 777 |
target be contiguous. |
| 778 |
* gfortran.h : Add a gfc_array_ref field 'ar' to the structure |
| 779 |
'gfc_association_list'. |
| 780 |
* interface.cc (gfc_compare_actual_formal): If -Wsurprising |
| 781 |
is set, emit a warning if an assumed size array is passed to an |
| 782 |
assumed rank dummy. |
| 783 |
* intrinsic.cc (do_ts29113_check): Permit an assumed rank arg. |
| 784 |
for reshape if -std=f202y and the argument is contiguous. |
| 785 |
* invoke.texi : Introduce -std=f202y. Whitespace errors. |
| 786 |
* lang.opt : Accept -std=f202y. |
| 787 |
* libgfortran.h : Define GFC_STD_F202Y. |
| 788 |
* match.cc (gfc_match_associate): If -std=f202y an assumed rank |
| 789 |
selector is allowed if it is contiguous and the associate name |
| 790 |
has rank remapping specified. |
| 791 |
* options.cc (gfc_init_options): -std=f202y is equivalent to |
| 792 |
-std=f2023 with experimental f202y features. White space issues |
| 793 |
* parse.cc (parse_associate): If the selector is assumed rank, |
| 794 |
use the 'ar' field of the association list to build an array |
| 795 |
specification. |
| 796 |
* primary.cc (gfc_match_varspec): Do not resolve the assumed |
| 797 |
rank selector of a class associate name at this stage to avoid |
| 798 |
the rank change. |
| 799 |
* resolve.cc (find_array_spec): If an array_ref dimension is -1 |
| 800 |
reset it with the rank in the object's array_spec. |
| 801 |
(gfc_expression_rank): Do not check dimen types for an assumed |
| 802 |
rank variable expression. |
| 803 |
(resolve_variable): Do not emit the assumed rank context error |
| 804 |
if the context is pointer assignment and the variable is a |
| 805 |
target. |
| 806 |
(resolve_assoc_var): Resolve the bounds and check for missing |
| 807 |
bounds in the rank remap of an associate name with an assumed |
| 808 |
rank selector. Do not correct the rank of an associate name |
| 809 |
with an assumed rank selector. |
| 810 |
(resolve_symbol): Allow the reference to an assumed rank object |
| 811 |
if -std-f202y is enabled and the current operation is |
| 812 |
EXEC_BLOCK. |
| 813 |
* st.cc (gfc_free_association_list): Free bounds expressions |
| 814 |
of the 'ar' field, if present. |
| 815 |
* trans-array.cc (gfc_conv_ss_startstride): If -std=f202y and |
| 816 |
bounds checking activated, do not apply the assertion. |
| 817 |
* trans-expr.cc (gfc_trans_pointer_assignment): An assumed rank |
| 818 |
target has its offset set to zero. |
| 819 |
* trans-stmt.cc (trans_associate_var): If the selector is |
| 820 |
assumed rank, call gfc_trans_pointer_assignment using the 'ar' |
| 821 |
field in the association list as the array reference for expr1. |
| 822 |
The data target, expr2, is a copy of the selector expression. |
| 823 |
|
| 824 |
2024-10-23 Tobias Burnus <[email protected]> |
| 825 |
|
| 826 |
* error.cc (terminal_width, gfc_get_terminal_width): Remove. |
| 827 |
(gfc_error_init_1): Do not call one to set the other. |
| 828 |
|
| 829 |
2024-10-19 Tobias Burnus <[email protected]> |
| 830 |
|
| 831 |
* check.cc (is_c_interoperable): Use _(...) around to mark strings |
| 832 |
as translatable. |
| 833 |
* data.cc (gfc_assign_data_value): Move string literal to gfc_error |
| 834 |
to make it translatable. |
| 835 |
* resolve.cc (resolve_fl_variable, resolve_equivalence): Use G_(...) |
| 836 |
around string literals. |
| 837 |
* scanner.cc (skip_fixed_omp_sentinel): Replace '...' by %<...%>. |
| 838 |
* trans-openmp.cc (gfc_split_omp_clauses, |
| 839 |
gfc_trans_omp_declare_variant): Likewise. |
| 840 |
|
| 841 |
2024-10-19 Tobias Burnus <[email protected]> |
| 842 |
|
| 843 |
* data.cc (gfc_assign_data_value): Use linemap_location_before_p |
| 844 |
and GFC_LOCUS_IS_SET. |
| 845 |
* decl.cc (gfc_verify_c_interop_param): Make better translatable. |
| 846 |
(build_sym, variable_decl, gfc_match_formal_arglist, |
| 847 |
gfc_match_subroutine): Add range-based locations, use it in |
| 848 |
diagnostic and gobble whitespace for better locations. |
| 849 |
* error.cc (gfc_get_location_with_offset): Handle new format. |
| 850 |
(gfc_get_location_range): New. |
| 851 |
* expr.cc (gfc_check_assign): Use GFC_LOCUS_IS_SET. |
| 852 |
* frontend-passes.cc (check_locus_code, check_locus_expr): |
| 853 |
Likewise. |
| 854 |
(runtime_error_ne): Use GFC_LOCUS_IS_SET. |
| 855 |
* gfortran.h (locus): Change lb to union with lb and location. |
| 856 |
(GFC_LOCUS_IS_SET): Define. |
| 857 |
(gfc_get_location_range): New prototype. |
| 858 |
(gfc_new_symbol, gfc_get_symbol, gfc_get_sym_tree, |
| 859 |
gfc_get_ha_symbol, gfc_get_ha_sym_tree): Take optional locus |
| 860 |
argument. |
| 861 |
* io.cc (io_constraint): Use GFC_LOCUS_IS_SET. |
| 862 |
* match.cc (gfc_match_sym_tree): Use range locus. |
| 863 |
* openmp.cc (gfc_match_omp_variable_list, |
| 864 |
gfc_match_omp_doacross_sink): Likewise. |
| 865 |
* parse.cc (next_free): Update for locus struct change. |
| 866 |
* primary.cc (gfc_match_varspec): Likewise. |
| 867 |
(match_variable): Use range locus. |
| 868 |
* resolve.cc (find_array_spec): Use GFC_LOCUS_IS_SET. |
| 869 |
* scanner.cc (gfc_at_eof, gfc_at_bol, gfc_start_source_files, |
| 870 |
gfc_advance_line, gfc_define_undef_line, skip_fixed_comments, |
| 871 |
gfc_gobble_whitespace, include_stmt, gfc_new_file): Update |
| 872 |
for locus struct change. |
| 873 |
* symbol.cc (gfc_new_symbol, gfc_get_sym_tree, gfc_get_symbol, |
| 874 |
gfc_get_ha_sym_tree, gfc_get_ha_symbol): Take optional locus. |
| 875 |
* trans-array.cc (gfc_trans_array_constructor_value): Use %L not %C. |
| 876 |
(gfc_trans_g77_array, gfc_trans_dummy_array_bias, |
| 877 |
gfc_trans_class_array, gfc_trans_deferred_array): Replace |
| 878 |
gfc_{save,set,restore}_backend_locus by directly using |
| 879 |
input_location. |
| 880 |
* trans-common.cc (build_equiv_decl, get_init_field): Likewise. |
| 881 |
* trans-decl.cc (gfc_get_extern_function_decl, build_function_decl, |
| 882 |
build_entry_thunks, gfc_null_and_pass_deferred_len, |
| 883 |
gfc_trans_deferred_vars, gfc_trans_use_stmts, finish_oacc_declare, |
| 884 |
gfc_generate_block_data): Likewise. |
| 885 |
* trans-expr.cc (gfc_copy_class_to_class, gfc_conv_expr): Changes |
| 886 |
to avoid gfc_current_locus. |
| 887 |
* trans-io.cc (set_error_locus): Likewise. |
| 888 |
* trans-openmp.cc (gfc_trans_omp_workshare): Use input_locus directly. |
| 889 |
* trans-stmt.cc (gfc_trans_if_1): Likewise and use GFC_LOCUS_IS_SET. |
| 890 |
* trans-types.cc (gfc_get_union_type, gfc_get_derived_type): Likewise. |
| 891 |
* trans.cc (gfc_locus_from_location): New. |
| 892 |
(trans_runtime_error_vararg, gfc_trans_runtime_check): Use location_t |
| 893 |
for file + line data. |
| 894 |
(gfc_current_backend_file, gfc_save_backend_locus, |
| 895 |
gfc_set_backend_locus, gfc_restore_backend_locus): Remove. |
| 896 |
(trans_code): Use input_location directly, don't set gfc_current_locus. |
| 897 |
* trans.h (gfc_save_backend_locus, gfc_set_backend_locus, |
| 898 |
gfc_restore_backend_locus): Remove prototypes. |
| 899 |
(gfc_locus_from_location): Add prototype. |
| 900 |
|
| 901 |
2024-10-19 Thomas Koenig <[email protected]> |
| 902 |
|
| 903 |
PR fortran/117225 |
| 904 |
* primary.cc (match_sym_complex_part): An UNSIGNED in |
| 905 |
a complex part is an error. |
| 906 |
|
| 907 |
2024-10-18 Alejandro Colomar <[email protected]> |
| 908 |
|
| 909 |
* trans-array.cc (structure_alloc_comps) |
| 910 |
* trans-openmp.cc |
| 911 |
(gfc_walk_alloc_comps) |
| 912 |
(gfc_omp_clause_linear_ctor): |
| 913 |
Rename array_type_nelts => array_type_nelts_minus_one |
| 914 |
|
| 915 |
2024-10-18 Thomas Koenig <[email protected]> |
| 916 |
|
| 917 |
* error.cc (notify_std_msg): Handle GFC_STD_UNSIGNED. |
| 918 |
|
| 919 |
2024-10-17 Andre Vehreschild <[email protected]> |
| 920 |
|
| 921 |
PR fortran/80235 |
| 922 |
* trans-decl.cc (gfc_build_qualified_array): Make sure the array |
| 923 |
is associated to the correct module and being marked as extern. |
| 924 |
|
| 925 |
2024-10-15 Thomas Schwinge <[email protected]> |
| 926 |
Harald Anlauf <[email protected]> |
| 927 |
|
| 928 |
PR fortran/82250 |
| 929 |
PR fortran/82251 |
| 930 |
PR fortran/117136 |
| 931 |
* trans-expr.cc (gfc_conv_procedure_call): Initialize |
| 932 |
'is_builtin'. |
| 933 |
(conv_function_val): Clean up. |
| 934 |
|
| 935 |
2024-10-14 Andre Vehreschild <[email protected]> |
| 936 |
|
| 937 |
PR fortran/77871 |
| 938 |
* trans-expr.cc (gfc_conv_derived_to_class): Assign token when |
| 939 |
converting a coarray to class. |
| 940 |
(gfc_get_tree_for_caf_expr): For classes get the caf decl from |
| 941 |
the saved descriptor. |
| 942 |
(gfc_get_caf_token_offset):Assert that coarray=lib is set and |
| 943 |
cover more cases where the tree having the coarray token can be. |
| 944 |
* trans-intrinsic.cc (gfc_conv_intrinsic_caf_get): Use unified |
| 945 |
test for pointers. |
| 946 |
|
| 947 |
2024-10-13 Tobias Burnus <[email protected]> |
| 948 |
|
| 949 |
* gfortran.h (gfc_option_t): Add disable_acc_on_device. |
| 950 |
* options.cc (gfc_handle_option): Handle -fno-builtin-acc_on_device. |
| 951 |
* trans-decl.cc (gfc_get_extern_function_decl): Move |
| 952 |
__builtin_omp_is_initial_device handling to ... |
| 953 |
* trans-expr.cc (get_builtin_fn): ... this new function. |
| 954 |
(conv_function_val): Call it. |
| 955 |
(update_builtin_function): New. |
| 956 |
(gfc_conv_procedure_call): Call it. |
| 957 |
* types.def (BT_BOOL): Fix type by using bool_type_node. |
| 958 |
|
| 959 |
2024-10-12 Thomas Koenig <[email protected]> |
| 960 |
|
| 961 |
* dump-parse-tree.cc (get_c_type_name): Also handle BT_UNSIGNED. |
| 962 |
* gfortran.h (NAMED_UINTCST): Define before inclusion |
| 963 |
of iso-c-binding.def and iso-fortran-env.def. |
| 964 |
(gfc_get_uint_kind_from_width_isofortranenv): Prototype. |
| 965 |
* gfortran.texi: Mention new constants in iso_c_binding and |
| 966 |
iso_fortran_env. |
| 967 |
* iso-c-binding.def: Handle NAMED_UINTCST. Add c_unsigned, |
| 968 |
c_unsigned_short,c_unsigned_char, c_unsigned_long, |
| 969 |
c_unsigned_long_long, c_uintmax_t, c_uint8_t, c_uint16_t, |
| 970 |
c_uint32_t, c_uint64_t, c_uint128_t, c_uint_least8_t, |
| 971 |
c_uint_least16_t, c_uint_least32_t, c_uint_least64_t, |
| 972 |
c_uint_least128_t, c_uint_fast8_t, c_uint_fast16_t, |
| 973 |
c_uint_fast32_t, c_uint_fast64_t and c_uint_fast128_t. |
| 974 |
* iso-fortran-env.def: Handle NAMED_UINTCST. Add uint8, uint16, |
| 975 |
uint32 and uint64. |
| 976 |
* module.cc (parse_integer): Whitespace fix. |
| 977 |
(write_module): Whitespace fix. |
| 978 |
(NAMED_UINTCST): Define before inclusion of iso-fortran-evn.def |
| 979 |
and iso-fortran-env.def. |
| 980 |
* symbol.cc: Likewise. |
| 981 |
* trans-types.cc (get_unsigned_kind_from_node): New function. |
| 982 |
(get_uint_kind_from_name): New function. |
| 983 |
(gfc_get_uint_kind_from_width_isofortranenv): New function. |
| 984 |
(get_uint_kind_from_width): New function. |
| 985 |
(gfc_init_kinds): Initialize gfc_c_uint_kind. |
| 986 |
|
| 987 |
2024-10-12 Tobias Burnus <[email protected]> |
| 988 |
|
| 989 |
* openmp.cc (resolve_omp_clauses): Diagnose polymorphic mapping. |
| 990 |
* trans-openmp.cc (gfc_omp_finish_clause): Warn when |
| 991 |
polymorphic variable is implicitly mapped. |
| 992 |
|
| 993 |
2024-10-12 Tobias Burnus <[email protected]> |
| 994 |
|
| 995 |
* array.cc (gfc_match_array_constructor): Only update the |
| 996 |
character length if the expression is of character type. |
| 997 |
* error.cc (gfc_get_location_with_offset): New; split off |
| 998 |
from ... |
| 999 |
(gfc_format_decoder): ... here; call it. |
| 1000 |
* gfortran.h (gfc_get_location_with_offset): New prototype. |
| 1001 |
(gfc_get_location): New inline function. |
| 1002 |
* trans.cc (gfc_get_location): Remove function definition. |
| 1003 |
* trans.h (gfc_get_location): Remove declaration. |
| 1004 |
|
| 1005 |
2024-10-11 Thomas Koenig <[email protected]> |
| 1006 |
|
| 1007 |
* intrinsic.cc (add_functions): Convert uint and |
| 1008 |
selected_unsigned_kind to GFC_STD_UNSIGNED. |
| 1009 |
(gfc_check_intrinsic_standard): Handle GFC_STD_UNSIGNED. |
| 1010 |
* libgfortran.h (GFC_STD_UNSIGNED): Add. |
| 1011 |
* options.cc (gfc_post_options): Set GFC_STD_UNSIGNED |
| 1012 |
if -funsigned is set. |
| 1013 |
|
| 1014 |
2024-10-11 Tobias Burnus <[email protected]> |
| 1015 |
|
| 1016 |
* error.cc (error_char, error_string, error_uinteger, error_integer, |
| 1017 |
error_hwuint, error_hwint, gfc_widechar_display_length, |
| 1018 |
gfc_wide_display_length, error_printf, show_locus, show_loci): |
| 1019 |
Remove unused static functions. |
| 1020 |
(IBUF_LEN, MAX_ARGS): Remove now unused #define. |
| 1021 |
|
| 1022 |
2024-10-08 Andre Vehreschild <[email protected]> |
| 1023 |
|
| 1024 |
PR fortran/51815 |
| 1025 |
* array.cc (gfc_match_array_ref): Only parse coarray part of |
| 1026 |
ref. |
| 1027 |
* match.h (gfc_match_array_ref): Add flag. |
| 1028 |
* primary.cc (gfc_match_varspec): Request only coarray ref |
| 1029 |
parsing when no regular array is present. Report error on |
| 1030 |
unexpected additional ref. |
| 1031 |
|
| 1032 |
2024-10-07 Thomas Koenig <[email protected]> |
| 1033 |
|
| 1034 |
* check.cc (gfc_check_minloc_maxloc): Handle BT_UNSIGNED. |
| 1035 |
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Likewise. |
| 1036 |
* gfortran.texi: Document MAXLOC and MINLOC for UNSIGNED. |
| 1037 |
|
| 1038 |
2024-10-07 Tobias Burnus <[email protected]> |
| 1039 |
|
| 1040 |
* openmp.cc (is_predefined_allocator): Use gomp-constants.h consts. |
| 1041 |
* trans-common.cc (translate_common): Reject OpenMP allocate directives. |
| 1042 |
* trans-decl.cc (gfc_finish_var_decl): Handle allocate directive |
| 1043 |
for static variables. |
| 1044 |
(gfc_trans_deferred_vars): Update for the latter. |
| 1045 |
|
| 1046 |
2024-10-01 Thomas Koenig <[email protected]> |
| 1047 |
|
| 1048 |
* check.cc (int_or_real_or_char_or_unsigned_check_f2003): New function. |
| 1049 |
(gfc_check_minval_maxval): Use it. |
| 1050 |
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxval): Handle |
| 1051 |
initial values for UNSIGNED. |
| 1052 |
* gfortran.texi: Document MINVAL and MAXVAL for unsigned. |
| 1053 |
|
| 1054 |
2024-09-30 David Malcolm <[email protected]> |
| 1055 |
|
| 1056 |
PR other/116613 |
| 1057 |
* error.cc (gfc_diagnostic_build_locus_prefix): Convert first |
| 1058 |
param from diagnostic_context * to |
| 1059 |
const diagnostic_location_print_policy &. Add colorize param. |
| 1060 |
Likewise for the "two expanded_locations" overload. |
| 1061 |
(gfc_diagnostic_text_starter): Update for above changes. |
| 1062 |
(gfc_diagnostic_start_span): Update for change to callback type. |
| 1063 |
|
| 1064 |
2024-09-30 Andre Vehreschild <[email protected]> |
| 1065 |
|
| 1066 |
PR fortran/81265 |
| 1067 |
* trans-expr.cc (gfc_conv_procedure_call): Ensure coarrays use a |
| 1068 |
descriptor when passed. |
| 1069 |
|
| 1070 |
2024-09-28 Thomas Koenig <[email protected]> |
| 1071 |
|
| 1072 |
* check.cc (intrinsic_type_check): Handle unsigned. |
| 1073 |
(gfc_check_findloc): Likewise. |
| 1074 |
* gfortran.texi: Include FINDLOC in unsigned documentation. |
| 1075 |
* iresolve.cc (gfc_resolve_findloc): Use INTEGER version |
| 1076 |
for UNSIGNED. |
| 1077 |
|
| 1078 |
2024-09-28 Thomas Koenig <[email protected]> |
| 1079 |
|
| 1080 |
* check.cc (gfc_check_eoshift): Handle BT_UNSIGNED. |
| 1081 |
* simplify.cc (gfc_simplify_eoshift): Likewise. |
| 1082 |
* gfortran.texi: Document CSHIFT and EOSHIFT for UNSIGNED. |
| 1083 |
|
| 1084 |
2024-09-26 Mikael Morin <[email protected]> |
| 1085 |
|
| 1086 |
* invoke.texi (-M): Remove index reference to removed documentation. |
| 1087 |
|
| 1088 |
2024-09-25 Mikael Morin <[email protected]> |
| 1089 |
|
| 1090 |
PR other/116801 |
| 1091 |
* invoke.texi: Remove @code wrapping in arguments to @opindex. |
| 1092 |
(std=): Remove spurious 'option' in index. |
| 1093 |
(idirafter, imultilib, iprefix, isysroot, iquote, isystem, |
| 1094 |
fintrinsic-modules-path): Remove variable from index. |
| 1095 |
* lang.opt.urls: Regenerate. |
| 1096 |
|
| 1097 |
2024-09-25 Tobias Burnus <[email protected]> |
| 1098 |
|
| 1099 |
* parse.cc (decode_omp_directive): Set target-used bit of |
| 1100 |
omp_requires_mask when encountering the declare_target or interop |
| 1101 |
directive. |
| 1102 |
|
| 1103 |
2024-09-24 Thomas Koenig <[email protected]> |
| 1104 |
|
| 1105 |
* check.cc (gfc_check_random_number): Adjust for unsigned. |
| 1106 |
* iresolve.cc (gfc_resolve_random_number): Handle unsigned. |
| 1107 |
* trans-expr.cc (gfc_conv_expr_op): Handle BT_UNSIGNED for divide. |
| 1108 |
* trans-types.cc (gfc_get_dtype_rank_type): Handle BT_UNSIGNED. |
| 1109 |
* gfortran.texi: Add RANDOM_NUMBER for UNSIGNED. |
| 1110 |
|
| 1111 |
2024-09-24 Thomas Koenig <[email protected]> |
| 1112 |
|
| 1113 |
* check.cc (gfc_check_transf_bit_intrins): Handle unsigned. |
| 1114 |
* gfortran.texi: Docment IANY, IALL and IPARITY for unsigned. |
| 1115 |
* iresolve.cc (gfc_resolve_iall): Set flag to use integer |
| 1116 |
if type is BT_UNSIGNED. |
| 1117 |
(gfc_resolve_iany): Likewise. |
| 1118 |
(gfc_resolve_iparity): Likewise. |
| 1119 |
* simplify.cc (do_bit_and): Adjust asserts for BT_UNSIGNED. |
| 1120 |
(do_bit_ior): Likewise. |
| 1121 |
(do_bit_xor): Likewise |
| 1122 |
|
| 1123 |
2024-09-24 Thomas Koenig <[email protected]> |
| 1124 |
|
| 1125 |
* gfortran.texi: Document SUM and PRODUCT. |
| 1126 |
* iresolve.cc (resolve_transformational): New argument, |
| 1127 |
use_integer, to translate calls to unsigned to calls to |
| 1128 |
integer. |
| 1129 |
(gfc_resolve_product): Use it |
| 1130 |
(gfc_resolve_sum): Use it. |
| 1131 |
* simplify.cc (init_result_expr): Handle BT_UNSIGNED. |
| 1132 |
|
| 1133 |
2024-09-24 Thomas Koenig <[email protected]> |
| 1134 |
|
| 1135 |
* arith.cc (gfc_arith_uminus): Fix warning. |
| 1136 |
(gfc_arith_minus): Correctly truncate unsigneds. |
| 1137 |
* check.cc (gfc_check_dot_product): Handle unsigned arguments. |
| 1138 |
(gfc_check_matmul): Likewise. |
| 1139 |
* expr.cc (gfc_get_unsigned_expr): New function. |
| 1140 |
* gfortran.h (gfc_get_unsigned_expr): Add prototype. |
| 1141 |
* iresolve.cc (gfc_resolve_matmul): If using UNSIGNED, use the |
| 1142 |
signed integer version. |
| 1143 |
* gfortran.texi: Document MATMUL and DOT_PRODUCT for unsigned. |
| 1144 |
* simplify.cc (compute_dot_product): Handle unsigneds. |
| 1145 |
|
| 1146 |
2024-09-24 Andre Vehreschild <[email protected]> |
| 1147 |
|
| 1148 |
PR fortran/101100 |
| 1149 |
* trans-expr.cc (trans_caf_token_assign): Take caf-token from |
| 1150 |
decl for non ultimate coarray components. |
| 1151 |
|
| 1152 |
2024-09-24 Andre Vehreschild <[email protected]> |
| 1153 |
|
| 1154 |
PR fortran/84870 |
| 1155 |
* trans-array.cc (duplicate_allocatable_coarray): For scalar |
| 1156 |
allocatable components the memory allocated is now assigned to |
| 1157 |
the component's pointer. |
| 1158 |
|
| 1159 |
2024-09-24 Tobias Burnus <[email protected]> |
| 1160 |
|
| 1161 |
* gfortran.h (enum gfc_omp_requires_kind): Add OMP_REQ_SELF_MAPS. |
| 1162 |
(gfc_namespace): Enlarge omp_requires bitfield. |
| 1163 |
* module.cc (enum ab_attribute, attr_bits): Add AB_OMP_REQ_SELF_MAPS. |
| 1164 |
(mio_symbol_attribute): Handle it. |
| 1165 |
* openmp.cc (gfc_check_omp_requires, gfc_match_omp_requires): Handle |
| 1166 |
self_maps clause. |
| 1167 |
* parse.cc (gfc_parse_file): Handle self_maps clause. |
| 1168 |
|
| 1169 |
2024-09-21 Mikael Morin <[email protected]> |
| 1170 |
|
| 1171 |
PR fortran/90608 |
| 1172 |
* invoke.texi(finline-intrinsics): Document new flag. |
| 1173 |
* lang.opt (finline-intrinsics, finline-intrinsics=, |
| 1174 |
fno-inline-intrinsics): New flags. |
| 1175 |
* options.cc (gfc_post_options): If the option variable controlling |
| 1176 |
the inlining of MAXLOC (respectively MINLOC) has not been set, set |
| 1177 |
it or clear it depending on the optimization option variables. |
| 1178 |
* trans-intrinsic.cc (gfc_inline_intrinsic_function_p): Return false |
| 1179 |
if inlining for the intrinsic is disabled according to the option |
| 1180 |
variable. |
| 1181 |
|
| 1182 |
2024-09-21 Mikael Morin <[email protected]> |
| 1183 |
|
| 1184 |
PR fortran/90608 |
| 1185 |
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Generate a set |
| 1186 |
of index variables. Set them using the loop indexes before leaving |
| 1187 |
the first set of loops. Generate a new loop entry predicate. |
| 1188 |
Initialize it. Set it before leaving the first set of loops. Clear |
| 1189 |
it in the body of the second set of loops. For the second set of |
| 1190 |
loops, update each loop lower bound to use the corresponding index |
| 1191 |
variable if the predicate variable is set. |
| 1192 |
|
| 1193 |
2024-09-21 Mikael Morin <[email protected]> |
| 1194 |
|
| 1195 |
PR fortran/90608 |
| 1196 |
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Initialize |
| 1197 |
and update all the variables. Put the label and goto in the |
| 1198 |
outermost scalarizer loop. Don't start the second loop where the |
| 1199 |
first stopped. |
| 1200 |
(gfc_inline_intrinsic_function_p): Also return TRUE for array MASK |
| 1201 |
or for any REAL type. |
| 1202 |
|
| 1203 |
2024-09-21 Mikael Morin <[email protected]> |
| 1204 |
|
| 1205 |
PR fortran/90608 |
| 1206 |
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Generate |
| 1207 |
variable initialization for each dimension in the else branch of |
| 1208 |
the toplevel condition. |
| 1209 |
(gfc_inline_intrinsic_function_p): Return TRUE for scalar MASK. |
| 1210 |
|
| 1211 |
2024-09-21 Mikael Morin <[email protected]> |
| 1212 |
|
| 1213 |
PR fortran/90608 |
| 1214 |
* trans-array.cc (gfc_conv_ss_startstride): Set the MINLOC/MAXLOC |
| 1215 |
result upper bound using the rank of the ARRAY argument. Ajdust |
| 1216 |
the error message for intrinsic result arrays. Only check array |
| 1217 |
bounds for array references. Move bound check decision code... |
| 1218 |
(bounds_check_needed): ... here as a new predicate. Allow bound |
| 1219 |
check for MINLOC/MAXLOC intrinsic results. |
| 1220 |
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Change the |
| 1221 |
result array upper bound to the rank of ARRAY. Update the NONEMPTY |
| 1222 |
variable to depend on the non-empty extent of every dimension. Use |
| 1223 |
one variable per dimension instead of a single variable for the |
| 1224 |
position and the offset. Update their declaration, initialization, |
| 1225 |
and update to affect the variable of each dimension. Use the first |
| 1226 |
variable only in areas only accessed with rank 1 ARRAY argument. |
| 1227 |
Set every element of the result using its corresponding variable. |
| 1228 |
(gfc_inline_intrinsic_function_p): Return true for integral ARRAY |
| 1229 |
and absent DIM and MASK. |
| 1230 |
|
| 1231 |
2024-09-21 Mikael Morin <[email protected]> |
| 1232 |
|
| 1233 |
* trans-array.cc (gfc_conv_ss_startstride): Move array bound check |
| 1234 |
generation code... |
| 1235 |
(add_check_section_in_array_bounds): ... here as a new function. |
| 1236 |
|
| 1237 |
2024-09-21 Mikael Morin <[email protected]> |
| 1238 |
|
| 1239 |
* frontend-passes.cc (optimize_minmaxloc): Remove. |
| 1240 |
(optimize_expr): Remove dispatch to optimize_minmaxloc. |
| 1241 |
|
| 1242 |
2024-09-21 Mikael Morin <[email protected]> |
| 1243 |
|
| 1244 |
PR fortran/90608 |
| 1245 |
* trans-array.cc (gfc_conv_ss_startstride): Set the scalarization |
| 1246 |
rank based on the MINLOC/MAXLOC rank if needed. Call the inline |
| 1247 |
code generation and setup the scalarizer array descriptor info |
| 1248 |
in the MINLOC and MAXLOC cases. |
| 1249 |
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Return the |
| 1250 |
result array element if the scalarizer is setup and we are inside |
| 1251 |
the loops. Restrict library function call dispatch to the case |
| 1252 |
where inline expansion is not supported. Declare an array result |
| 1253 |
if the expression isn't scalar. Initialize the array result single |
| 1254 |
element and return the result variable if the expression isn't |
| 1255 |
scalar. |
| 1256 |
(walk_inline_intrinsic_minmaxloc): New function. |
| 1257 |
(walk_inline_intrinsic_function): Add MINLOC and MAXLOC cases, |
| 1258 |
dispatching to walk_inline_intrinsic_minmaxloc. |
| 1259 |
(gfc_add_intrinsic_ss_code): Add MINLOC and MAXLOC cases. |
| 1260 |
(gfc_inline_intrinsic_function_p): Return true if ARRAY has rank 1, |
| 1261 |
regardless of DIM. |
| 1262 |
|
| 1263 |
2024-09-21 Mikael Morin <[email protected]> |
| 1264 |
|
| 1265 |
PR fortran/90608 |
| 1266 |
* frontend-passes.cc (optimize_minmaxloc): Skip if we can generate |
| 1267 |
inline code for the unmodified expression. |
| 1268 |
* trans-intrinsic.cc (gfc_inline_intrinsic_function_p): Add |
| 1269 |
MINLOC and MAXLOC cases. |
| 1270 |
|
| 1271 |
2024-09-20 David Malcolm <[email protected]> |
| 1272 |
|
| 1273 |
PR other/116613 |
| 1274 |
* error.cc: Include "diagnostic-format-text.h". |
| 1275 |
(gfc_diagnostic_starter): Rename to... |
| 1276 |
(gfc_diagnostic_text_starter): ...this. Convert first |
| 1277 |
param from diagnostic_context * to diagnostic_text_output_format & |
| 1278 |
and update accordingly. |
| 1279 |
(gfc_diagnostic_finalizer, gfc_diagnostic_text_finalizer): |
| 1280 |
Likewise. |
| 1281 |
(gfc_diagnostics_init): Update for renamings. |
| 1282 |
(gfc_diagnostics_finish): Likewise. |
| 1283 |
|
| 1284 |
2024-09-19 Andre Vehreschild <[email protected]> |
| 1285 |
|
| 1286 |
PR fortran/106606 |
| 1287 |
* trans-types.cc (gfc_get_derived_type): Only build non-pointer |
| 1288 |
derived types as component's types when they are not yet built. |
| 1289 |
|
| 1290 |
2024-09-19 Andre Vehreschild <[email protected]> |
| 1291 |
|
| 1292 |
PR fortran/85002 |
| 1293 |
* trans-array.cc (duplicate_allocatable_coarray): Allow adding |
| 1294 |
of deep copy code in the when-allocated case. Add bounds |
| 1295 |
computation before condition, because coarrays need the bounds |
| 1296 |
also when not allocated. |
| 1297 |
(structure_alloc_comps): Duplication in the coarray case is done |
| 1298 |
already, omit it. Add the deep-code when duplication a coarray. |
| 1299 |
* trans-expr.cc (gfc_trans_structure_assign): Fix comment. |
| 1300 |
|
| 1301 |
2024-09-15 Mikael Morin <[email protected]> |
| 1302 |
|
| 1303 |
* trans-expr.cc (gfc_advance_se_ss_chain): Don't use an element |
| 1304 |
from the parent scalarization chain when the current chain reaches |
| 1305 |
its end. |
| 1306 |
|
| 1307 |
2024-09-13 Tobias Burnus <[email protected]> |
| 1308 |
|
| 1309 |
PR fortran/116661 |
| 1310 |
* gfortran.h (gfc_omp_namelist): Rename 'init' members for clarity. |
| 1311 |
* match.cc (gfc_free_omp_namelist): Handle renaming. |
| 1312 |
* dump-parse-tree.cc (show_omp_namelist): Update for new format |
| 1313 |
and features. |
| 1314 |
* openmp.cc (gfc_match_omp_prefer_type): Parse list to 'fr' and 'attr'; |
| 1315 |
store 'fr' values as integer. |
| 1316 |
(gfc_match_omp_init): Rename variable names. |
| 1317 |
|
| 1318 |
2024-09-12 Steven G. Kargl <[email protected]> |
| 1319 |
|
| 1320 |
* module.cc (bt_types): Add BT_UNSIGNED. |
| 1321 |
|
| 1322 |
2024-09-11 Tobias Burnus <[email protected]> |
| 1323 |
|
| 1324 |
PR fortran/116661 |
| 1325 |
* openmp.cc (gfc_match_omp_prefer_type): NULL init a gfc_expr |
| 1326 |
variable and use right locus in gfc_error. |
| 1327 |
|
| 1328 |
2024-09-09 David Malcolm <[email protected]> |
| 1329 |
|
| 1330 |
* cpp.cc (cb_cpp_diagnostic_cpp_option): Convert return type from |
| 1331 |
"int" to "diagnostic_option_id". |
| 1332 |
(cb_cpp_diagnostic): Update for renaming of |
| 1333 |
diagnostic_override_option_index to diagnostic_set_option_id. |
| 1334 |
* error.cc (gfc_warning): Update for renaming of diagnostic_info |
| 1335 |
field. |
| 1336 |
(gfc_warning_now_at): Likewise. |
| 1337 |
(gfc_warning_now): Likewise. |
| 1338 |
(gfc_warning_internal): Likewise. |
| 1339 |
|
| 1340 |
2024-09-09 David Malcolm <[email protected]> |
| 1341 |
|
| 1342 |
PR other/116613 |
| 1343 |
* error.cc (gfc_clear_pp_buffer): Rename diagnostic_context's |
| 1344 |
"printer" field to "m_printer". |
| 1345 |
(gfc_warning): Likewise. |
| 1346 |
(gfc_diagnostic_build_kind_prefix): Likewise. |
| 1347 |
(gfc_diagnostic_build_locus_prefix): Likewise. |
| 1348 |
(gfc_diagnostic_starter): Likewise. |
| 1349 |
(gfc_diagnostic_starter): Likewise. |
| 1350 |
(gfc_diagnostic_start_span): Likewise. |
| 1351 |
(gfc_diagnostic_finalizer): Likewise. |
| 1352 |
(gfc_warning_check): Likewise. |
| 1353 |
(gfc_error_opt): Likewise. |
| 1354 |
(gfc_error_check): Likewise. |
| 1355 |
|
| 1356 |
2024-09-07 Thomas Koenig <[email protected]> |
| 1357 |
|
| 1358 |
* arith.cc (gfc_reduce_unsigned): New function. |
| 1359 |
(gfc_arith_error): Add ARITH_UNSIGNED_TRUNCATED and |
| 1360 |
ARITH_UNSIGNED_NEGATIVE. |
| 1361 |
(gfc_arith_init_1): Initialize unsigned types. |
| 1362 |
(gfc_check_unsigned_range): New function. |
| 1363 |
(gfc_range_check): Handle unsigned types. |
| 1364 |
(gfc_arith_uminus): Likewise. |
| 1365 |
(gfc_arith_plus): Likewise. |
| 1366 |
(gfc_arith_minus): Likewise. |
| 1367 |
(gfc_arith_times): Likewise. |
| 1368 |
(gfc_arith_divide): Likewise. |
| 1369 |
(gfc_compare_expr): Likewise. |
| 1370 |
(eval_intrinsic): Likewise. |
| 1371 |
(gfc_int2int): Also convert unsigned. |
| 1372 |
(gfc_uint2uint): New function. |
| 1373 |
(gfc_int2uint): New function. |
| 1374 |
(gfc_uint2int): New function. |
| 1375 |
(gfc_uint2real): New function. |
| 1376 |
(gfc_uint2complex): New function. |
| 1377 |
(gfc_real2uint): New function. |
| 1378 |
(gfc_complex2uint): New function. |
| 1379 |
(gfc_log2uint): New function. |
| 1380 |
(gfc_uint2log): New function. |
| 1381 |
* arith.h (gfc_int2uint, gfc_uint2uint, gfc_uint2int, gfc_uint2real): |
| 1382 |
Add prototypes. |
| 1383 |
(gfc_uint2complex, gfc_real2uint, gfc_complex2uint, gfc_log2uint): |
| 1384 |
Likewise. |
| 1385 |
(gfc_uint2log): Likewise. |
| 1386 |
* check.cc (gfc_boz2uint): New function |
| 1387 |
(type_check2): New function. |
| 1388 |
(int_or_real_or_unsigned_check): New function. |
| 1389 |
(less_than_bitsizekind): Adjust for unsingeds. |
| 1390 |
(less_than_bitsize2): Likewise. |
| 1391 |
(gfc_check_allocated): Likewise. |
| 1392 |
(gfc_check_mod): Likewise. |
| 1393 |
(gfc_check_bge_bgt_ble_blt): Likewise. |
| 1394 |
(gfc_check_bitfcn): Likewise. |
| 1395 |
(gfc_check_digits): Likewise. |
| 1396 |
(gfc_check_dshift): Likewise. |
| 1397 |
(gfc_check_huge): Likewise. |
| 1398 |
(gfc_check_iu): New function. |
| 1399 |
(gfc_check_iand_ieor_ior): Adjust for unsigneds. |
| 1400 |
(gfc_check_ibits): Likewise. |
| 1401 |
(gfc_check_uint): New function. |
| 1402 |
(gfc_check_ishft): Adjust for unsigneds. |
| 1403 |
(gfc_check_ishftc): Likewise. |
| 1404 |
(gfc_check_min_max): Likewise. |
| 1405 |
(gfc_check_merge_bits): Likewise. |
| 1406 |
(gfc_check_selected_int_kind): Likewise. |
| 1407 |
(gfc_check_shift): Likewise. |
| 1408 |
(gfc_check_mvbits): Likewise. |
| 1409 |
(gfc_invalid_unsigned_ops): Likewise. |
| 1410 |
* decl.cc (gfc_match_decl_type_spec): Likewise. |
| 1411 |
* dump-parse-tree.cc (show_expr): Likewise. |
| 1412 |
* expr.cc (gfc_get_constant_expr): Likewise. |
| 1413 |
(gfc_copy_expr): Likewise. |
| 1414 |
(gfc_extract_int): Likewise. |
| 1415 |
(numeric_type): Likewise. |
| 1416 |
* gfortran.h (enum arith): Extend with ARITH_UNSIGNED_TRUNCATED |
| 1417 |
and ARITH_UNSIGNED_NEGATIVE. |
| 1418 |
(enum gfc_isym_id): Extend with GFC_ISYM_SU_KIND and GFC_ISYM_UINT. |
| 1419 |
(gfc_check_unsigned_range): New prototype- |
| 1420 |
(gfc_arith_error): Likewise. |
| 1421 |
(gfc_reduce_unsigned): Likewise. |
| 1422 |
(gfc_boz2uint): Likewise. |
| 1423 |
(gfc_invalid_unsigned_ops): Likewise. |
| 1424 |
(gfc_convert_mpz_to_unsigned): Likewise. |
| 1425 |
* gfortran.texi: Add some rudimentary documentation. |
| 1426 |
* intrinsic.cc (gfc_type_letter): Adjust for unsigneds. |
| 1427 |
(add_functions): Add uint and adjust functions to be called. |
| 1428 |
(add_conversions): Add unsigned conversions. |
| 1429 |
(gfc_convert_type_warn): Adjust for unsigned. |
| 1430 |
* intrinsic.h (gfc_check_iu, gfc_check_uint, gfc_check_mod, gfc_simplify_uint, |
| 1431 |
gfc_simplify_selected_unsigned_kind, gfc_resolve_uint): New prototypes. |
| 1432 |
* invoke.texi: Add -funsigned. |
| 1433 |
* iresolve.cc (gfc_resolve_dshift): Handle unsigneds. |
| 1434 |
(gfc_resolve_iand): Handle unsigneds. |
| 1435 |
(gfc_resolve_ibclr): Handle unsigneds. |
| 1436 |
(gfc_resolve_ibits): Handle unsigneds. |
| 1437 |
(gfc_resolve_ibset): Handle unsigneds. |
| 1438 |
(gfc_resolve_ieor): Handle unsigneds. |
| 1439 |
(gfc_resolve_ior): Handle unsigneds. |
| 1440 |
(gfc_resolve_uint): Handle unsigneds. |
| 1441 |
(gfc_resolve_merge_bits): Handle unsigneds. |
| 1442 |
(gfc_resolve_not): Handle unsigneds. |
| 1443 |
* lang.opt: Add -funsigned. |
| 1444 |
* libgfortran.h: Add BT_UNSIGNED. |
| 1445 |
* match.cc (gfc_match_type_spec): Match UNSIGNED. |
| 1446 |
* misc.cc (gfc_basic_typename): Add UNSIGNED. |
| 1447 |
(gfc_typename): Likewise. |
| 1448 |
* primary.cc (convert_unsigned): New function. |
| 1449 |
(match_unsigned_constant): New function. |
| 1450 |
(gfc_match_literal_constant): Handle unsigned. |
| 1451 |
* resolve.cc (resolve_operator): Handle unsigned. |
| 1452 |
(resolve_ordinary_assign): Likewise. |
| 1453 |
* simplify.cc (convert_mpz_to_unsigned): Renamed to... |
| 1454 |
(gfc_convert_mpz_to_unsigned): and adjusted. |
| 1455 |
(gfc_simplify_bit_size): Adjusted for unsigned. |
| 1456 |
(compare_bitwise): Likewise. |
| 1457 |
(gfc_simplify_bge): Likewise. |
| 1458 |
(gfc_simplify_bgt): Likewise. |
| 1459 |
(gfc_simplify_ble): Likewise. |
| 1460 |
(gfc_simplify_blt): Likewise. |
| 1461 |
(simplify_cmplx): Likewise. |
| 1462 |
(gfc_simplify_digits): Likewise. |
| 1463 |
(simplify_dshift): Likewise. |
| 1464 |
(gfc_simplify_huge): Likewise. |
| 1465 |
(gfc_simplify_iand): Likewise. |
| 1466 |
(gfc_simplify_ibclr): Likewise. |
| 1467 |
(gfc_simplify_ibits): Likewise. |
| 1468 |
(gfc_simplify_ibset): Likewise. |
| 1469 |
(gfc_simplify_ieor): Likewise. |
| 1470 |
(gfc_simplify_uint): Likewise. |
| 1471 |
(gfc_simplify_ior): Likewise. |
| 1472 |
(simplify_shift): Likewise. |
| 1473 |
(gfc_simplify_ishftc): Likewise. |
| 1474 |
(gfc_simplify_merge_bits): Likewise. |
| 1475 |
(min_max_choose): Likewise. |
| 1476 |
(gfc_simplify_mod): Likewise. |
| 1477 |
(gfc_simplify_modulo): Likewise. |
| 1478 |
(gfc_simplify_popcnt): Likewise. |
| 1479 |
(gfc_simplify_range): Likewise. |
| 1480 |
(gfc_simplify_selected_unsigned_kind): Likewise. |
| 1481 |
(gfc_convert_constant): Likewise. |
| 1482 |
* target-memory.cc (size_unsigned): New function. |
| 1483 |
(gfc_element_size): Adjust for unsigned. |
| 1484 |
* trans-const.h (gfc_conv_mpz_unsigned_to_tree): Add prototype. |
| 1485 |
* trans-const.cc (gfc_conv_mpz_unsigned_to_tree): Handle unsigneds. |
| 1486 |
(gfc_conv_constant_to_tree): Likewise. |
| 1487 |
* trans-decl.cc (gfc_conv_cfi_to_gfc): Put in "not yet implemented". |
| 1488 |
* trans-expr.cc (gfc_conv_gfc_desc_to_cfi_desc): Likewise. |
| 1489 |
* trans-stmt.cc (gfc_trans_integer_select): Handle unsigned. |
| 1490 |
(gfc_trans_select): Likewise. |
| 1491 |
* trans-intrinsic.cc (gfc_conv_intrinsic_mod): Handle unsigned. |
| 1492 |
(gfc_conv_intrinsic_shift): Likewise. |
| 1493 |
(gfc_conv_intrinsic_function): Add GFC_ISYM_UINT. |
| 1494 |
* trans-io.cc (enum iocall): Add IOCALL_X_UNSIGNED and IOCALL_X_UNSIGNED_WRITE. |
| 1495 |
(gfc_build_io_library_fndecls): Add transfer_unsigned and transfer_unsigned_write. |
| 1496 |
(transfer_expr): Handle unsigneds. |
| 1497 |
* trans-types.cc (gfc_unsinged_kinds): New array. |
| 1498 |
(gfc_unsigned_types): Likewise. |
| 1499 |
(gfc_init_kinds): Handle them. |
| 1500 |
(validate_unsigned): New function. |
| 1501 |
(gfc_validate_kind): Use it. |
| 1502 |
(gfc_build_unsigned_type): New function. |
| 1503 |
(gfc_init_types): Use it. |
| 1504 |
(gfc_get_unsigned_type): New function. |
| 1505 |
(gfc_typenode_for_spec): Handle unsigned. |
| 1506 |
* trans-types.h (gfc_get_unsigned_type): New prototype. |
| 1507 |
|
| 1508 |
2024-09-06 Tobias Burnus <[email protected]> |
| 1509 |
|
| 1510 |
* dump-parse-tree.cc (show_omp_namelist): Handle OMP_LIST_INIT. |
| 1511 |
(show_omp_clauses): Handle OMP_LIST_{INIT,USE,DESTORY}; move 'nowait' |
| 1512 |
from end-directive to the directive dump. |
| 1513 |
(show_omp_node, show_code_node): Handle EXEC_OMP_INTEROP. |
| 1514 |
* gfortran.h (enum gfc_statement): Add ST_OMP_INTEROP. |
| 1515 |
(OMP_LIST_INIT, OMP_LIST_USE, OMP_LIST_DESTROY): Add. |
| 1516 |
(enum gfc_exec_op): Add EXEC_OMP_INTEROP. |
| 1517 |
(struct gfc_omp_namelist): Add interop items to union. |
| 1518 |
(gfc_free_omp_namelist): Add boolean arg. |
| 1519 |
* match.cc (gfc_free_omp_namelist): Update to free |
| 1520 |
interop union members. |
| 1521 |
* match.h (gfc_match_omp_interop): New. |
| 1522 |
* openmp.cc (gfc_omp_directives): Uncomment 'interop' entry. |
| 1523 |
(gfc_free_omp_clauses, gfc_match_omp_allocate, |
| 1524 |
gfc_match_omp_flush, gfc_match_omp_clause_reduction): Update |
| 1525 |
call. |
| 1526 |
(enum omp_mask2): Add OMP_CLAUSE_{INIT,USE,DESTROY}. |
| 1527 |
(OMP_INTEROP_CLAUSES): Use it. |
| 1528 |
(gfc_match_omp_clauses): Match those clauses. |
| 1529 |
(gfc_match_omp_prefer_type, gfc_match_omp_init, |
| 1530 |
gfc_match_omp_interop): New. |
| 1531 |
(resolve_omp_clauses): Handle interop clauses. |
| 1532 |
(omp_code_to_statement): Add ST_OMP_INTEROP. |
| 1533 |
(gfc_resolve_omp_directive): Add EXEC_OMP_INTEROP. |
| 1534 |
* parse.cc (decode_omp_directive): Parse 'interop' directive. |
| 1535 |
(next_statement, gfc_ascii_statement): Handle ST_OMP_INTEROP. |
| 1536 |
* st.cc (gfc_free_statement): Likewise |
| 1537 |
* resolve.cc (gfc_resolve_code): Handle EXEC_OMP_INTEROP. |
| 1538 |
* trans.cc (trans_code): Likewise. |
| 1539 |
* trans-openmp.cc (gfc_trans_omp_directive): Print 'sorry' |
| 1540 |
for EXEC_OMP_INTEROP. |
| 1541 |
|
| 1542 |
2024-09-05 Harald Anlauf <[email protected]> |
| 1543 |
|
| 1544 |
PR fortran/100273 |
| 1545 |
* trans-decl.cc (gfc_create_module_variable): Handle module |
| 1546 |
variable also when it is needed for the result specification |
| 1547 |
of a contained function. |
| 1548 |
|
| 1549 |
2024-09-03 David Malcolm <[email protected]> |
| 1550 |
|
| 1551 |
* error.cc (gfc_move_error_buffer_from_to): Prefix all |
| 1552 |
output_buffer fields with "m_". |
| 1553 |
(gfc_diagnostics_init): Likewise. |
| 1554 |
|
| 1555 |
2024-08-31 Harald Anlauf <[email protected]> |
| 1556 |
|
| 1557 |
* match.cc (gfc_match_namelist): Downgrade feature from GNU to |
| 1558 |
legacy extension. |
| 1559 |
|
| 1560 |
2024-08-30 Harald Anlauf <[email protected]> |
| 1561 |
|
| 1562 |
PR fortran/98454 |
| 1563 |
* resolve.cc (resolve_symbol): Add default-initialization of |
| 1564 |
non-allocatable, non-pointer derived-type function results. |
| 1565 |
|
| 1566 |
2024-08-29 David Malcolm <[email protected]> |
| 1567 |
|
| 1568 |
* error.cc (gfc_format_decoder): Convert final param from |
| 1569 |
const char **buffer_ptr to pp_token_list &formatted_token_list, |
| 1570 |
and update call to default_tree_printer accordingly. |
| 1571 |
|
| 1572 |
2024-08-29 Harald Anlauf <[email protected]> |
| 1573 |
|
| 1574 |
PR fortran/116530 |
| 1575 |
* trans-io.cc (transfer_namelist_element): Prevent NULL pointer |
| 1576 |
dereference. |
| 1577 |
|
| 1578 |
2024-08-23 Paul Thomas <[email protected]> |
| 1579 |
|
| 1580 |
Revert: |
| 1581 |
2024-08-06 Paul Thomas <[email protected]> |
| 1582 |
|
| 1583 |
PR fortran/102689 |
| 1584 |
* trans-array.cc (get_array_ref_dim_for_loop_dim): Use the arg1 |
| 1585 |
class container carried in ss->info as the seed for a lhs in |
| 1586 |
class valued transformational intrinsic calls that are not the |
| 1587 |
rhs of an assignment. Otherwise, the lhs variable expression is |
| 1588 |
taken from the loop chain. For this latter case, the _vptr and |
| 1589 |
_len fields are set. |
| 1590 |
(gfc_trans_create_temp_array): Use either the lhs expression |
| 1591 |
seeds to build a class variable that will take the returned |
| 1592 |
descriptor as its _data field. In the case that the arg1 expr. |
| 1593 |
is used, a class typespec must be built with the correct rank |
| 1594 |
and the _vptr and _len fields set. The element size is provided |
| 1595 |
for the temporary allocation and to set the descriptor span. |
| 1596 |
(gfc_array_init_size): When an intrinsic type scalar expr3 is |
| 1597 |
used in allocation of a class array, use its element size in |
| 1598 |
the descriptor dtype. |
| 1599 |
* trans-expr.cc (gfc_conv_class_to_class): Class valued |
| 1600 |
transformational intrinsics return the pointer to the array |
| 1601 |
descriptor as the _data field of a class temporary. Extract |
| 1602 |
directly and return the address of the class temporary. |
| 1603 |
(gfc_conv_procedure_call): store the expression for the first |
| 1604 |
argument of a class valued transformational intrinsic function |
| 1605 |
in the ss info class_container field. Later, use its type as |
| 1606 |
the element type in the call to gfc_trans_create_temp_array. |
| 1607 |
(fcncall_realloc_result): Add a dtype argument and use it in |
| 1608 |
the descriptor, when available. |
| 1609 |
(gfc_trans_arrayfunc_assign): For class lhs, build a dtype with |
| 1610 |
the lhs rank and the rhs element size and use it in the call to |
| 1611 |
fcncall_realloc_result. |
| 1612 |
|
| 1613 |
2024-08-23 Gerald Pfeifer <[email protected]> |
| 1614 |
|
| 1615 |
* invoke.texi (Code Gen Options): Add a missing word. |
| 1616 |
|
| 1617 |
2024-08-23 Andre Vehreschild <[email protected]> |
| 1618 |
|
| 1619 |
PR fortran/86468 |
| 1620 |
* trans-stmt.cc (trans_associate_var): Remove superfluous |
| 1621 |
view_convert. |
| 1622 |
|
| 1623 |
2024-08-21 Andre Vehreschild <[email protected]> |
| 1624 |
|
| 1625 |
PR fortran/86468 |
| 1626 |
* trans-intrinsic.cc (conv_intrinsic_move_alloc): Correct |
| 1627 |
comment. |
| 1628 |
* trans-types.cc (gfc_sym_type): Pass coarray rank, not false. |
| 1629 |
(gfc_get_derived_type): Only propagate codimension for coarrays |
| 1630 |
and pointers to array components in derived typed coarrays. |
| 1631 |
|
| 1632 |
2024-08-21 Andre Vehreschild <[email protected]> |
| 1633 |
|
| 1634 |
PR fortran/77518 |
| 1635 |
* trans-intrinsic.cc (gfc_conv_intrinsic_sizeof): Use |
| 1636 |
class_container of se when set. |
| 1637 |
|
| 1638 |
2024-08-20 Andre Vehreschild <[email protected]> |
| 1639 |
|
| 1640 |
PR fortran/84246 |
| 1641 |
* resolve.cc (caf_possible_reallocate): Detect arrays that may |
| 1642 |
be reallocated by caf_send. |
| 1643 |
(resolve_ordinary_assign): More reliably detect assignments |
| 1644 |
where a rewrite to caf_send is needed. |
| 1645 |
* trans-expr.cc (gfc_trans_assignment_1): Remove rewrite to |
| 1646 |
caf_send, because this is done by resolve now. |
| 1647 |
* trans-intrinsic.cc (conv_caf_send): Prevent unneeded temporary |
| 1648 |
arrays. |
| 1649 |
|
| 1650 |
2024-08-19 Andre Vehreschild <[email protected]> |
| 1651 |
|
| 1652 |
PR fortran/46371 |
| 1653 |
PR fortran/56496 |
| 1654 |
* expr.cc (gfc_is_coindexed): Detect is coindexed also when |
| 1655 |
rewritten to caf_get. |
| 1656 |
* trans-stmt.cc (trans_associate_var): Always accept a |
| 1657 |
descriptor for coarrays. |
| 1658 |
|
| 1659 |
2024-08-19 Andre Vehreschild <[email protected]> |
| 1660 |
|
| 1661 |
PR fortran/84244 |
| 1662 |
* trans-types.cc (gfc_get_derived_type): When a caf_sub_token is |
| 1663 |
generated for a component, link it to the component it is |
| 1664 |
generated for (the previous one). |
| 1665 |
|
| 1666 |
2024-08-16 Harald Anlauf <[email protected]> |
| 1667 |
|
| 1668 |
PR fortran/114146 |
| 1669 |
* intrinsic.texi: Fix documentation of arguments of RANDOM_INIT, |
| 1670 |
which is conforming to the F2018 standard. |
| 1671 |
|
| 1672 |
2024-08-15 Jakub Jelinek <[email protected]> |
| 1673 |
|
| 1674 |
PR bootstrap/116387 |
| 1675 |
* resolve.cc (resolve_operator): Use %L rather than %%L in format |
| 1676 |
string. |
| 1677 |
|
| 1678 |
2024-08-15 Andre Vehreschild <[email protected]> |
| 1679 |
|
| 1680 |
PR fortran/110033 |
| 1681 |
* class.cc (gfc_is_class_scalar_expr): Coarray refs that ref |
| 1682 |
only self, aka this image, are regarded as scalar, too. |
| 1683 |
* resolve.cc (resolve_assoc_var): Ignore this image coarray refs |
| 1684 |
and do not build a new class type. |
| 1685 |
* trans-expr.cc (gfc_get_caf_token_offset): Get the caf token |
| 1686 |
from the descriptor for associated variables. |
| 1687 |
(gfc_conv_variable): Same. |
| 1688 |
(gfc_trans_pointer_assignment): Assign token to temporary |
| 1689 |
associate variable, too. |
| 1690 |
(gfc_trans_scalar_assign): Add flag that assign is for associate |
| 1691 |
and use it to assign the token. |
| 1692 |
(is_assoc_assign): Detect that expressions are for associate |
| 1693 |
assign. |
| 1694 |
(gfc_trans_assignment_1): Treat associate assigns like pointer |
| 1695 |
assignments where possible. |
| 1696 |
* trans-stmt.cc (trans_associate_var): Set same_class only for |
| 1697 |
class-targets. |
| 1698 |
* trans.h (gfc_trans_scalar_assign): Add flag to |
| 1699 |
trans_scalar_assign for marking associate assignments. |
| 1700 |
|
| 1701 |
2024-08-15 Andre Vehreschild <[email protected]> |
| 1702 |
|
| 1703 |
* arith.cc (reduce_unary): Use expr.corank. |
| 1704 |
(reduce_binary_ac): Same. |
| 1705 |
(reduce_binary_ca): Same. |
| 1706 |
(reduce_binary_aa): Same. |
| 1707 |
* array.cc (gfc_match_array_ref): Same. |
| 1708 |
* check.cc (dim_corank_check): Same. |
| 1709 |
(gfc_check_move_alloc): Same. |
| 1710 |
(gfc_check_image_index): Same. |
| 1711 |
* class.cc (gfc_add_class_array_ref): Same. |
| 1712 |
(finalize_component): Same. |
| 1713 |
* data.cc (gfc_assign_data_value): Same. |
| 1714 |
* decl.cc (match_clist_expr): Same. |
| 1715 |
(add_init_expr_to_sym): Same. |
| 1716 |
* expr.cc (simplify_intrinsic_op): Same. |
| 1717 |
(simplify_parameter_variable): Same. |
| 1718 |
(gfc_check_assign_symbol): Same. |
| 1719 |
(gfc_get_variable_expr): Same. |
| 1720 |
(gfc_add_full_array_ref): Same. |
| 1721 |
(gfc_lval_expr_from_sym): Same. |
| 1722 |
(gfc_get_corank): Removed. |
| 1723 |
* frontend-passes.cc (callback_reduction): Use expr.corank. |
| 1724 |
(create_var): Same. |
| 1725 |
(combine_array_constructor): Same. |
| 1726 |
(optimize_minmaxloc): Same. |
| 1727 |
* gfortran.h (gfc_get_corank): Add corank to gfc_expr. |
| 1728 |
* intrinsic.cc (gfc_get_intrinsic_function_symbol): Use |
| 1729 |
expr.corank. |
| 1730 |
(gfc_convert_type_warn): Same. |
| 1731 |
(gfc_convert_chartype): Same. |
| 1732 |
* iresolve.cc (resolve_bound): Same. |
| 1733 |
(gfc_resolve_cshift): Same. |
| 1734 |
(gfc_resolve_eoshift): Same. |
| 1735 |
(gfc_resolve_logical): Same. |
| 1736 |
(gfc_resolve_matmul): Same. |
| 1737 |
* match.cc (copy_ts_from_selector_to_associate): Same. |
| 1738 |
* matchexp.cc (gfc_get_parentheses): Same. |
| 1739 |
* parse.cc (parse_associate): Same. |
| 1740 |
* primary.cc (gfc_match_rvalue): Same. |
| 1741 |
* resolve.cc (resolve_structure_cons): Same. |
| 1742 |
(resolve_actual_arglist): Same. |
| 1743 |
(resolve_elemental_actual): Same. |
| 1744 |
(resolve_generic_f0): Same. |
| 1745 |
(resolve_unknown_f): Same. |
| 1746 |
(resolve_operator): Same. |
| 1747 |
(gfc_expression_rank): Same and set dimen_type for coarray to |
| 1748 |
default. |
| 1749 |
(gfc_op_rank_conformable): Use expr.corank. |
| 1750 |
(add_caf_get_intrinsic): Same. |
| 1751 |
(resolve_variable): Same. |
| 1752 |
(gfc_fixup_inferred_type_refs): Same. |
| 1753 |
(check_host_association): Same. |
| 1754 |
(resolve_compcall): Same. |
| 1755 |
(resolve_expr_ppc): Same. |
| 1756 |
(resolve_assoc_var): Same. |
| 1757 |
(fixup_array_ref): Same. |
| 1758 |
(resolve_select_type): Same. |
| 1759 |
(add_comp_ref): Same. |
| 1760 |
(get_temp_from_expr): Same. |
| 1761 |
(resolve_fl_var_and_proc): Same. |
| 1762 |
(resolve_symbol): Same. |
| 1763 |
* symbol.cc (gfc_is_associate_pointer): Same. |
| 1764 |
* trans-array.cc (walk_coarray): Same. |
| 1765 |
(gfc_conv_expr_descriptor): Same. |
| 1766 |
(gfc_walk_array_ref): Same. |
| 1767 |
* trans-array.h (gfc_walk_array_ref): Same. |
| 1768 |
* trans-expr.cc (gfc_get_ultimate_alloc_ptr_comps_caf_token): |
| 1769 |
Same. |
| 1770 |
* trans-intrinsic.cc (trans_this_image): Same. |
| 1771 |
(trans_image_index): Same. |
| 1772 |
(conv_intrinsic_cobound): Same. |
| 1773 |
(gfc_walk_intrinsic_function): Same. |
| 1774 |
(conv_intrinsic_move_alloc): Same. |
| 1775 |
* trans-stmt.cc (gfc_trans_lock_unlock): Same. |
| 1776 |
(trans_associate_var): Same and adapt to slightly different |
| 1777 |
behaviour of expr.corank and gfc_get_corank. |
| 1778 |
(gfc_trans_allocate): Same. |
| 1779 |
* trans.cc (gfc_add_finalizer_call): Same. |
| 1780 |
|
| 1781 |
2024-08-14 Harald Anlauf <[email protected]> |
| 1782 |
|
| 1783 |
* simplify.cc (gfc_simplify_sizeof): Clear used gmp variable. |
| 1784 |
* target-memory.cc (gfc_target_expr_size): Likewise. |
| 1785 |
|
| 1786 |
2024-08-14 Andre Vehreschild <[email protected]> |
| 1787 |
|
| 1788 |
PR fortran/102973 |
| 1789 |
* match.cc (gfc_match_associate): Reset proc_ptr parsing flag on |
| 1790 |
error. |
| 1791 |
|
| 1792 |
2024-08-14 Andre Vehreschild <[email protected]> |
| 1793 |
|
| 1794 |
PR fortran/116292 |
| 1795 |
* trans-intrinsic.cc (conv_intrinsic_move_alloc): Get the vtab |
| 1796 |
only for derived types and classes and adjust _len for class |
| 1797 |
types. |
| 1798 |
|
| 1799 |
2024-08-13 Harald Anlauf <[email protected]> |
| 1800 |
Steven G. Kargl <[email protected]> |
| 1801 |
|
| 1802 |
PR fortran/114308 |
| 1803 |
* array.cc (resolve_array_list): Reject array constructor value if |
| 1804 |
its declared type is abstract (F2018:C7114). |
| 1805 |
|
| 1806 |
2024-08-12 Andre Vehreschild <[email protected]> |
| 1807 |
|
| 1808 |
PR fortran/85510 |
| 1809 |
* resolve.cc (resolve_variable): Mark the variable as host |
| 1810 |
associated only, when it is not in an associate block. |
| 1811 |
* trans-decl.cc (generate_coarray_init): Remove incorrect unused |
| 1812 |
flag on parameter. |
| 1813 |
|
| 1814 |
2024-08-11 Harald Anlauf <[email protected]> |
| 1815 |
|
| 1816 |
PR fortran/116221 |
| 1817 |
* intrinsic.cc (gfc_get_intrinsic_sub_symbol): Initialize variable. |
| 1818 |
* symbol.cc (gfc_get_ha_symbol): Likewise. |
| 1819 |
|
| 1820 |
2024-08-07 Julian Brown <[email protected]> |
| 1821 |
Tobias Burnus <[email protected]> |
| 1822 |
|
| 1823 |
* gfortran.h (gfc_option_t): Add disable_omp_is_initial_device. |
| 1824 |
* lang.opt (fbuiltin-): Add. |
| 1825 |
* options.cc (gfc_handle_option): Handle |
| 1826 |
-fno-builtin-omp_is_initial_device. |
| 1827 |
* f95-lang.cc (gfc_init_builtin_functions): Handle |
| 1828 |
DEF_GOMP_BUILTIN_COMPILER. |
| 1829 |
* trans-decl.cc (gfc_get_extern_function_decl): Add code to use |
| 1830 |
DEF_GOMP_BUILTIN_COMPILER for 'omp_is_initial_device'. |
| 1831 |
|
| 1832 |
2024-08-06 Jerry DeLisle <[email protected]> |
| 1833 |
|
| 1834 |
PR fortran/109105 |
| 1835 |
* resolve.cc (CHECK_INTERFACES): New helper macro. |
| 1836 |
(resolve_operator): Replace use of snprintf with |
| 1837 |
gfc_error. |
| 1838 |
|
| 1839 |
2024-08-06 Paul Thomas <[email protected]> |
| 1840 |
|
| 1841 |
PR fortran/102689 |
| 1842 |
* trans-array.cc (get_array_ref_dim_for_loop_dim): Use the arg1 |
| 1843 |
class container carried in ss->info as the seed for a lhs in |
| 1844 |
class valued transformational intrinsic calls that are not the |
| 1845 |
rhs of an assignment. Otherwise, the lhs variable expression is |
| 1846 |
taken from the loop chain. For this latter case, the _vptr and |
| 1847 |
_len fields are set. |
| 1848 |
(gfc_trans_create_temp_array): Use either the lhs expression |
| 1849 |
seeds to build a class variable that will take the returned |
| 1850 |
descriptor as its _data field. In the case that the arg1 expr. |
| 1851 |
is used, a class typespec must be built with the correct rank |
| 1852 |
and the _vptr and _len fields set. The element size is provided |
| 1853 |
for the temporary allocation and to set the descriptor span. |
| 1854 |
(gfc_array_init_size): When an intrinsic type scalar expr3 is |
| 1855 |
used in allocation of a class array, use its element size in |
| 1856 |
the descriptor dtype. |
| 1857 |
* trans-expr.cc (gfc_conv_class_to_class): Class valued |
| 1858 |
transformational intrinsics return the pointer to the array |
| 1859 |
descriptor as the _data field of a class temporary. Extract |
| 1860 |
directly and return the address of the class temporary. |
| 1861 |
(gfc_conv_procedure_call): store the expression for the first |
| 1862 |
argument of a class valued transformational intrinsic function |
| 1863 |
in the ss info class_container field. Later, use its type as |
| 1864 |
the element type in the call to gfc_trans_create_temp_array. |
| 1865 |
(fcncall_realloc_result): Add a dtype argument and use it in |
| 1866 |
the descriptor, when available. |
| 1867 |
(gfc_trans_arrayfunc_assign): For class lhs, build a dtype with |
| 1868 |
the lhs rank and the rhs element size and use it in the call to |
| 1869 |
fcncall_realloc_result. |
| 1870 |
|
| 1871 |
2024-08-03 Steve Kargl <[email protected]> |
| 1872 |
|
| 1873 |
PR fortran/104626 |
| 1874 |
* symbol.cc (gfc_add_save): Add checks for SAVE attribute |
| 1875 |
conflicts and duplicate SAVE attribute. |
| 1876 |
|
| 1877 |
2024-08-02 Mikael Morin <[email protected]> |
| 1878 |
|
| 1879 |
* trans-intrinsic.cc (maybe_absent_optional_variable): New function. |
| 1880 |
(gfc_conv_intrinsic_minmaxloc): Remove BACK from scalarization and |
| 1881 |
evaluate it before. Add a check that BACK is not null if the |
| 1882 |
expression is an optional dummy. Save the resulting expression to a |
| 1883 |
variable. Use the variable in the generated inline code. |
| 1884 |
|
| 1885 |
2024-08-01 Jakub Jelinek <[email protected]> |
| 1886 |
|
| 1887 |
* trans-types.cc (gfc_get_array_descr_info): Don't test if |
| 1888 |
!integer_zerop (dtype_off), use fold_build_pointer_plus |
| 1889 |
unconditionally. |
| 1890 |
|
| 1891 |
2024-07-29 Tobias Burnus <[email protected]> |
| 1892 |
|
| 1893 |
PR fortran/115559 |
| 1894 |
* trans-common.cc (build_common_decl): Add 'omp declare target' and |
| 1895 |
'omp declare target link' variables to offload_vars. |
| 1896 |
* trans-decl.cc (add_attributes_to_decl): Likewise; update args and |
| 1897 |
call decl_attributes. |
| 1898 |
(get_proc_pointer_decl, gfc_get_extern_function_decl, |
| 1899 |
build_function_decl): Update calls. |
| 1900 |
(gfc_get_symbol_decl): Likewise; move after 'DECL_STATIC (t)=1' |
| 1901 |
to avoid errors with symtab_node::get_create. |
| 1902 |
|
| 1903 |
2024-07-22 Andre Vehreschild <[email protected]> |
| 1904 |
|
| 1905 |
PR fortran/88624 |
| 1906 |
* trans-expr.cc (gfc_conv_procedure_call): Treat |
| 1907 |
pointers/references (e.g. from parameters) correctly by derefing |
| 1908 |
them. |
| 1909 |
|
| 1910 |
2024-07-21 Paul Thomas <[email protected]> |
| 1911 |
|
| 1912 |
PR fortran/59104 |
| 1913 |
* gfortran.h : Add decl_order to gfc_symbol. |
| 1914 |
* symbol.cc : Add static next_decl_order.. |
| 1915 |
(gfc_set_sym_referenced): Set symbol decl_order. |
| 1916 |
* trans-decl.cc : Include dependency.h. |
| 1917 |
(decl_order): Replace symbol declared_at.lb->location with |
| 1918 |
decl_order. |
| 1919 |
|
| 1920 |
2024-07-19 Harald Anlauf <[email protected]> |
| 1921 |
|
| 1922 |
PR fortran/103115 |
| 1923 |
* trans-array.cc (gfc_trans_array_constructor_value): If the first |
| 1924 |
element of an array constructor is deferred-length character and |
| 1925 |
therefore does not have an element size known at compile time, do |
| 1926 |
not try to collect subsequent constant elements into a constructor |
| 1927 |
for optimization. |
| 1928 |
|
| 1929 |
2024-07-18 Andre Vehreschild <[email protected]> |
| 1930 |
|
| 1931 |
PR fortran/78466 |
| 1932 |
PR fortran/80774 |
| 1933 |
* array.cc (gfc_compare_array_spec): Take cotype into account. |
| 1934 |
* class.cc (gfc_build_class_symbol): Coarrays are also arrays. |
| 1935 |
* gfortran.h (IS_CLASS_COARRAY_OR_ARRAY): New macro to detect |
| 1936 |
regular and coarray class arrays. |
| 1937 |
* interface.cc (compare_components): Take codimension into |
| 1938 |
account. |
| 1939 |
* resolve.cc (resolve_symbol): Improve error message. |
| 1940 |
* simplify.cc (simplify_bound_dim): Remove duplicate. |
| 1941 |
* trans-array.cc (gfc_trans_array_cobounds): Coarrays are also |
| 1942 |
arrays. |
| 1943 |
(gfc_trans_array_bounds): Same. |
| 1944 |
(gfc_trans_dummy_array_bias): Same. |
| 1945 |
(get_coarray_as): Get the as having a non-zero codim. |
| 1946 |
(is_explicit_coarray): Detect explicit coarrays. |
| 1947 |
(gfc_conv_expr_descriptor): Create a new descriptor for explicit |
| 1948 |
coarrays. |
| 1949 |
* trans-decl.cc (gfc_build_qualified_array): Coarrays are also |
| 1950 |
arrays. |
| 1951 |
(gfc_build_dummy_array_decl): Same. |
| 1952 |
(gfc_get_symbol_decl): Same. |
| 1953 |
(gfc_trans_deferred_vars): Same. |
| 1954 |
* trans-expr.cc (class_scalar_coarray_to_class): Get the |
| 1955 |
descriptor from the correct location. |
| 1956 |
(gfc_conv_variable): Pick up the descriptor when needed. |
| 1957 |
* trans-types.cc (gfc_is_nodesc_array): Coarrays are also |
| 1958 |
arrays. |
| 1959 |
(gfc_get_nodesc_array_type): Indentation fix only. |
| 1960 |
(cobounds_match_decl): Match a tree's bounds to the expr's |
| 1961 |
bounds and return true, when they match. |
| 1962 |
(gfc_get_derived_type): Create a new type tree/descriptor, when |
| 1963 |
the cobounds of the existing declaration and expr to not |
| 1964 |
match. This happends for class arrays in parameter list, when |
| 1965 |
there are different cobound declarations. |
| 1966 |
|
| 1967 |
2024-07-18 Paul Thomas <[email protected]> |
| 1968 |
|
| 1969 |
PR fortran/108889 |
| 1970 |
* gfortran.h: Add bit field 'allocated_in_scope' to gfc_symbol. |
| 1971 |
* trans-array.cc (gfc_array_allocate): Set 'allocated_in_scope' |
| 1972 |
after allocation if not a component reference. |
| 1973 |
(gfc_alloc_allocatable_for_assignment): If 'allocated_in_scope' |
| 1974 |
not set, not a component ref and not allocated, set the array |
| 1975 |
bounds and offset to give zero length in all dimensions. Then |
| 1976 |
set allocated_in_scope. |
| 1977 |
|
| 1978 |
2024-07-18 Andre Vehreschild <[email protected]> |
| 1979 |
|
| 1980 |
PR fortran/82904 |
| 1981 |
* trans-types.cc (gfc_sym_type): Use type `char*` for saved |
| 1982 |
deferred length char arrays. |
| 1983 |
* trans.cc (get_array_span): Get `.span` also for `char*` typed |
| 1984 |
arrays, i.e. for those that have INTEGER_TYPE instead of |
| 1985 |
ARRAY_TYPE. |
| 1986 |
|
| 1987 |
2024-07-17 Kewen Lin <[email protected]> |
| 1988 |
|
| 1989 |
PR target/112993 |
| 1990 |
* trans-types.cc (get_real_kind_from_node): Consider the case where |
| 1991 |
more than one modes have the same precision. |
| 1992 |
|
| 1993 |
2024-07-16 Paul Thomas <[email protected]> |
| 1994 |
|
| 1995 |
PR fortran/84868 |
| 1996 |
* simplify.cc (gfc_simplify_len_trim): If the argument is an |
| 1997 |
element of a parameter array, simplify all the elements and |
| 1998 |
build a new parameter array to hold the result, after checking |
| 1999 |
that it doesn't already exist. |
| 2000 |
* trans-expr.cc (gfc_get_interface_mapping_array) if a string |
| 2001 |
length is available, use it for the typespec. |
| 2002 |
(gfc_add_interface_mapping): Supply the se string length. |
| 2003 |
|
| 2004 |
2024-07-16 Prathamesh Kulkarni <[email protected]> |
| 2005 |
|
| 2006 |
* trans-expr.cc (gfc_trans_zero_assign): Handle allocatable arrays. |
| 2007 |
|
| 2008 |
2024-07-13 Mikael Morin <[email protected]> |
| 2009 |
|
| 2010 |
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Add the |
| 2011 |
preliminary code generated for MASK to the preliminary code of |
| 2012 |
MINLOC/MAXLOC. |
| 2013 |
|
| 2014 |
2024-07-12 Mikael Morin <[email protected]> |
| 2015 |
|
| 2016 |
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Create a new |
| 2017 |
scalar scalarization chain element if BACK is present. Add it to |
| 2018 |
the loop. Set the scalarization chain before evaluating the |
| 2019 |
argument. |
| 2020 |
|
| 2021 |
2024-07-11 Andre Vehreschild <[email protected]> |
| 2022 |
|
| 2023 |
* trans-array.cc (gfc_conv_array_parameter): Init variable to |
| 2024 |
NULL_TREE to fix bootstrap. |
| 2025 |
|
| 2026 |
2024-07-11 Andre Vehreschild <[email protected]> |
| 2027 |
|
| 2028 |
PR fortran/96992 |
| 2029 |
* trans-array.cc (gfc_trans_array_bounds): Set a starting |
| 2030 |
stride, when descriptor expects a variable for the stride. |
| 2031 |
(gfc_trans_dummy_array_bias): Allow storage association for |
| 2032 |
dummy class arrays, when they are not elemental. |
| 2033 |
(gfc_conv_array_parameter): Add more general class support |
| 2034 |
and packing for classes, too. |
| 2035 |
* trans-array.h (gfc_conv_array_parameter): Add lbound shift |
| 2036 |
for class arrays. |
| 2037 |
* trans-decl.cc (gfc_build_builtin_function_decls): Add decls |
| 2038 |
for internal_un-/pack_class. |
| 2039 |
* trans-expr.cc (gfc_reset_vptr): Allow supplying a type-tree |
| 2040 |
to generate the vtab from. |
| 2041 |
(gfc_class_set_vptr): Allow supplying a class-tree to take the |
| 2042 |
vptr from. |
| 2043 |
(class_array_data_assign): Rename to gfc_class_array_data_assign |
| 2044 |
and make usable from other compile units. |
| 2045 |
(gfc_class_array_data_assign): Renamed from class_array_data_ |
| 2046 |
assign. |
| 2047 |
(gfc_conv_derived_to_class): Remove assert to |
| 2048 |
allow converting derived to class type arrays with assumed |
| 2049 |
rank. Reduce code base and use gfc_conv_array_parameter also |
| 2050 |
for classes. |
| 2051 |
(gfc_conv_class_to_class): Use gfc_class_data_assign. |
| 2052 |
(gfc_conv_procedure_call): Adapt to new signature of |
| 2053 |
gfc_conv_derived_to_class. |
| 2054 |
* trans-io.cc (transfer_expr): Same. |
| 2055 |
* trans-stmt.cc (trans_associate_var): Same. |
| 2056 |
* trans.h (gfc_conv_derived_to_class): Signature changed. |
| 2057 |
(gfc_class_array_data_assign): Made public. |
| 2058 |
(gfor_fndecl_in_pack_class): Added declaration. |
| 2059 |
(gfor_fndecl_in_unpack_class): Same. |
| 2060 |
|
| 2061 |
2024-07-08 Mikael Morin <[email protected]> |
| 2062 |
|
| 2063 |
* trans-array.cc (gfc_trans_preloop_setup): Use a separate variable |
| 2064 |
for iteration. Use directly the value of variable I if it is known. |
| 2065 |
Move the definition of the variable to the branch where the |
| 2066 |
remaining uses are. |
| 2067 |
|
| 2068 |
2024-07-03 Harald Anlauf <[email protected]> |
| 2069 |
|
| 2070 |
PR fortran/115700 |
| 2071 |
* trans-stmt.cc (trans_associate_var): When the associate target |
| 2072 |
is an array-valued character variable, the length is known at entry |
| 2073 |
of the associate block. Move setting of string length of the |
| 2074 |
selector to the initialization part of the block. |
| 2075 |
|
| 2076 |
2024-07-01 Andrew Stubbs <[email protected]> |
| 2077 |
Thomas Schwinge <[email protected]> |
| 2078 |
|
| 2079 |
* openmp.cc (is_predefined_allocator): Update valid ranges to |
| 2080 |
incorporate ompx_gnu_pinned_mem_alloc. |
| 2081 |
|
| 2082 |
2024-06-29 Harald Anlauf <[email protected]> |
| 2083 |
|
| 2084 |
PR fortran/114019 |
| 2085 |
* trans-stmt.cc (gfc_trans_allocate): Fix handling of case of |
| 2086 |
scalar character expression being used for SOURCE. |
| 2087 |
|
| 2088 |
2024-06-28 Andre Vehreschild <[email protected]> |
| 2089 |
|
| 2090 |
* trans-expr.cc (gfc_class_set_vptr): Add setting of _vptr |
| 2091 |
member. |
| 2092 |
* trans-intrinsic.cc (conv_intrinsic_move_alloc): First use |
| 2093 |
of gfc_class_set_vptr and refactor very similar code. |
| 2094 |
* trans.h (gfc_class_set_vptr): Declare the new function. |
| 2095 |
|
| 2096 |
2024-06-28 Andre Vehreschild <[email protected]> |
| 2097 |
|
| 2098 |
* trans-array.cc (structure_alloc_comps): Use reset_vptr. |
| 2099 |
* trans-decl.cc (gfc_trans_deferred_vars): Same. |
| 2100 |
(gfc_generate_function_code): Same. |
| 2101 |
* trans-expr.cc (gfc_reset_vptr): Allow supplying the class |
| 2102 |
type. |
| 2103 |
(gfc_conv_procedure_call): Use reset_vptr. |
| 2104 |
* trans-intrinsic.cc (gfc_conv_intrinsic_transfer): Same. |
| 2105 |
|
| 2106 |
2024-06-24 Harald Anlauf <[email protected]> |
| 2107 |
|
| 2108 |
PR fortran/55978 |
| 2109 |
* trans-array.cc (gfc_conv_array_parameter): Do not dereference |
| 2110 |
data component of a missing allocatable dummy array argument for |
| 2111 |
passing as actual to optional dummy. Harden logic of presence |
| 2112 |
check for optional pointer dummy by using TRUTH_ANDIF_EXPR instead |
| 2113 |
of TRUTH_AND_EXPR. |
| 2114 |
|
| 2115 |
2024-06-20 Paul Thomas <[email protected]> |
| 2116 |
|
| 2117 |
PR fortran/59104 |
| 2118 |
* dependency.cc (dependency_fcn, gfc_function_dependency): New |
| 2119 |
functions to detect dependency in array bounds and character |
| 2120 |
lengths on old style function results. |
| 2121 |
* dependency.h : Add prototype for gfc_function_dependency. |
| 2122 |
* error.cc (error_print): Remove trailing space. |
| 2123 |
* gfortran.h : Remove dummy_order and add fn_result_spec. |
| 2124 |
* symbol.cc : Remove declaration of next_dummy_order.. |
| 2125 |
(gfc_set_sym_referenced): remove setting of symbol dummy order. |
| 2126 |
* trans-array.cc (gfc_trans_auto_array_allocation): Detect |
| 2127 |
non-dummy symbols with function dependencies and put the |
| 2128 |
allocation at the end of the initialization code. |
| 2129 |
* trans-decl.cc : Include dependency.h. |
| 2130 |
(decl_order): New function that determines uses the location |
| 2131 |
field of the symbol 'declared_at' to determine the order of two |
| 2132 |
declarations. |
| 2133 |
(gfc_defer_symbol_init): Call gfc_function_dependency to put |
| 2134 |
dependent symbols in the right part of the tlink chain. Use |
| 2135 |
the location field of the symbol declared_at to determine the |
| 2136 |
order of declarations. |
| 2137 |
(gfc_trans_auto_character_variable): Put character length |
| 2138 |
initialization of dependent symbols at the end of the chain. |
| 2139 |
* trans.cc (gfc_add_init_cleanup): Add boolean argument with |
| 2140 |
default false that determines whther an expression is placed at |
| 2141 |
the back or the front of the initialization chain. |
| 2142 |
* trans.h : Update the prototype for gfc_add_init_cleanup. |
| 2143 |
|
| 2144 |
2024-06-19 Harald Anlauf <[email protected]> |
| 2145 |
|
| 2146 |
PR fortran/115390 |
| 2147 |
* trans-decl.cc (gfc_conv_cfi_to_gfc): Move derivation of type sizes |
| 2148 |
for character via gfc_trans_vla_type_sizes to after character length |
| 2149 |
has been set. |
| 2150 |
|
| 2151 |
2024-06-19 Andre Vehreschild <[email protected]> |
| 2152 |
|
| 2153 |
PR fortran/90076 |
| 2154 |
* trans-decl.cc (gfc_generate_function_code): Set vptr for |
| 2155 |
results to declared class type. |
| 2156 |
* trans-expr.cc (gfc_reset_vptr): Allow to provide the typespec |
| 2157 |
instead of the expression. |
| 2158 |
* trans.h (gfc_reset_vptr): Same. |
| 2159 |
|
| 2160 |
2024-06-17 Andre Vehreschild <[email protected]> |
| 2161 |
|
| 2162 |
* trans.cc (gfc_deallocate_with_status): Check that object to deref |
| 2163 |
is an array, before applying array deref. |
| 2164 |
|
| 2165 |
2024-06-12 David Malcolm <[email protected]> |
| 2166 |
|
| 2167 |
* error.cc (gfc_clear_pp_buffer): Likewise. |
| 2168 |
(gfc_warning): Likewise. |
| 2169 |
(gfc_warning_check): Likewise. |
| 2170 |
(gfc_error_opt): Likewise. |
| 2171 |
(gfc_error_check): Likewise. |
| 2172 |
|
| 2173 |
2024-06-07 Andre Vehreschild <[email protected]> |
| 2174 |
|
| 2175 |
PR fortran/90068 |
| 2176 |
* trans-array.cc (gfc_trans_array_ctor_element): Eval non- |
| 2177 |
variable expressions once only. |
| 2178 |
(gfc_trans_array_constructor_value): Add statements of |
| 2179 |
final block. |
| 2180 |
(trans_array_constructor): Detect when final block is required. |
| 2181 |
|
| 2182 |
2024-06-07 Andre Vehreschild <[email protected]> |
| 2183 |
|
| 2184 |
PR fortran/90072 |
| 2185 |
* expr.cc (gfc_is_alloc_class_scalar_function): Detect |
| 2186 |
allocatable class return types also for user-defined |
| 2187 |
functions. |
| 2188 |
* trans-expr.cc (gfc_conv_procedure_call): Same. |
| 2189 |
(trans_class_vptr_len_assignment): Compute vptr len |
| 2190 |
assignment correctly for user-defined functions. |
| 2191 |
|
| 2192 |
2024-06-05 Jakub Jelinek <[email protected]> |
| 2193 |
Frederik Harwath <[email protected]> |
| 2194 |
Sandra Loosemore <[email protected]> |
| 2195 |
|
| 2196 |
* gfortran.h (enum gfc_statement): Add ST_OMP_UNROLL, |
| 2197 |
ST_OMP_END_UNROLL, ST_OMP_TILE and ST_OMP_END_TILE. |
| 2198 |
(struct gfc_omp_clauses): Add sizes_list, partial, full and erroneous |
| 2199 |
members. |
| 2200 |
(enum gfc_exec_op): Add EXEC_OMP_UNROLL and EXEC_OMP_TILE. |
| 2201 |
(gfc_expr_list_len): Declare. |
| 2202 |
* match.h (gfc_match_omp_tile, gfc_match_omp_unroll): Declare. |
| 2203 |
* openmp.cc (gfc_get_location): Declare. |
| 2204 |
(gfc_free_omp_clauses): Free sizes_list. |
| 2205 |
(match_oacc_expr_list): Rename to ... |
| 2206 |
(match_omp_oacc_expr_list): ... this. Add is_omp argument and |
| 2207 |
change diagnostic wording if it is true. |
| 2208 |
(enum omp_mask2): Add OMP_CLAUSE_{FULL,PARTIAL,SIZES}. |
| 2209 |
(gfc_match_omp_clauses): Parse full, partial and sizes clauses. |
| 2210 |
(gfc_match_oacc_wait): Use match_omp_oacc_expr_list instead of |
| 2211 |
match_oacc_expr_list. |
| 2212 |
(OMP_UNROLL_CLAUSES, OMP_TILE_CLAUSES): Define. |
| 2213 |
(gfc_match_omp_tile, gfc_match_omp_unroll): New functions. |
| 2214 |
(resolve_omp_clauses): Diagnose full vs. partial clause conflict. |
| 2215 |
Resolve sizes clause arguments. |
| 2216 |
(find_nested_loop_in_chain): Use switch instead of series of ifs. |
| 2217 |
Handle EXEC_OMP_TILE and EXEC_OMP_UNROLL. |
| 2218 |
(gfc_resolve_omp_do_blocks): Set omp_current_do_collapse to |
| 2219 |
list length of sizes_list if present. |
| 2220 |
(gfc_resolve_do_iterator): Return for EXEC_OMP_TILE or |
| 2221 |
EXEC_OMP_UNROLL. |
| 2222 |
(restructure_intervening_code): Remove spurious ()s around & operands. |
| 2223 |
(is_outer_iteration_variable): Handle EXEC_OMP_TILE and |
| 2224 |
EXEC_OMP_UNROLL. |
| 2225 |
(check_nested_loop_in_chain): Likewise. |
| 2226 |
(expr_is_invariant): Likewise. |
| 2227 |
(resolve_omp_do): Handle EXEC_OMP_TILE and EXEC_OMP_UNROLL. Diagnose |
| 2228 |
tile without sizes clause. Use sizes_list length for count if |
| 2229 |
non-NULL. Set code->ext.omp_clauses->erroneous on loops where we've |
| 2230 |
reported diagnostics. Sorry for mixing non-rectangular loops with |
| 2231 |
generated loops. |
| 2232 |
(omp_code_to_statement): Handle EXEC_OMP_TILE and EXEC_OMP_UNROLL. |
| 2233 |
(gfc_resolve_omp_directive): Likewise. |
| 2234 |
* parse.cc (decode_omp_directive): Parse end tile, end unroll, tile |
| 2235 |
and unroll. Move nothing entry alphabetically. |
| 2236 |
(case_exec_markers): Add ST_OMP_TILE and ST_OMP_UNROLL. |
| 2237 |
(gfc_ascii_statement): Handle ST_OMP_END_TILE, ST_OMP_END_UNROLL, |
| 2238 |
ST_OMP_TILE and ST_OMP_UNROLL. |
| 2239 |
(parse_omp_do): Add nested argument. Handle ST_OMP_TILE and |
| 2240 |
ST_OMP_UNROLL. |
| 2241 |
(parse_omp_structured_block): Adjust parse_omp_do caller. |
| 2242 |
(parse_executable): Likewise. Handle ST_OMP_TILE and ST_OMP_UNROLL. |
| 2243 |
* resolve.cc (gfc_resolve_blocks): Handle EXEC_OMP_TILE and |
| 2244 |
EXEC_OMP_UNROLL. |
| 2245 |
(gfc_resolve_code): Likewise. |
| 2246 |
* st.cc (gfc_free_statement): Likewise. |
| 2247 |
* trans.cc (trans_code): Likewise. |
| 2248 |
* trans-openmp.cc (gfc_trans_omp_clauses): Handle full, partial and |
| 2249 |
sizes clauses. Use tree_cons + nreverse instead of |
| 2250 |
temporary vector and build_tree_list_vec for tile_list handling. |
| 2251 |
(gfc_expr_list_len): New function. |
| 2252 |
(gfc_trans_omp_do): Rename tile to oacc_tile. Handle sizes clause. |
| 2253 |
Don't assert code->op is EXEC_DO. Handle EXEC_OMP_TILE and |
| 2254 |
EXEC_OMP_UNROLL. |
| 2255 |
(gfc_trans_omp_directive): Handle EXEC_OMP_TILE and EXEC_OMP_UNROLL. |
| 2256 |
* dump-parse-tree.cc (show_omp_clauses): Dump full, partial and |
| 2257 |
sizes clauses. |
| 2258 |
(show_omp_node): Handle EXEC_OMP_TILE and EXEC_OMP_UNROLL. |
| 2259 |
(show_code_node): Likewise. |
| 2260 |
|
| 2261 |
2024-06-05 Kewen Lin <[email protected]> |
| 2262 |
|
| 2263 |
* trans-intrinsic.cc (build_round_expr): Use TYPE_PRECISION of |
| 2264 |
long_double_type_node to replace LONG_DOUBLE_TYPE_SIZE. |
| 2265 |
* trans-types.cc (gfc_build_real_type): Use TYPE_PRECISION of |
| 2266 |
{float,double,long_double}_type_node to replace |
| 2267 |
{FLOAT,DOUBLE,LONG_DOUBLE}_TYPE_SIZE. |
| 2268 |
|
| 2269 |
2024-06-04 Harald Anlauf <[email protected]> |
| 2270 |
|
| 2271 |
PR fortran/83865 |
| 2272 |
* trans-stmt.cc (gfc_trans_allocate): Restrict special case for |
| 2273 |
source-expression with zero-length character to rank 0, so that |
| 2274 |
the array shape is not discarded. |
| 2275 |
|
| 2276 |
2024-05-29 Andre Vehreschild <[email protected]> |
| 2277 |
|
| 2278 |
PR fortran/90069 |
| 2279 |
* trans-expr.cc (gfc_conv_procedure_call): Evaluate |
| 2280 |
expressions with side-effects only ones and ensure |
| 2281 |
old is freeed. |
| 2282 |
|
| 2283 |
2024-05-24 Harald Anlauf <[email protected]> |
| 2284 |
Steven G. Kargl <[email protected]> |
| 2285 |
|
| 2286 |
PR fortran/93635 |
| 2287 |
* symbol.cc (conflict_std): Helper function for reporting attribute |
| 2288 |
conflicts depending on the Fortran standard version. |
| 2289 |
(conf_std): Helper macro for checking standard-dependent conflicts. |
| 2290 |
(gfc_check_conflict): Use it. |
| 2291 |
|
| 2292 |
2024-05-24 Harald Anlauf <[email protected]> |
| 2293 |
|
| 2294 |
PR fortran/86100 |
| 2295 |
* trans-array.cc (gfc_conv_ss_startstride): Use abridged_ref_name |
| 2296 |
to generate a more user-friendly name for bounds-check messages. |
| 2297 |
* trans-expr.cc (gfc_copy_class_to_class): Fix bounds check for |
| 2298 |
rank>1 by looping over the dimensions. |
| 2299 |
|
| 2300 |
2024-05-23 Paul Thomas <[email protected]> |
| 2301 |
|
| 2302 |
PR fortran/103312 |
| 2303 |
* dependency.cc (gfc_dep_compare_expr): Handle component call |
| 2304 |
expressions. Return -2 as default and return 0 if compared with |
| 2305 |
a function expression that is from an interface body and has |
| 2306 |
the same name. |
| 2307 |
* expr.cc (gfc_reduce_init_expr): If the expression is a comp |
| 2308 |
call do not attempt to reduce, defer to resolution and return |
| 2309 |
false. |
| 2310 |
* trans-types.cc (gfc_get_dtype_rank_type, |
| 2311 |
gfc_get_nodesc_array_type): Fix whitespace. |
| 2312 |
|
| 2313 |
2024-05-20 Mikael Morin <[email protected]> |
| 2314 |
|
| 2315 |
PR fortran/99798 |
| 2316 |
* symbol.cc (gfc_release_symbol): Move the condition guarding |
| 2317 |
the handling cyclic references... |
| 2318 |
(cyclic_reference_break_needed): ... here as a new predicate. |
| 2319 |
Remove superfluous parts. Add a condition preventing any premature |
| 2320 |
release with submodule symbols. |
| 2321 |
|
| 2322 |
2024-05-20 Tobias Burnus <[email protected]> |
| 2323 |
|
| 2324 |
PR fortran/115150 |
| 2325 |
* trans-intrinsic.cc (gfc_conv_intrinsic_bound): Fix SHAPE |
| 2326 |
for zero-size arrays |
| 2327 |
|
| 2328 |
2024-05-20 Tobias Burnus <[email protected]> |
| 2329 |
|
| 2330 |
* invoke.texi (fcoarray): Link to OpenCoarrays.org; |
| 2331 |
mention libcaf_single. |
| 2332 |
|
| 2333 |
2024-05-17 Paul Thomas <[email protected]> |
| 2334 |
|
| 2335 |
PR fortran/114874 |
| 2336 |
* gfortran.h: Add 'assoc_name_inferred' to gfc_namespace. |
| 2337 |
* match.cc (gfc_match_select_type): Set 'assoc_name_inferred' |
| 2338 |
in select type namespace if the selector has inferred type. |
| 2339 |
* primary.cc (gfc_match_varspec): If a select type temporary |
| 2340 |
is apparently scalar and a left parenthesis has been detected, |
| 2341 |
check the current namespace has 'assoc_name_inferred' set. If |
| 2342 |
so, set inferred_type. |
| 2343 |
* resolve.cc (resolve_variable): If the namespace of a select |
| 2344 |
type temporary is marked with 'assoc_name_inferred' call |
| 2345 |
gfc_fixup_inferred_type_refs to ensure references are OK. |
| 2346 |
(gfc_fixup_inferred_type_refs): Catch invalid array refs.. |
| 2347 |
|
| 2348 |
2024-05-15 Jakub Jelinek <[email protected]> |
| 2349 |
|
| 2350 |
PR c/115103 |
| 2351 |
* openmp.cc (resolve_omp_clauses): Diagnose grainsize |
| 2352 |
used together with num_tasks or nogroup used together with |
| 2353 |
reduction. |
| 2354 |
|
| 2355 |
2024-05-13 Paul Thomas <[email protected]> |
| 2356 |
|
| 2357 |
PR fortran/113363 |
| 2358 |
* trans-array.cc (gfc_array_init_size): Use the expr3 dtype so |
| 2359 |
that the correct element size is used. |
| 2360 |
* trans-expr.cc (gfc_conv_procedure_call): Remove restriction |
| 2361 |
that ss and ss->loop be present for the finalization of class |
| 2362 |
array function results. |
| 2363 |
(trans_class_assignment): Use free and malloc, rather than |
| 2364 |
realloc, for character expressions assigned to unlimited poly |
| 2365 |
entities. |
| 2366 |
* trans-stmt.cc (gfc_trans_allocate): Build a correct rhs for |
| 2367 |
the assignment of an unlimited polymorphic 'source'. |
| 2368 |
|
| 2369 |
2024-05-12 Harald Anlauf <[email protected]> |
| 2370 |
|
| 2371 |
* primary.cc (gfc_match_varspec): Replace 'ref' argument to |
| 2372 |
is_inquiry_ref() by NULL when the result is not needed to avoid |
| 2373 |
a memleak. |
| 2374 |
|
| 2375 |
2024-05-12 Paul Thomas <[email protected]> |
| 2376 |
|
| 2377 |
PR fortran/84006 |
| 2378 |
PR fortran/100027 |
| 2379 |
PR fortran/98534 |
| 2380 |
* iresolve.cc (gfc_resolve_transfer): Emit a TODO error for |
| 2381 |
unlimited polymorphic mold. |
| 2382 |
* trans-expr.cc (gfc_resize_class_size_with_len): Use the fold |
| 2383 |
even if a block is not available in which to fix the result. |
| 2384 |
(trans_class_assignment): Enable correct assignment of |
| 2385 |
character expressions to unlimited polymorphic variables using |
| 2386 |
lhs _len field and rse string_length. |
| 2387 |
* trans-intrinsic.cc (gfc_conv_intrinsic_storage_size): Extract |
| 2388 |
the class expression so that the unlimited polymorphic class |
| 2389 |
expression can be used in gfc_resize_class_size_with_len to |
| 2390 |
obtain the storage size for character payloads. Guard the use |
| 2391 |
of GFC_DECL_SAVED_DESCRIPTOR by testing for DECL_LANG_SPECIFIC |
| 2392 |
to prevent the ICE. Also, invert the order to use the class |
| 2393 |
expression extracted from the argument. |
| 2394 |
(gfc_conv_intrinsic_transfer): In same way as 'storage_size', |
| 2395 |
use the _len field to obtaining the correct length for arg 1. |
| 2396 |
Add a branch for the element size in bytes of class expressions |
| 2397 |
with provision to make use of the unlimited polymorphic _len |
| 2398 |
field. Again, the class references are explicitly identified. |
| 2399 |
'mold_expr' was already declared. Use it instead of 'arg'. Do |
| 2400 |
not fix 'dest_word_len' for deferred character sources because |
| 2401 |
reallocation on assign makes use of it before it is assigned. |
| 2402 |
|
| 2403 |
2024-05-11 Harald Anlauf <[email protected]> |
| 2404 |
|
| 2405 |
PR fortran/115039 |
| 2406 |
* expr.cc (gfc_traverse_expr): An inquiry ref does not constitute |
| 2407 |
a dependency and cannot collide with a symbol. |
| 2408 |
|
| 2409 |
2024-05-05 Harald Anlauf <[email protected]> |
| 2410 |
|
| 2411 |
PR fortran/114827 |
| 2412 |
* trans-array.cc (gfc_alloc_allocatable_for_assignment): Take into |
| 2413 |
account _len of unlimited polymorphic entities when calculating |
| 2414 |
the effective element size for allocation size and array span. |
| 2415 |
Set _len of lhs to _len of rhs. |
| 2416 |
* trans-expr.cc (trans_class_assignment): Take into account _len |
| 2417 |
of unlimited polymorphic entities for allocation size. |
| 2418 |
|
| 2419 |
2024-04-29 Francois-Xavier Coudert <[email protected]> |
| 2420 |
|
| 2421 |
* expr.cc (check_transformational): Add SELECTED_LOGICAL_KIND |
| 2422 |
to allowed functions for Fortran 2023. |
| 2423 |
* gfortran.h (GFC_ISYM_SL_KIND): New. |
| 2424 |
* gfortran.texi: Mention SELECTED_LOGICAL_KIND. |
| 2425 |
* intrinsic.cc (add_functions): Add SELECTED_LOGICAL_KIND. |
| 2426 |
(gfc_intrinsic_func_interface): Allow it in initialization |
| 2427 |
expressions. |
| 2428 |
* intrinsic.h (gfc_simplify_selected_logical_kind): New proto. |
| 2429 |
* intrinsic.texi: Add SELECTED_LOGICAL_KIND. |
| 2430 |
* simplify.cc (gfc_simplify_selected_logical_kind): New |
| 2431 |
function. |
| 2432 |
* trans-decl.cc (gfc_build_intrinsic_function_decls): Initialize |
| 2433 |
gfor_fndecl_sl_kind. |
| 2434 |
* trans-intrinsic.cc (gfc_conv_intrinsic_sl_kind): New function. |
| 2435 |
(gfc_conv_intrinsic_function): Call it for GFC_ISYM_SL_KIND. |
| 2436 |
* trans.h (gfor_fndecl_sl_kind): New symbol. |
| 2437 |
|
| 2438 |
2024-04-29 Francois-Xavier Coudert <[email protected]> |
| 2439 |
|
| 2440 |
* iso-fortran-env.def: Add logical{8,16,32,64} and |
| 2441 |
real16 named constants. |
| 2442 |
|
| 2443 |
2024-04-29 Paul Thomas <[email protected]> |
| 2444 |
|
| 2445 |
PR fortran/114959 |
| 2446 |
* trans-expr.cc (gfc_trans_class_init_assign): Return NULL_TREE |
| 2447 |
if the default initializer has all NULL fields. Guard this |
| 2448 |
by a requirement that the code not be EXEC_INIT_ASSIGN and that |
| 2449 |
the object be an INTENT_OUT dummy. |
| 2450 |
* trans-stmt.cc (gfc_trans_allocate): Change the initializer |
| 2451 |
code for allocate with mold to EXEC_ALLOCATE to allow an |
| 2452 |
initializer with all NULL fields. |
| 2453 |
|
| 2454 |
2024-04-25 Paul Thomas <[email protected]> |
| 2455 |
|
| 2456 |
PR fortran/93678 |
| 2457 |
* trans-expr.cc (gfc_conv_procedure_call): Use the interface, |
| 2458 |
where possible, to obtain the type of character procedure |
| 2459 |
pointers of class entities. |
| 2460 |
|
| 2461 |
2024-04-25 Paul Thomas <[email protected]> |
| 2462 |
Jakub Jelinek <[email protected]> |
| 2463 |
|
| 2464 |
PR fortran/89462 |
| 2465 |
* decl.cc (build_sym): Add an extra argument 'elem'. If 'elem' |
| 2466 |
is greater than 1, gfc_new_charlen is called to generate a new |
| 2467 |
charlen, registered in the symbol namespace. |
| 2468 |
(variable_decl, enumerator_decl): Set the new argument in the |
| 2469 |
calls to build_sym. |
| 2470 |
|
| 2471 |
2024-04-21 Paul Thomas <[email protected]> |
| 2472 |
|
| 2473 |
PR fortran/103471 |
| 2474 |
* resolve.cc (resolve_actual_arglist): Catch variables silently |
| 2475 |
set as untyped, resetting the flag so that gfc_resolve_expr can |
| 2476 |
generate the no implicit type error. |
| 2477 |
(gfc_resolve_index_1): Block index expressions of unknown type |
| 2478 |
from being converted to default integer, avoiding the fatal |
| 2479 |
error in trans-decl.cc. |
| 2480 |
* symbol.cc (gfc_set_default_type): Remove '(symbol)' from the |
| 2481 |
'no IMPLICIT type' error message. |
| 2482 |
* trans-decl.cc (gfc_get_symbol_decl): Change fatal error locus |
| 2483 |
to that of the symbol declaration. |
| 2484 |
(gfc_trans_deferred_vars): Remove two trailing tabs. |
| 2485 |
|
| 2486 |
2024-04-18 Paul Thomas <[email protected]> |
| 2487 |
|
| 2488 |
PR fortran/114739 |
| 2489 |
* primary.cc (gfc_match_varspec): Check for default type before |
| 2490 |
checking for derived types with the right component name. |
| 2491 |
|
| 2492 |
2024-04-16 Harald Anlauf <[email protected]> |
| 2493 |
|
| 2494 |
PR fortran/113793 |
| 2495 |
* resolve.cc (resolve_allocate_expr): Reject ALLOCATE with SOURCE= |
| 2496 |
or MOLD= specifier for unequal length. |
| 2497 |
* trans-stmt.cc (gfc_trans_allocate): If an allocatable character |
| 2498 |
variable has fixed length, use it and do not use the source length. |
| 2499 |
With bounds-checking enabled, add a runtime check for same length. |
| 2500 |
|
| 2501 |
2024-04-10 Harald Anlauf <[email protected]> |
| 2502 |
|
| 2503 |
PR fortran/106500 |
| 2504 |
* check.cc (is_c_interoperable): Fix checks for C_SIZEOF. |
| 2505 |
(gfc_check_c_f_pointer): Reject function returning a pointer as FPTR, |
| 2506 |
and improve an error message. |
| 2507 |
|
| 2508 |
2024-04-09 Paul Thomas <[email protected]> |
| 2509 |
|
| 2510 |
PR fortran/114535 |
| 2511 |
* resolve.cc (resolve_symbol): Remove last chunk that checked |
| 2512 |
for finalization of unreferenced symbols. |
| 2513 |
|
| 2514 |
2024-04-09 Paul Thomas <[email protected]> |
| 2515 |
|
| 2516 |
PR fortran/113956 |
| 2517 |
* trans-expr.cc (gfc_trans_pointer_assignment): Remove assert |
| 2518 |
causing the ICE since it was unnecesary. |
| 2519 |
|
| 2520 |
2024-04-02 Paul Thomas <[email protected]> |
| 2521 |
|
| 2522 |
PR fortran/106999 |
| 2523 |
* interface.cc (gfc_compare_interfaces): Add error for a |
| 2524 |
subroutine proc pointer passed to a variable formal. |
| 2525 |
(compare_parameter): If a procedure pointer is being passed to |
| 2526 |
a non-procedure formal arg, and there is an an interface, use |
| 2527 |
gfc_compare_interfaces to check and provide a more useful error |
| 2528 |
message. |
| 2529 |
|
| 2530 |
2024-04-02 Paul Thomas <[email protected]> |
| 2531 |
|
| 2532 |
PR fortran/112407 |
| 2533 |
* resolve.cc (resolve_procedure_expression): Change the test for |
| 2534 |
for recursion in the case of hidden procedures from modules. |
| 2535 |
(resolve_typebound_static): Add warning for possible recursive |
| 2536 |
calls to typebound procedures. |
| 2537 |
* trans-expr.cc (gfc_trans_class_init_assign): Do not apply |
| 2538 |
default initializer to class dummy where component initializers |
| 2539 |
are all null. |
| 2540 |
|
| 2541 |
2024-03-29 Harald Anlauf <[email protected]> |
| 2542 |
|
| 2543 |
PR fortran/50410 |
| 2544 |
* trans-expr.cc (gfc_conv_structure): Check for NULL pointer. |
| 2545 |
|
| 2546 |
2024-03-29 Paul Thomas <[email protected]> |
| 2547 |
|
| 2548 |
PR fortran/36337 |
| 2549 |
PR fortran/110987 |
| 2550 |
PR fortran/113885 |
| 2551 |
* trans-expr.cc (gfc_trans_assignment_1): Place finalization |
| 2552 |
block before rhs post block for elemental rhs. |
| 2553 |
* trans.cc (gfc_finalize_tree_expr): Check directly if a type |
| 2554 |
has no components, rather than the zero components attribute. |
| 2555 |
Treat elemental zero component expressions in the same way as |
| 2556 |
scalars. |
| 2557 |
|
| 2558 |
2024-03-28 Harald Anlauf <[email protected]> |
| 2559 |
|
| 2560 |
PR fortran/114474 |
| 2561 |
* primary.cc (gfc_variable_attr): Catch variables used in structure |
| 2562 |
constructors within DATA statements that are still tagged with a |
| 2563 |
temporary type BT_PROCEDURE from match_actual_arg and which have the |
| 2564 |
target attribute, and fix their typespec. |
| 2565 |
|
| 2566 |
2024-03-28 Mikael Morin <[email protected]> |
| 2567 |
Harald Anlauf <[email protected]> |
| 2568 |
|
| 2569 |
PR fortran/111781 |
| 2570 |
PR fortran/114475 |
| 2571 |
* expr.cc (check_restricted): In submodules, allow variables host- |
| 2572 |
associated from the parent module. |
| 2573 |
|
| 2574 |
2024-03-22 Harald Anlauf <[email protected]> |
| 2575 |
|
| 2576 |
PR fortran/55978 |
| 2577 |
* interface.cc (gfc_compare_actual_formal): Skip size check for |
| 2578 |
NULL() actual without MOLD argument. |
| 2579 |
|
| 2580 |
2024-03-22 Mikael Morin <[email protected]> |
| 2581 |
|
| 2582 |
PR fortran/107426 |
| 2583 |
* gfortran.h (gfc_save_module_list, gfc_restore_old_module_list): |
| 2584 |
New declarations. |
| 2585 |
* module.cc (old_module_list_tail): New global variable. |
| 2586 |
(gfc_save_module_list, gfc_restore_old_module_list): New functions. |
| 2587 |
(gfc_use_modules): Set module_list and old_module_list_tail. |
| 2588 |
* parse.cc (next_statement): Save module_list before doing any work. |
| 2589 |
(reject_statement): Restore module_list to its saved value. |
| 2590 |
|
| 2591 |
2024-03-22 Mikael Morin <[email protected]> |
| 2592 |
|
| 2593 |
PR fortran/111781 |
| 2594 |
* symbol.cc (gfc_get_procedure_ns, gfc_get_spec_ns): New functions. |
| 2595 |
* gfortran.h (gfc_get_procedure_ns, gfc_get_spec ns): Declare them. |
| 2596 |
(gfc_is_formal_arg): Remove. |
| 2597 |
* expr.cc (check_restricted): Remove special case allowing local |
| 2598 |
variable in dummy argument bound expressions. Use gfc_get_spec_ns |
| 2599 |
to get the right namespace. |
| 2600 |
* resolve.cc (gfc_is_formal_arg, formal_arg_flag): Remove. |
| 2601 |
(gfc_resolve_formal_arglist): Set gfc_current_ns. Quit loop and |
| 2602 |
restore gfc_current_ns instead of early returning. |
| 2603 |
(resolve_symbol): Factor common array spec resolution code to... |
| 2604 |
(resolve_symbol_array_spec): ... this new function. Additionnally |
| 2605 |
set and restore gfc_current_ns. |
| 2606 |
|
| 2607 |
2024-03-21 Harald Anlauf <[email protected]> |
| 2608 |
|
| 2609 |
PR fortran/30802 |
| 2610 |
* trans-array.cc (abridged_ref_name): New helper function. |
| 2611 |
(trans_array_bound_check): Use it. |
| 2612 |
(array_bound_check_elemental): Likewise. |
| 2613 |
(gfc_conv_array_ref): Likewise. |
| 2614 |
|
| 2615 |
2024-03-20 Jakub Jelinek <[email protected]> |
| 2616 |
|
| 2617 |
* trans-array.cc (structure_alloc_comps): Use integer_zero_node |
| 2618 |
instead of build_zero_cst (integer_type_node) or |
| 2619 |
build_int_cst (integer_type_node, 0) and integer_one_node instead of |
| 2620 |
build_int_cst (integer_type_node, 1). |
| 2621 |
* trans-expr.cc (conv_scalar_char_value): Likewise. |
| 2622 |
* trans-stmt.cc (gfc_trans_form_team, gfc_trans_change_team, |
| 2623 |
gfc_trans_sync_team, gfc_trans_sync): Likewise. |
| 2624 |
* trans-decl.cc (create_main_function): Likewise. |
| 2625 |
* trans-intrinsic.cc (trans_this_image, conv_intrinsic_move_alloc): |
| 2626 |
Likewise. |
| 2627 |
* trans.cc (gfc_allocate_using_caf_lib, gfc_deallocate_with_status): |
| 2628 |
Likewise. |
| 2629 |
|
| 2630 |
2024-03-18 Harald Anlauf <[email protected]> |
| 2631 |
|
| 2632 |
PR fortran/103715 |
| 2633 |
* frontend-passes.cc (check_externals_expr): Prevent invalid read |
| 2634 |
in case of mismatch of external subroutine with function. |
| 2635 |
|
| 2636 |
2024-03-17 Harald Anlauf <[email protected]> |
| 2637 |
|
| 2638 |
PR fortran/101135 |
| 2639 |
* trans-array.cc (gfc_get_dataptr_offset): Check for optional |
| 2640 |
arguments being present before dereferencing data pointer. |
| 2641 |
|
| 2642 |
2024-03-15 Paul Thomas <[email protected]> |
| 2643 |
|
| 2644 |
PR fortran/87477 |
| 2645 |
PR fortran/89645 |
| 2646 |
PR fortran/99065 |
| 2647 |
PR fortran/114141 |
| 2648 |
PR fortran/114280 |
| 2649 |
* class.cc (gfc_change_class): New function needed for |
| 2650 |
associate names, when rank changes or a derived type is |
| 2651 |
produced by resolution |
| 2652 |
* dump-parse-tree.cc (show_code_node): Make output for SELECT |
| 2653 |
TYPE more comprehensible. |
| 2654 |
* expr.cc (find_inquiry_ref): Do not simplify expressions of |
| 2655 |
an inferred type. |
| 2656 |
* gfortran.h : Add 'gfc_association_list' to structure |
| 2657 |
'gfc_association_list'. Add prototypes for |
| 2658 |
'gfc_find_derived_types', 'gfc_fixup_inferred_type_refs' and |
| 2659 |
'gfc_change_class'. Add macro IS_INFERRED_TYPE. |
| 2660 |
* match.cc (copy_ts_from_selector_to_associate): Add bolean arg |
| 2661 |
'select_type' with default false. If this is a select type name |
| 2662 |
and the selector is a inferred type, build the class type and |
| 2663 |
apply it to the associate name. |
| 2664 |
(build_associate_name): Pass true to 'select_type' in call to |
| 2665 |
previous. |
| 2666 |
* parse.cc (parse_associate): If the selector is inferred type |
| 2667 |
the associate name is too. Make sure that function selector |
| 2668 |
class and rank, if known, are passed to the associate name. If |
| 2669 |
a function result exists, pass its typespec to the associate |
| 2670 |
name. |
| 2671 |
* primary.cc (resolvable_fcns): New function to check that all |
| 2672 |
the function references are resolvable. |
| 2673 |
(gfc_match_varspec): If a scalar derived type select type |
| 2674 |
temporary has an array reference, match the array reference, |
| 2675 |
treating this in the same way as an equivalence member. Do not |
| 2676 |
set 'inquiry' if applied to an unknown type the inquiry name |
| 2677 |
is ambiguous with the component of an accessible derived type. |
| 2678 |
Check that resolution of the target expression is OK by testing |
| 2679 |
if the symbol is declared or is an operator expression, then |
| 2680 |
using 'resolvable_fcns' recursively. If all is well, resolve |
| 2681 |
the expression. If this is an inferred type with a component |
| 2682 |
reference, call 'gfc_find_derived_types' to find a suitable |
| 2683 |
derived type. If there is an inquiry ref and the symbol either |
| 2684 |
is of unknown type or is inferred to be a derived type, set the |
| 2685 |
primary and symbol TKR appropriately. |
| 2686 |
* resolve.cc (resolve_variable): Call new function below. |
| 2687 |
(gfc_fixup_inferred_type_refs): New function to ensure that the |
| 2688 |
expression references for a inferred type are consistent with |
| 2689 |
the now fixed up selector. |
| 2690 |
(resolve_assoc_var): Ensure that derived type or class function |
| 2691 |
selectors transmit the correct arrayspec to the associate name. |
| 2692 |
(resolve_select_type): If the selector is an associate name of |
| 2693 |
inferred type and has no component references, the associate |
| 2694 |
name should have its typespec. Simplify the conversion of a |
| 2695 |
class array to class scalar by calling 'gfc_change_class'. |
| 2696 |
Make sure that a class, inferred type selector with an array |
| 2697 |
ref transfers the typespec from the symbol to the expression. |
| 2698 |
* symbol.cc (gfc_set_default_type): If an associate name with |
| 2699 |
unknown type has a selector expression, try resolving the expr. |
| 2700 |
(find_derived_types, gfc_find_derived_types): New functions |
| 2701 |
that search for a derived type with a given name. |
| 2702 |
* trans-expr.cc (gfc_conv_variable): Some inferred type exprs |
| 2703 |
escape resolution so call 'gfc_fixup_inferred_type_refs'. |
| 2704 |
* trans-stmt.cc (trans_associate_var): Tidy up expression for |
| 2705 |
'class_target'. Finalize and free class function results. |
| 2706 |
Correctly handle selectors that are class functions and class |
| 2707 |
array references, passed as derived types. |
| 2708 |
|
| 2709 |
2024-03-14 Thomas Schwinge <[email protected]> |
| 2710 |
|
| 2711 |
* dump-parse-tree.cc (show_omp_clauses): Handle 'self_expr'. |
| 2712 |
* openmp.cc (gfc_free_omp_clauses): Likewise. |
| 2713 |
* trans-openmp.cc (gfc_split_omp_clauses): Don't handle 'self_expr'. |
| 2714 |
|
| 2715 |
2024-03-14 Chung-Lin Tang <[email protected]> |
| 2716 |
|
| 2717 |
* dump-parse-tree.cc (show_omp_namelist): Print "readonly," for |
| 2718 |
OMP_LIST_MAP and OMP_LIST_CACHE if n->u.map.readonly is set. |
| 2719 |
Adjust 'n->u.map_op' to 'n->u.map.op'. |
| 2720 |
* gfortran.h (typedef struct gfc_omp_namelist): Adjust map_op as |
| 2721 |
'ENUM_BITFIELD (gfc_omp_map_op) op:8', add 'bool readonly' field, |
| 2722 |
change to named struct field 'map'. |
| 2723 |
* openmp.cc (gfc_match_omp_map_clause): Adjust 'n->u.map_op' to |
| 2724 |
'n->u.map.op'. |
| 2725 |
(gfc_match_omp_clause_reduction): Likewise. |
| 2726 |
(gfc_match_omp_clauses): Add readonly modifier parsing for OpenACC |
| 2727 |
copyin clause, set 'n->u.map.op' and 'n->u.map.readonly' for parsed |
| 2728 |
clause. Adjust 'n->u.map_op' to 'n->u.map.op'. |
| 2729 |
(gfc_match_oacc_declare): Adjust 'n->u.map_op' to 'n->u.map.op'. |
| 2730 |
(gfc_match_oacc_cache): Add readonly modifier parsing for OpenACC |
| 2731 |
cache directive. |
| 2732 |
(resolve_omp_clauses): Adjust 'n->u.map_op' to 'n->u.map.op'. |
| 2733 |
* trans-decl.cc (add_clause): Adjust 'n->u.map_op' to 'n->u.map.op'. |
| 2734 |
(finish_oacc_declare): Likewise. |
| 2735 |
* trans-openmp.cc (gfc_trans_omp_clauses): Set OMP_CLAUSE_MAP_READONLY, |
| 2736 |
OMP_CLAUSE__CACHE__READONLY to 1 when readonly is set. Adjust |
| 2737 |
'n->u.map_op' to 'n->u.map.op'. |
| 2738 |
(gfc_add_clause_implicitly): Adjust 'n->u.map_op' to 'n->u.map.op'. |
| 2739 |
|
| 2740 |
2024-03-13 Harald Anlauf <[email protected]> |
| 2741 |
|
| 2742 |
PR fortran/114001 |
| 2743 |
* expr.cc (gfc_is_simply_contiguous): Adjust logic so that CLASS |
| 2744 |
symbols are also handled. |
| 2745 |
|
| 2746 |
2024-03-13 Tobias Burnus <[email protected]> |
| 2747 |
|
| 2748 |
PR fortran/114283 |
| 2749 |
* trans-openmp.cc (gfc_omp_predetermined_mapping): Map dummy |
| 2750 |
procedures as firstprivate. |
| 2751 |
|
| 2752 |
2024-03-12 Harald Anlauf <[email protected]> |
| 2753 |
|
| 2754 |
PR fortran/110826 |
| 2755 |
* array.cc (gfc_array_dimen_size): When walking the ref chain of an |
| 2756 |
array and the ultimate component is a procedure pointer, do not try |
| 2757 |
to figure out its dimension even if it is a array-valued function. |
| 2758 |
|
| 2759 |
2024-03-06 Harald Anlauf <[email protected]> |
| 2760 |
|
| 2761 |
PR fortran/103707 |
| 2762 |
PR fortran/106987 |
| 2763 |
* arith.cc (is_hard_arith_error): New helper function to determine |
| 2764 |
whether an arithmetic error is "hard" or not. |
| 2765 |
(check_result): Use it. |
| 2766 |
(gfc_arith_divide): Set "Division by zero" only for regular |
| 2767 |
numerators of real and complex divisions. |
| 2768 |
(reduce_unary): Use is_hard_arith_error to determine whether a hard |
| 2769 |
or (recoverable) soft error was encountered. Terminate immediately |
| 2770 |
on hard error, otherwise remember code of first soft error. |
| 2771 |
(reduce_binary_ac): Likewise. |
| 2772 |
(reduce_binary_ca): Likewise. |
| 2773 |
(reduce_binary_aa): Likewise. |
| 2774 |
|
| 2775 |
2024-03-01 Harald Anlauf <[email protected]> |
| 2776 |
|
| 2777 |
PR fortran/104819 |
| 2778 |
* check.cc (gfc_check_null): Handle nested NULL()s. |
| 2779 |
(is_c_interoperable): Check for MOLD argument of NULL() as part of |
| 2780 |
the interoperability check. |
| 2781 |
* interface.cc (gfc_compare_actual_formal): Extend checks for NULL() |
| 2782 |
actual arguments for presence of MOLD argument when required by |
| 2783 |
Interp J3/22-146. |
| 2784 |
|
| 2785 |
2024-02-29 Alexander Westbrooks <[email protected]> |
| 2786 |
|
| 2787 |
PR fortran/82943 |
| 2788 |
PR fortran/86148 |
| 2789 |
PR fortran/86268 |
| 2790 |
* decl.cc (gfc_get_pdt_instance): Set the PDT instance field |
| 2791 |
'f2k_derived', if not set already, to point to the given |
| 2792 |
PDT template 'f2k_derived' namespace in order to give the |
| 2793 |
PDT instance referential access to the typebound procedures |
| 2794 |
of the template. |
| 2795 |
* gfortran.h (gfc_pdt_is_instance_of): Add prototype. |
| 2796 |
* resolve.cc (resolve_typebound_procedure): If the derived type |
| 2797 |
does not have the attribute 'pdt_template' set, compare the |
| 2798 |
dummy argument to the 'resolve_bindings_derived' type like usual. |
| 2799 |
If the derived type is a 'pdt_template', then check if the |
| 2800 |
dummy argument is an instance of the PDT template. If the derived |
| 2801 |
type is a PDT template, and the dummy argument is an instance of |
| 2802 |
that template, but the dummy argument 'param_list' is not |
| 2803 |
SPEC_ASSUMED, check if there are any LEN parameters in the |
| 2804 |
dummy argument. If there are no LEN parameters, then this implies |
| 2805 |
that there are only KIND parameters in the dummy argument. |
| 2806 |
If there are LEN parameters, this would be an error, for all |
| 2807 |
LEN parameters for the dummy argument MUST be assumed for |
| 2808 |
typebound procedures of PDTs. |
| 2809 |
(resolve_pdt): Add a check for ALLOCATABLE and POINTER attributes for |
| 2810 |
SPEC_DEFERRED parameters of PDT class symbols. ALLOCATABLE and |
| 2811 |
POINTER attributes for a PDT class symbol are stored in the |
| 2812 |
'class_pointer' and 'allocatable' attributes of the '_data' |
| 2813 |
component respectively. |
| 2814 |
* symbol.cc (gfc_pdt_is_instance_of): New function. |
| 2815 |
|
| 2816 |
2024-02-26 Harald Anlauf <[email protected]> |
| 2817 |
|
| 2818 |
PR fortran/114012 |
| 2819 |
* trans-expr.cc (gfc_conv_procedure_call): Evaluate non-trivial |
| 2820 |
arguments just once before assigning to an unlimited polymorphic |
| 2821 |
dummy variable. |
| 2822 |
|
| 2823 |
2024-02-23 Steve Kargl <[email protected]> |
| 2824 |
Harald Anlauf <[email protected]> |
| 2825 |
|
| 2826 |
PR fortran/114024 |
| 2827 |
* trans-stmt.cc (gfc_trans_allocate): When a source expression has |
| 2828 |
substring references, part-refs, or %re/%im inquiries, wrap the |
| 2829 |
entity in parentheses to force evaluation of the expression. |
| 2830 |
|
| 2831 |
2024-02-23 Tobias Burnus <[email protected]> |
| 2832 |
|
| 2833 |
* openmp.cc (gfc_match_omp_depobj): Use OPT_Wopenmp |
| 2834 |
as warning category in gfc_warning. |
| 2835 |
|
| 2836 |
2024-02-20 Peter Hill <[email protected]> |
| 2837 |
|
| 2838 |
PR fortran/105658 |
| 2839 |
* trans-expr.cc (gfc_conv_intrinsic_to_class): When passing an |
| 2840 |
array component reference of intrinsic type to a procedure |
| 2841 |
with an unlimited polymorphic dummy argument, a temporary |
| 2842 |
should be created. |
| 2843 |
|
| 2844 |
2024-02-17 Jakub Jelinek <[email protected]> |
| 2845 |
|
| 2846 |
PR fortran/113503 |
| 2847 |
* trans-expr.cc (alloc_scalar_allocatable_subcomponent): Don't |
| 2848 |
overwrite expr2->ts.u.cl->backend_decl, instead set size to |
| 2849 |
expr2->ts.u.cl->backend_decl first and use size instead of |
| 2850 |
expr2->ts.u.cl->backend_decl. |
| 2851 |
(gfc_trans_subcomponent_assign): Emit se.pre into block |
| 2852 |
before calling alloc_scalar_allocatable_subcomponent instead of |
| 2853 |
after it. |
| 2854 |
|
| 2855 |
2024-02-17 Harald Anlauf <[email protected]> |
| 2856 |
|
| 2857 |
PR fortran/113911 |
| 2858 |
* trans-array.cc (gfc_trans_deferred_array): Do not clobber |
| 2859 |
deferred length for a character variable passed as dummy argument. |
| 2860 |
|
| 2861 |
2024-02-15 Kwok Cheung Yeung <[email protected]> |
| 2862 |
|
| 2863 |
* dump-parse-tree.cc (show_attr): Handle omp_declare_target_indirect |
| 2864 |
attribute. |
| 2865 |
* f95-lang.cc (gfc_gnu_attributes): Add entry for 'omp declare |
| 2866 |
target indirect'. |
| 2867 |
* gfortran.h (symbol_attribute): Add omp_declare_target_indirect |
| 2868 |
field. |
| 2869 |
(struct gfc_omp_clauses): Add indirect field. |
| 2870 |
* openmp.cc (omp_mask2): Add OMP_CLAUSE_INDIRECT. |
| 2871 |
(gfc_match_omp_clauses): Match indirect clause. |
| 2872 |
(OMP_DECLARE_TARGET_CLAUSES): Add OMP_CLAUSE_INDIRECT. |
| 2873 |
(gfc_match_omp_declare_target): Check omp_device_type and apply |
| 2874 |
omp_declare_target_indirect attribute to symbol if indirect clause |
| 2875 |
active. Show warning if there are only device_type and/or indirect |
| 2876 |
clauses on the directive. |
| 2877 |
* trans-decl.cc (add_attributes_to_decl): Add 'omp declare target |
| 2878 |
indirect' attribute if symbol has indirect attribute set. |
| 2879 |
|
| 2880 |
2024-02-14 Steve Kargl <[email protected]> |
| 2881 |
|
| 2882 |
PR fortran/105847 |
| 2883 |
* trans-io.cc (transfer_namelist_element): When building the |
| 2884 |
namelist object name, if the use rename attribute is set, use |
| 2885 |
the local name specified in the use statement. |
| 2886 |
|
| 2887 |
2024-02-14 Jakub Jelinek <[email protected]> |
| 2888 |
|
| 2889 |
* error.cc (error_print): For u printing of ptrdiff_t, |
| 2890 |
print ptrdiff_t argument converted to unsigned long long and |
| 2891 |
masked with 2ULL * PTRDIFF_MAX + 1. |
| 2892 |
|
| 2893 |
2024-02-13 Tobias Burnus <[email protected]> |
| 2894 |
|
| 2895 |
PR middle-end/113904 |
| 2896 |
* trans-openmp.cc (gfc_trans_omp_declare_variant): Handle splitting of |
| 2897 |
OMP_TRAIT_PROPERTY_EXPR into OMP_TRAIT_PROPERTY_{DEV_NUM,BOOL}_EXPR. |
| 2898 |
* openmp.cc (gfc_match_omp_context_selector): Likewise; rejects |
| 2899 |
non-const device_num/condition; improve diagnostic. |
| 2900 |
|
| 2901 |
2024-02-13 Harald Anlauf <[email protected]> |
| 2902 |
|
| 2903 |
PR fortran/113866 |
| 2904 |
* trans-expr.cc (gfc_conv_procedure_call): When passing an optional |
| 2905 |
dummy argument to an optional dummy argument of a bind(c) procedure |
| 2906 |
and the dummy argument is passed via a CFI descriptor, no special |
| 2907 |
presence check and passing of a default NULL pointer is needed. |
| 2908 |
|
| 2909 |
2024-02-13 Steve Kargl <[email protected]> |
| 2910 |
|
| 2911 |
PR fortran/113883 |
| 2912 |
* trans-array.cc (gfc_trans_deferred_array): Set length to zero, |
| 2913 |
avoiding extraneous diagnostics. |
| 2914 |
|
| 2915 |
2024-02-10 Jakub Jelinek <[email protected]> |
| 2916 |
|
| 2917 |
* error.cc (error_print): Handle z and t modifiers on d, i and u. |
| 2918 |
* check.cc (gfc_check_transfer): Use %zd instead of %ld and casts to |
| 2919 |
long. |
| 2920 |
* primary.cc (gfc_convert_to_structure_constructor): Use %td instead |
| 2921 |
of %ld and casts to long. |
| 2922 |
|
| 2923 |
2024-02-10 Jakub Jelinek <[email protected]> |
| 2924 |
|
| 2925 |
* trans-common.cc (build_common_decl): Use %wu instead of %lu and |
| 2926 |
casts to unsigned long. |
| 2927 |
* resolve.cc (resolve_ordinary_assign): Use %wd instead of %ld and |
| 2928 |
casts to long. |
| 2929 |
* array.cc (gfc_resolve_character_array_constructor): Likewise. |
| 2930 |
* data.cc (create_character_initializer): Likewise. |
| 2931 |
|
| 2932 |
2024-02-09 Harald Anlauf <[email protected]> |
| 2933 |
|
| 2934 |
PR fortran/113799 |
| 2935 |
* arith.cc (reduce_unary): Remember any overflow encountered during |
| 2936 |
reduction of unary arithmetic operations on array constructors and |
| 2937 |
continue, and return error status, but terminate on serious errors. |
| 2938 |
|
| 2939 |
2024-01-28 Harald Anlauf <[email protected]> |
| 2940 |
|
| 2941 |
PR fortran/113377 |
| 2942 |
* trans-expr.cc (conv_dummy_value): Treat NULL actual argument to |
| 2943 |
optional dummy with the VALUE attribute as not present. |
| 2944 |
(gfc_conv_procedure_call): Likewise. |
| 2945 |
|
| 2946 |
2024-01-27 Harald Anlauf <[email protected]> |
| 2947 |
|
| 2948 |
PR fortran/104908 |
| 2949 |
* trans-array.cc (gfc_conv_array_ref): Restrict use of transformed |
| 2950 |
descriptor (sym->backend_decl) to the unlimited polymorphic case. |
| 2951 |
|
| 2952 |
2024-01-24 Harald Anlauf <[email protected]> |
| 2953 |
|
| 2954 |
PR fortran/113377 |
| 2955 |
* trans-expr.cc (conv_dummy_value): New. |
| 2956 |
(gfc_conv_procedure_call): Factor code for handling dummy arguments |
| 2957 |
with the VALUE attribute in the scalar case into conv_dummy_value(). |
| 2958 |
Reuse and adjust for calling elemental procedures. |
| 2959 |
|
| 2960 |
2024-01-21 Harald Anlauf <[email protected]> |
| 2961 |
|
| 2962 |
PR fortran/113377 |
| 2963 |
* trans-expr.cc (gfc_conv_procedure_call): Fix handling of optional |
| 2964 |
scalar arguments of intrinsic type with the VALUE attribute. |
| 2965 |
|
| 2966 |
2024-01-20 Mikael Morin <[email protected]> |
| 2967 |
|
| 2968 |
PR fortran/48776 |
| 2969 |
PR fortran/111291 |
| 2970 |
* parse.cc: Restore current interface to its previous value on error. |
| 2971 |
|
| 2972 |
2024-01-19 Harald Anlauf <[email protected]> |
| 2973 |
|
| 2974 |
PR fortran/113471 |
| 2975 |
* trans-array.cc (array_bound_check_elemental): Array bounds check |
| 2976 |
shall apply here to elemental dimensions of an array section only. |
| 2977 |
|
| 2978 |
2024-01-13 Harald Anlauf <[email protected]> |
| 2979 |
|
| 2980 |
PR fortran/67277 |
| 2981 |
* trans-intrinsic.cc (gfc_conv_intrinsic_ishftc): Handle optional |
| 2982 |
dummy argument for SIZE passed to ISHFTC. Set default value to |
| 2983 |
BIT_SIZE(I) when missing. |
| 2984 |
|
| 2985 |
2024-01-13 Harald Anlauf <[email protected]> |
| 2986 |
|
| 2987 |
PR fortran/113305 |
| 2988 |
* gfortran.h (gfc_loop_annot): New. |
| 2989 |
(gfc_iterator, gfc_forall_iterator): Use for annotation control. |
| 2990 |
* array.cc (gfc_copy_iterator): Adjust. |
| 2991 |
* gfortran.texi: Document annotations IVDEP, UNROLL n, VECTOR, |
| 2992 |
NOVECTOR as applied to DO CONCURRENT. |
| 2993 |
* parse.cc (parse_do_block): Parse annotations IVDEP, UNROLL n, |
| 2994 |
VECTOR, NOVECTOR as applied to DO CONCURRENT. Apply UNROLL only to |
| 2995 |
first loop control variable. |
| 2996 |
* trans-stmt.cc (iter_info): Use gfc_loop_annot. |
| 2997 |
(gfc_trans_simple_do): Adjust. |
| 2998 |
(gfc_trans_forall_loop): Annotate loops with IVDEP, UNROLL n, |
| 2999 |
VECTOR, NOVECTOR as needed for DO CONCURRENT. |
| 3000 |
(gfc_trans_forall_1): Handle loop annotations. |
| 3001 |
|
| 3002 |
2024-01-08 Harald Anlauf <[email protected]> |
| 3003 |
|
| 3004 |
PR fortran/113245 |
| 3005 |
* trans-intrinsic.cc (gfc_conv_intrinsic_size): Use |
| 3006 |
gfc_conv_expr_present() for proper check of optional DIM argument. |
| 3007 |
|
| 3008 |
2024-01-06 Harald Anlauf <[email protected]> |
| 3009 |
José Rui Faustino de Sousa <[email protected]> |
| 3010 |
|
| 3011 |
PR fortran/96724 |
| 3012 |
* iresolve.cc (gfc_resolve_repeat): Force conversion to |
| 3013 |
gfc_charlen_int_kind before call to gfc_multiply. |
| 3014 |
|
| 3015 |
2024-01-04 David Malcolm <[email protected]> |
| 3016 |
|
| 3017 |
* lang.opt.urls: New file, autogenerated by |
| 3018 |
regenerate-opt-urls.py. |
| 3019 |
|
| 3020 |
2024-01-03 Harald Anlauf <[email protected]> |
| 3021 |
|
| 3022 |
* trans-types.cc (gfc_get_nodesc_array_type): Clear used gmp |
| 3023 |
variables. |
| 3024 |
|
| 3025 |
2024-01-03 Jakub Jelinek <[email protected]> |
| 3026 |
|
| 3027 |
* gfortranspec.cc (lang_specific_driver): Update copyright notice |
| 3028 |
dates. |
| 3029 |
* gfc-internals.texi: Bump @copying's copyright year. |
| 3030 |
* gfortran.texi: Ditto. |
| 3031 |
* intrinsic.texi: Ditto. |
| 3032 |
* invoke.texi: Ditto. |
| 3033 |
|
| 3034 |
Copyright (C) 2024 Free Software Foundation, Inc. |
| 3035 |
|
| 3036 |
Copying and distribution of this file, with or without modification, |
| 3037 |
are permitted in any medium without royalty provided the copyright |
| 3038 |
notice and this notice are preserved. |