blob: dcbfd54114e8449ae0389c95137c0e394b6c9e5f [file] [log] [blame]
2022-09-27 Harald Anlauf <>
PR fortran/107054
* (gfc_simplify_unpack): Replace assert by condition
that terminates simplification when there are not enough elements
in the constructor of argument VECTOR.
2022-09-25 Mikael Morin <>
PR fortran/41453
* (gfc_conv_procedure_call): Allow strictly
matching derived types.
2022-09-25 Mikael Morin <>
PR fortran/41453
PR fortran/99169
* (gfc_conv_procedure_call): Remove conditions
on ALLOCATABLE and POINTER attributes guarding clobber
2022-09-25 Mikael Morin <>
PR fortran/41453
PR fortran/87401
* (gfc_conv_procedure_call): Remove condition
disabling clobber generation for ASSOCIATE variables.
2022-09-25 Mikael Morin <>
PR fortran/41453
PR fortran/87395
* (gfc_conv_procedure_call): Remove condition
on SAVE attribute guarding clobber generation.
2022-09-25 Mikael Morin <>
PR fortran/41453
PR fortran/87395
* (gfc_conv_procedure_call): Remove condition
disabling clobber generation for dummy variables. Remove
obsolete comment.
2022-09-25 Harald Anlauf <>
Mikael Morin <>
PR fortran/105012
* (gfc_conv_procedure_call): Use dummy
information from associated_dummy if there is no information
from the procedure interface.
2022-09-25 Mikael Morin <>
PR fortran/106817
* (gfc_conv_procedure_call): Collect all clobbers
to their own separate block. Append the block of clobbers to
the procedure preliminary block after the argument evaluation
codes for all the arguments.
2022-09-25 Mikael Morin <>
PR fortran/105012
* (gfc_conv_procedure_call): Retrieve variable
from the just calculated variable reference.
2022-09-25 Mikael Morin <>
* trans.h (gfc_conv_expr_reference): Remove add_clobber
* (gfc_conv_expr_reference): Ditto. Inline code
depending on add_clobber and conditions controlling it ...
(gfc_conv_procedure_call): ... to here.
2022-09-22 José Rui Faustino de Sousa <>
PR fortran/100103
* (gfc_is_reallocatable_lhs): Add select rank
temporary associate names as possible targets of automatic
2022-09-22 Harald Anlauf <>
PR fortran/82868
* (generate_coarray_sym_init): Skip symbol
if attr.associate_var.
2022-09-20 Tobias Burnus <>
PR fortran/104143
* (compare_parameter): Permit scalar args to
'type(*), dimension(*)'.
2022-09-20 Harald Anlauf <>
PR fortran/106986
* (gfc_simplify_findloc): Do not try to simplify
intrinsic FINDLOC when the ARRAY argument has a NULL shape.
2022-09-20 Harald Anlauf <>
PR fortran/106985
* (gfc_simplify_expr): Avoid NULL pointer dereference.
2022-09-20 José Rui Faustino de Sousa <>
PR fortran/100132
* (create_fn_spec): Fix function attributes when
passing polymorphic pointers.
2022-09-20 Martin Liska <>
PR fortran/106636
* gfortran.texi: Add back link to ISO_VARYING_STRING.
2022-09-20 Martin Liska <>
* gfortran.texi: Replace "the the" with "the".
2022-09-20 Martin Liska <>
PR fortran/106636
* gfortran.texi: Remove 2 dead links.
2022-09-19 Francois-Xavier Coudert <>
* libgfortran.h: Declare GFC_FPE_AWAY.
2022-09-15 Harald Anlauf <>
PR fortran/106857
* (gfc_simplify_pack): Check for NULL pointer dereferences
while walking through constructors (error recovery).
2022-09-15 Harald Anlauf <>
Steven G. Kargl <>
PR fortran/104314
* (deferred_op_assign): Do not try to generate temporary
for deferred character length assignment if types do not agree.
2022-09-15 Richard Biener <>
* (gfc_init_decl_processing): Do not initialize
2022-09-14 Julian Brown <>
* (gfc_trans_omp_clauses): Don't create
GOMP_MAP_TO_PSET mappings for class metadata, nor GOMP_MAP_POINTER
mappings for POINTER_TYPE_P decls.
2022-09-10 Francois-Xavier Coudert <>
PR fortran/95644
* (gfc_init_builtin_functions): Declare FMA
* mathbuiltins.def: Declare FMA built-ins.
* (conv_intrinsic_ieee_fma): New function.
(conv_intrinsic_ieee_signbit): New function.
(gfc_build_intrinsic_lib_fndecls): Add cases for FMA and
2022-09-08 Tobias Burnus <>
PR fortran/106670
* (skip_fixed_omp_sentinel): Add -Wsurprising warning
for 'omx' sentinels with -fopenmp.
* invoke.texi (-Wsurprising): Document additional warning case.
2022-09-06 Tobias Burnus <>
* (resolve_omp_clauses): Remove ordered/linear
check as it is handled now in the middle end.
2022-09-05 Tobias Burnus <>
* (show_omp_namelist, show_omp_clauses): Handle
omp_cur_iteration and distinguish doacross/depend.
* gfortran.h (enum gfc_omp_depend_doacross_op): Renamed from
(enum gfc_omp_depend_doacross_op): Add OMP_DOACROSS_SINK_FIRST,
(gfc_omp_namelist) Handle renaming, rename depend_op to
(struct gfc_omp_clauses): Add doacross_source.
* (gfc_match_omp_depend_sink): Renamed to ...
(gfc_match_omp_doacross_sink): ... this; handle omp_all_memory.
(enum omp_mask2): Add OMP_CLAUSE_DOACROSS.
(gfc_match_omp_clauses): Handle 'doacross' and syntax changes to
(gfc_match_omp_depobj): Simplify as sink/source are now impossible.
(gfc_match_omp_ordered_depend): Request OMP_CLAUSE_DOACROSS.
(resolve_omp_clauses): Update sink/source checks.
(gfc_resolve_omp_directive): Resolve EXEC_OMP_ORDERED clauses.
* (decode_omp_directive): Handle 'ordered doacross'.
* (gfc_trans_omp_clauses): Handle doacross.
(gfc_trans_omp_do): Fix OMP_FOR_ORIG_DECLS handling if 'ordered'
clause is present.
(gfc_trans_omp_depobj): Update for member name change.
2022-09-04 José Rui Faustino de Sousa <>
PR fortran/100136
* (gfc_conv_procedure_call): Add handling of pointer
2022-09-03 José Rui Faustino de Sousa <>
PR fortran/100245
* (trans_class_assignment): Add if clause to handle
derived type in the LHS.
2022-09-03 Jakub Jelinek <>
* (gfc_trans_omp_clauses): Use
on it.
2022-09-02 Harald Anlauf <>
Steven G. Kargl <>
PR fortran/99349
* (match_data_constant): Avoid NULL pointer dereference.
2022-08-26 Jakub Jelinek <>
PR fortran/106579
* Include realmpfr.h.
(conv_intrinsic_ieee_value): New function.
(gfc_conv_ieee_arithmetic_function): Handle ieee_value.
2022-08-26 Jakub Jelinek <>
PR fortran/106579
* (gfc_init_builtin_functions): Initialize
New enum.
* (conv_intrinsic_ieee_class): New function.
(gfc_conv_ieee_arithmetic_function): Handle ieee_class.
2022-08-26 Jakub Jelinek <>
* (gfc_init_builtin_functions): Initialize
2022-08-25 Tobias Burnus <>
* (parse_omp_structured_block): When parsing strictly
structured blocks, issue an error if the end-directive comes
before the 'end block'.
2022-08-24 Harald Anlauf <>
PR fortran/103694
* (simplify_size): The size expression of an array cannot
be simplified if an error occurs while resolving the array spec.
2022-08-22 Harald Anlauf <>
PR fortran/106557
* (gfc_simplify_ibclr): Ensure consistent results of
the simplification by dropping a redundant memory representation
of argument x.
(gfc_simplify_ibset): Likewise.
2022-08-20 Jakub Jelinek <>
PR fortran/46539
* lang.opt (static-libgfortran, static-libquadmath): Change Fortran
to Driver.
* (gfc_handle_option): Don't handle OPT_static_libgfortran
nor OPT_static_libquadmath here.
2022-08-18 Harald Anlauf <>
2022-07-31 Harald Anlauf <>
PR fortran/77652
* (gfc_check_associated): Make the rank check of POINTER
vs. TARGET match the allowed forms of pointer assignment for the
selected Fortran standard.
2022-08-17 Francois-Xavier Coudert <>
Jakub Jelinek <>
PR fortran/46539
* lang.opt (static-libquadmath): New option.
* invoke.texi (-static-libquadmath): Document it.
* (gfc_handle_option): Error out if -static-libquadmath
is passed but we do not support it.
2022-08-17 Tobias Burnus <>
PR fortran/106566
* (gfc_match_omp_clauses): Fix setting linear-step value
to 1 when not specified.
(gfc_match_omp_declare_simd): Accept module procedures.
2022-08-16 Martin Liska <>
* gfortran.texi: Fix link destination to a valid URL.
2022-07-31 Harald Anlauf <>
Steven G. Kargl <>
PR fortran/92805
* (gfc_match_small_literal_int): Make gobbling of leading
whitespace optional.
(gfc_match_name): Likewise.
(gfc_match_char): Likewise.
* match.h (gfc_match_small_literal_int): Adjust prototype.
(gfc_match_name): Likewise.
(gfc_match_char): Likewise.
* (match_kind_param): Match small literal int or name
without gobbling whitespace.
(get_kind): Do not skip over blanks.
(match_string_constant): Likewise.
2022-07-31 Harald Anlauf <>
PR fortran/77652
* (gfc_check_associated): Make the rank check of POINTER
vs. TARGET match the allowed forms of pointer assignment for the
selected Fortran standard.
2022-07-29 Tobias Burnus <>
* (resolve_omp_clauses): Permit assumed-size arrays
in uniform clause.
2022-07-26 Harald Anlauf <>
PR fortran/103504
* (get_sym_storage_size): Array bounds and character
length can only be of integer type.
2022-07-21 Martin Liska <>
* intrinsic.texi: Remove trailing dots for 2 Fortran fns.
2022-07-20 Harald Anlauf <>
PR fortran/101330
* (gfc_match_iterator): Remove left-over code from
development that could lead to a crash on invalid input.
2022-07-19 Harald Anlauf <>
PR fortran/103590
* (find_array_spec): Change function result to bool to
enable error recovery. Generate error message for invalid array
reference of non-array entity instead of an internal error.
(gfc_resolve_ref): Use function result from find_array_spec for
error recovery.
2022-07-15 Steve Kargl <>
PR fortran/104313
* (gfc_generate_return): Do not generate conflicting
fake results for functions with no result variable under -ff2c.
2022-07-14 Harald Anlauf <>
Steven G. Kargl <>
PR fortran/106209
* (add_init_expr_to_sym): Handle bad initializers for
implied-shape arrays.
2022-07-12 Harald Anlauf <>
PR fortran/106049
* (is_constant_array_expr): A non-zero-sized constant
array shall have a non-empty constructor. When the constructor is
empty or missing, treat as non-constant.
2022-07-04 Tobias Burnus <>
Jakub Jelinek <>
* gfortran.h (gfc_omp_namelist): Update by creating 'linear' struct,
move 'linear_op' as 'op' to id and add 'old_modifier' to it.
* (show_omp_namelist): Update accordingly.
* (mio_omp_declare_simd): Likewise.
* (gfc_trans_omp_clauses): Likewise.
* (resolve_omp_clauses): Likewise; accept new-style
'val' modifier with do/simd.
(gfc_match_omp_clauses): Handle OpenMP 5.2 linear clause syntax.
2022-07-04 Tobias Burnus <>
Chung-Lin Tang <>
Thomas Schwinge <>
* (gfc_match_omp_requires): Remove sorry.
* (decode_omp_directive): Don't regard 'declare target'
as target usage for 'omp requires'; add more flags to
2022-07-01 Tobias Burnus <>
* (show_omp_namelist): For the map-type,
also handle the always modifer and release/delete.
* (resolve_omp_clauses): Accept tofrom
map-type modifier for target enter/exit data,
but use 'to' / 'from' internally.
2022-06-30 Harald Anlauf <>
Steven G. Kargl <>
PR fortran/103137
PR fortran/103138
PR fortran/103693
PR fortran/105243
* (gfc_match_data_decl): Reject CLASS entity declaration
when it is given the PARAMETER attribute.
2022-06-29 Harald Anlauf <>
Steven G. Kargl <>
PR fortran/106121
* (gfc_simplify_extends_type_of): Do not attempt to
simplify when one of the arguments is a CLASS variable that was
not properly declared.
2022-06-28 Jakub Jelinek <>
* gfortran.h (gfc_real_info): Add use_iec_60559 bitfield.
* trans-types.h (gfc_real16_use_iec_60559): Declare.
* (gfc_real16_use_iec_60559): Define.
(gfc_init_kinds): When building powerpc64le-linux libgfortran
on glibc 2.26 to 2.31, set gfc_real16_use_iec_60559 and
(gfc_build_real_type): Set gfc_real16_use_iec_60559 and use_iec_60559
on glibc 2.26 or later.
* (gfc_build_intrinsic_lib_fndecls): Adjust
comment. Handle gfc_real16_use_iec_60559.
(gfc_get_intrinsic_lib_fndecl): Handle use_iec_60559.
2022-06-26 Harald Anlauf <>
PR fortran/105691
* (gfc_simplify_index): Replace old simplification
code by the equivalent of the runtime library implementation. Use
HOST_WIDE_INT instead of int for string index, length variables.
2022-06-26 Harald Anlauf <>
PR fortran/105954
* (variable_decl): Adjust upper bounds for explicit-shape
specs with constant bound expressions to ensure non-negative
2022-06-24 Harald Anlauf <>
PR fortran/105813
* (gfc_check_unpack): Try to simplify MASK argument to
UNPACK so that checking of the VECTOR argument can work when MASK
is a variable.
2022-06-18 Harald Anlauf <>
PR fortran/105986
* (gfc_simplify_btest): Add check for POS argument.
(gfc_simplify_ibclr): Add check for POS argument.
(gfc_simplify_ibits): Add check for POS and LEN arguments.
(gfc_simplify_ibset): Add check for POS argument.
2022-06-08 Tobias Burnus <>
* (gfc_match_omp_clauses): Check also parent namespace
for 'requires reverse_offload'.
2022-06-07 Jakub Jelinek <>
* (gfc_trans_omp_clauses): Set
clauses unconditionally for now.
2022-06-03 Tobias Burnus <>
* (OMP_SCOPE_CLAUSES): Add firstprivate and allocate.
2022-06-02 David Malcolm <>
* (gfc_get_sarif_source_language): New.
2022-05-31 Jason Merrill <>
* (fortran.tags): Look at *.cc.
2022-05-30 Harald Anlauf <>
PR fortran/91300
* libgfortran.h: Define new error code LIBERROR_NO_MEMORY.
* (gfc_trans_allocate): Generate code for setting
ERRMSG depending on result of STAT result of ALLOCATE.
* (gfc_allocate_using_malloc): Use STAT value of
LIBERROR_NO_MEMORY in case of failed malloc.
2022-05-28 Tobias Burnus <>
* (show_omp_clauses): Handle OMP_LIST_ENTER.
* gfortran.h: Add OMP_LIST_ENTER.
* (enum omp_mask2, OMP_DECLARE_TARGET_CLAUSES): Add
(gfc_match_omp_clauses, gfc_match_omp_declare_target,
resolve_omp_clauses): Handle 'enter' clause.
2022-05-27 Tobias Burnus <>
Chung-Lin Tang <>
* (gfc_check_omp_requires): Fix clause name in error.
2022-05-24 Tobias Burnus <>
PR c/105378
* (gfc_match_omp_taskwait): Accept nowait.
2022-05-23 Tobias Burnus <>
PR fortran/104949
* (gfc_omp_array_size): New.
(gfc_trans_omp_variable_list): Never turn has_device_addr
to firstprivate.
* trans.h (gfc_omp_array_size): New.
2022-05-18 Tobias Burnus <>
* gfortran.h (enum gfc_omp_depend_op): Add OMP_DEPEND_INOUTSET.
(gfc_omp_clauses): Enlarge ENUM_BITFIELD.
* (show_omp_namelist, show_omp_clauses): Handle
'inoutset' depend modifier.
* (gfc_match_omp_clauses, gfc_match_omp_depobj): Likewise.
* (gfc_trans_omp_clauses, gfc_trans_omp_depobj):
2022-05-17 Tobias Burnus <>
* (show_omp_namelist): Handle omp_all_memory.
* (gfc_match_omp_variable_list, gfc_match_omp_depend_sink,
gfc_match_omp_clauses, resolve_omp_clauses): Likewise.
* (gfc_trans_omp_clauses, gfc_trans_omp_depobj):
* (resolve_symbol): Reject it as symbol.
2022-05-16 Martin Liska <>
* (gfc_code_walker): Use ARRAY_SIZE.
* (gfc_match_omp_context_selector_specification): Likewise.
* (conv_intrinsic_ieee_builtin): Likewise.
* (gfc_get_array_descr_info): Likewise.
2022-05-13 Tobias Burnus <>
* (gfc_trans_omp_clauses): When mapping nondescriptor
array sections, use GOMP_MAP_FIRSTPRIVATE_POINTER instead of
GOMP_MAP_POINTER for the pointer attachment.
2022-05-11 Harald Anlauf <>
Steven G. Kargl <>
PR fortran/105230
* (find_array_section): Correct logic to avoid NULL
pointer dereference on invalid array section.
2022-05-10 Harald Anlauf <>
PR fortran/105526
* (check_team): New.
(gfc_resolve_code): Add checks for arguments to coarray intrinsics
2022-05-09 Harald Anlauf <>
PR fortran/105501
* (gfc_match_if): Adjust patterns used for matching.
(gfc_match_select_rank): Likewise.
* (decode_statement): Likewise.
2022-05-05 Sandra Loosemore <>
* gfortran.h (struct gfc_omp_clauses): Add non_rectangular bit.
* (is_outer_iteration_variable): New function.
(expr_is_invariant): New function.
(bound_expr_is_canonical): New function.
(resolve_omp_do): Replace existing non-rectangularity error with
check for canonical form and setting non_rectangular bit.
* (gfc_trans_omp_do): Transfer non_rectangular
flag to generated tree structure.
2022-05-02 Sandra Loosemore <>
* (gfc_trans_omp_critical): Set location on OMP
tree node.
(gfc_trans_omp_do): Likewise.
(gfc_trans_omp_masked): Likewise.
(gfc_trans_omp_do_simd): Likewise.
(gfc_trans_omp_scope): Likewise.
(gfc_trans_omp_taskgroup): Likewise.
(gfc_trans_omp_taskwait): Likewise.
(gfc_trans_omp_distribute): Likewise.
(gfc_trans_omp_taskloop): Likewise.
(gfc_trans_omp_master_masked_taskloop): Likewise.
2022-04-29 Thomas Koenig <>
* gfortran.texi: Fix exchanged period and letter.
2022-04-28 Thomas Koenig <>
* gfortran.texi: Mention r16_ieee and r16_ibm.
* invoke.texi: Likewise.
2022-04-27 Mikael Morin <>
PR fortran/103662
PR fortran/105379
* (compare_bounds): Use bool as return type.
Support non-constant expressions.
(gfc_compare_array_spec): Update call to compare_bounds.
2022-04-27 Mikael Morin <>
PR fortran/102043
PR fortran/105381
* (non_negative_strides_array_p): Inline variable
orig_decl and merge nested if conditions. Add condition to not
recurse if the next argument is the same as the current.
2022-04-25 Jakub Jelinek <>
Thomas Schwinge <>
PR fortran/104717
* (gfc_trans_oacc_construct): Wrap construct body
in an extra BIND_EXPR.
2022-04-24 Mikael Morin <>
Jakub Jelinek <>
PR fortran/103662
* (gfc_compare_derived_types): Support comparing
unlimited polymorphic fake symbols. Recursively compare class
descriptor types and virtual table types.
* (resolve_fl_derived): Add type to the types list
on unlimited polymorphic short-circuit return.
2022-04-22 Mikael Morin <>
Richard Biener <>
PR fortran/102043
* trans.h (gfc_build_array_ref): Add non_negative_offset
* (gfc_build_array_ref): Ditto. Use pointer arithmetic
if non_negative_offset is false.
* (gfc_conv_substring): Set flag in the call to
* (gfc_get_cfi_dim_item,
gfc_conv_descriptor_dimension): Same.
(build_array_ref): Decide on whether to set the flag and update
the call.
(gfc_conv_scalarized_array_ref): Same. New argument tmp_array.
(gfc_conv_tmp_array_ref): Update call to
(non_negative_strides_array_p): New function.
2022-04-22 Mikael Morin <>
PR fortran/102043
* (gfc_conv_expr_descriptor): Use
2022-04-22 Mikael Morin <>
PR fortran/102043
* Add handling for the case where the array
is referenced using pointer arithmetic.
2022-04-22 Mikael Morin <>
PR fortran/102043
* Pre-evaluate src and dest to variables
before using them.
2022-04-21 Fritz Reese <>
PR fortran/105310
* (gfc_conv_union_initializer): Pass vec* by reference.
2022-04-13 Tobias Burnus <>
PR fortran/105242
* (match_exit_cycle): Handle missing OMP LOOP, DO and SIMD
directives in the EXIT/CYCLE diagnostic.
2022-04-10 Harald Anlauf <>
PR fortran/105184
* (match_subscript): Reject assumed size coarray
specification with missing lower bound.
* (resolve_allocate_expr): Fix logic for checking
allocate-coshape-spec in ALLOCATE statement.
2022-04-05 Sandra Loosemore <>
* (gfc_split_omp_clauses): Fix mask for
2022-04-05 Harald Anlauf <>
PR fortran/104210
* (eval_intrinsic): Avoid NULL pointer dereference.
(gfc_zero_size_array): Likewise.
2022-04-05 Harald Anlauf <>
Steven G. Kargl <>
PR fortran/105138
* (gfc_is_intrinsic): When a symbol refers to a
RECURSIVE procedure, it cannot be an INTRINSIC.
2022-03-30 Harald Anlauf <>
PR fortran/100892
* (gfc_check_associated): Avoid NULL pointer dereference.
2022-03-29 Harald Anlauf <>
Steven G. Kargl <>
PR fortran/104571
* (resolve_elemental_actual): Avoid NULL pointer
2022-03-29 Harald Anlauf <>
PR fortran/50549
* (resolve_structure_cons): Reject pointer assignments
of character with different lengths in structure constructor.
2022-03-25 Jakub Jelinek <>
PR fortran/103691
* (gfc_conv_array_initializer): If TYPE_MAX_VALUE is
smaller than TYPE_MIN_VALUE (i.e. empty array), ignore the
initializer; if TYPE_MIN_VALUE is equal to TYPE_MAX_VALUE, use just
the TYPE_MIN_VALUE as index instead of RANGE_EXPR.
2022-03-23 Tobias Burnus <>
PR fortran/103560
* (add_path_to_list): Don't append '/' to the
save include path.
(open_included_file): Use '/' in concatenating path + file name.
* (gzopen_included_file_1): Likewise.
2022-03-22 Harald Anlauf <>
PR fortran/104999
* (gfc_simplify_cshift): Ensure temporary holding
source array stride is initialized.
2022-03-19 Mikael Morin <>
PR fortran/104228
PR fortran/104570
* (parse_associate): Use a new distinct gfc_charlen if the
copied type has one whose length is not known to be constant.
* (resolve_assoc_var): Reset charlen if it’s shared with
the associate target regardless of the expression type.
Don’t reinitialize charlen if it’s deferred.
2022-03-18 Tobias Burnus <>
PR fortran/103039
* (gfc_omp_clause_copy_ctor, gfc_omp_clause_dtor):
Only privatize pointer for associate names.
2022-03-18 Tobias Burnus <>
PR fortran/103039
* (resolve_omp_clauses): Improve associate-name diagnostic
for select type/rank.
2022-03-11 Tobias Burnus <>
* (gfc_trans_omp_clauses, gfc_omp_finish_clause):
Obtain size for mapping only if allocatable array is allocated.
2022-03-09 Harald Anlauf <>
PR fortran/104849
* (find_array_section): Avoid NULL pointer dereference on
invalid array section.
2022-03-09 Tobias Burnus <>
* (gfc_conv_intrinsic_sizeof): Fix CLASS handling.
2022-03-08 Tobias Burnus <>
PR fortran/104126
* (gfc_conv_gfc_desc_to_cfi_desc): Handle NULL
without MOLD.
2022-03-08 Harald Anlauf <>
PR fortran/104811
* (optimize_minmaxloc): Do not attempt
frontend-optimization of MINLOC/MAXLOC for character arrays, as
there is no suitable code yet for inline expansion.
2022-03-07 Tobias Burnus <>
PR fortran/99585
PR fortran/104430
* (conv_parent_component_references): Fix comment;
simplify comparison.
(gfc_maybe_dereference_var): Avoid d referencing a nonpointer.
2022-03-07 Tobias Burnus <>
* (gfc_ref_dimen_size): Fix comment typo.
* (gfc_dump_c_prototypes): Likewise.
* (cfe_code): Likewise.
* gfortran.texi: Likewise.
* (generate_component_assignments): Likewise.
* (gfc_simplify_this_image): Likewise.
* (trans_scalar_class_assign,
gfc_maybe_dereference_var): Likewise.
* intrinsic.texi: Remove word duplication.
* invoke.texi: Likewise.
2022-03-07 Jakub Jelinek <>
* Fix up duplicated word issue in a comment.
* gfortran.h: Likewise.
* Likewise.
2022-03-07 Martin Liska <>
* (gfc_is_intrinsic): Remove asterisk from error
2022-03-07 Martin Liska <>
PR translation/90148
* (gfc_is_intrinsic): Put
quote to a proper place.
2022-03-03 Kwok Cheung Yeung <>
PR fortran/104131
* (gfc_match_omp_detach): Move check for type of event
handle to...
(resolve_omp_clauses) Also check that the event handle is
not an array, or an array access or structure element access.
2022-03-02 Harald Anlauf <>
PR fortran/104573
* (resolve_structure_cons): Avoid NULL pointer
dereference when there is no valid component.
2022-02-24 Harald Anlauf <>
PR fortran/84519
* (show_code_node): Dump QUIET specifier when
* (gfc_match_stopcode): Implement parsing of F2018 QUIET
specifier. F2018 stopcodes may have non-default integer kind.
* (gfc_resolve_code): Add checks for QUIET argument.
* (gfc_trans_stop): Pass QUIET specifier to call of
library function.
2022-02-22 Harald Anlauf <>
PR fortran/104619
* (resolve_structure_cons): Skip shape check if shape
of constructor cannot be determined at compile time.
2022-02-20 Harald Anlauf <>
PR fortran/77693
* (gfc_assign_data_value): If a variable in a data
statement has the POINTER attribute, check for allowed initial
data target that is compatible with pointer assignment.
* gfortran.h (IS_POINTER): New macro.
2022-02-15 Tobias Burnus <>
* (gfc_trans_omp_depobj): Fix to alloc/ptr dummy
and for c_ptr.
2022-02-15 Tobias Burnus <>
* (gfc_trans_omp_clauses, gfc_trans_omp_depobj):
Depend on the proper addr, for ptr/alloc depend on pointee.
2022-02-14 Harald Anlauf <>
PR fortran/104211
* (find_array_section): Replace assertion by error
recovery when encountering bad array constructor.
2022-02-13 Mikael Morin <>
PR fortran/104228
* (resolve_assoc_var): Also create a new character
length for non-dummy associate targets.
* (trans_associate_var): Initialize character length
even if no temporary is used for the associate variable.
2022-02-10 Roger Sayle <>
Tobias Burnus <>
* (GFC_EQUIV_FMT): New macro respecting the
target's NO_DOT_IN_LABEL and NO_DOLLAR_IN_LABEL preferences.
(build_equiv_decl): Use GFC_EQUIV_FMT here.
2022-02-10 Tobias Burnus <>
PR fortran/104329
* (resolve_omp_atomic): Defer extra-code assert after
other diagnostics.
2022-02-10 Marcel Vollweiler <>
* (show_omp_clauses): Added OMP_LIST_HAS_DEVICE_ADDR
* gfortran.h: Added OMP_LIST_HAS_DEVICE_ADDR.
* (enum omp_mask2): Added OMP_CLAUSE_HAS_DEVICE_ADDR.
(gfc_match_omp_clauses): Parse HAS_DEVICE_ADDR clause.
(resolve_omp_clauses): Same.
* (gfc_trans_omp_variable_list): Added
(gfc_trans_omp_clauses): Firstprivatize of array descriptors.
2022-02-09 Harald Anlauf <>
PR fortran/66193
* (reduce_binary_ac): When reducing binary expressions,
try simplification. Handle case of empty constructor.
(reduce_binary_ca): Likewise.
2022-02-03 Harald Anlauf <>
PR fortran/104311
* (gfc_calculate_transfer_sizes): Checks for case when
storage size of SOURCE is greater than zero while the storage size
of MOLD is zero and MOLD is an array shall not depend on SIZE.
2022-02-03 Jakub Jelinek <>
PR fortran/104328
* (is_scalar_intrinsic_expr): If must_be_var && conv_ok
and expr is conversion, verify it is a conversion from EXPR_VARIABLE
with non-NULL symtree. Check ->block->next before dereferencing it.
2022-02-01 Harald Anlauf <>
PR fortran/104331
* (gfc_simplify_eoshift): Avoid NULL pointer
dereference when shape is not set.
2022-01-28 Andre Vehreschild <>
PR fortran/103790
* (structure_alloc_comps): Prevent descriptor
stacking for non-array data; do not broadcast caf-tokens.
* (conv_co_collective): Prevent generation
of unused descriptor.
2022-01-28 Andre Vehreschild <>
2022-01-28 Andre Vehreschild <>
PR fortran/103790
* (structure_alloc_comps): Prevent descriptor
stacking for non-array data; do not broadcast caf-tokens.
* (conv_co_collective): Prevent generation
of unused descriptor.
2022-01-28 Andre Vehreschild <>
PR fortran/103790
* (structure_alloc_comps): Prevent descriptor
stacking for non-array data; do not broadcast caf-tokens.
* (conv_co_collective): Prevent generation
of unused descriptor.
2022-01-27 Harald Anlauf <>
PR fortran/104128
* (gfc_copy_expr): Convert internal representation of
string to wide char in value only for default character kind.
* (interpret_array): Pass flag for conversion of
wide chars.
(gfc_target_interpret_expr): Likewise.
2022-01-27 Harald Anlauf <>
PR fortran/84784
* (conv_intrinsic_image_status): Convert result
to resulting (default) integer type.
(conv_intrinsic_team_number): Likewise.
(gfc_conv_intrinsic_popcnt_poppar): Likewise.
2022-01-25 Harald Anlauf <>
PR fortran/104227
* (gfc_calculate_transfer_sizes): Fix checking of arrays
passed as MOLD argument to the TRANSFER intrinsic for having
storage size zero.
2022-01-25 Harald Anlauf <>
PR fortran/104212
* (gfc_check_norm2): Check that optional argument DIM is
(gfc_check_parity): Likewise.
2022-01-24 Jakub Jelinek <>
* lang.opt (fconvert=): Add EnumSet property and mention also
r16_ieee and r16_ibm arguments.
(big-endian, little-endian, native, swap): Add Set(1) property.
(r16_ieee, r16_ibm): New EnumValue entries with Set(2) property.
* (gfc_init_kinds): Emit gfc_fatal_error for
-fconvert=r16_ieee or -fconvert=r16_ibm when R16_IEEE <=> R16_IBM
conversions aren't supported.
2022-01-22 Harald Anlauf <>
PR fortran/104127
* (gfc_simplify_transfer): Ensure that the result
typespec is set up for TRANSFER with MOLD of type CHARACTER
including character length even if the result is a zero-sized
2022-01-20 Sandra Loosemore <>
PR fortran/103695
PR fortran/102621
* gfortran.h (struct gfc_namespace) Add omp_affinity_iterator
* (show_iterator): Use it.
* (gfc_match_iterator): Likewise.
(resolve_omp_clauses): Likewise.
* (gfc_finish_var_decl): Likewise.
* (handle_iterator): Likewise.
2022-01-18 Harald Anlauf <>
PR fortran/103692
* (gfc_expand_constructor): Handle zero-sized array
2022-01-17 Martin Liska <>
* (gfc_check_all_any): Rename .c names to .cc.
* (find_intrinsic_vtab): Likewise.
* Likewise.
* (cpp_define_builtins): Likewise.
* (get_array_index): Likewise.
* (match_clist_expr): Likewise.
(get_proc_name): Likewise.
(gfc_verify_c_interop_param): Likewise.
(gfc_get_pdt_instance): Likewise.
(gfc_match_formal_arglist): Likewise.
(gfc_get_type_attr_spec): Likewise.
* Likewise.
* (gfc_format_decoder): Likewise.
* (check_restricted): Likewise.
(gfc_build_default_init_expr): Likewise.
* Likewise.
* gfc-internals.texi: Likewise.
* gfortran.h (enum match): Likewise.
(enum procedure_type): Likewise.
(enum oacc_routine_lop): Likewise.
(gfc_get_pdt_instance): Likewise.
(gfc_end_source_files): Likewise.
(gfc_mpz_set_hwi): Likewise.
(gfc_get_option_string): Likewise.
(gfc_find_sym_in_expr): Likewise.
(gfc_errors_to_warnings): Likewise.
(gfc_real_4_kind): Likewise.
(gfc_free_finalizer): Likewise.
(gfc_sym_get_dummy_args): Likewise.
(gfc_check_intrinsic_standard): Likewise.
(gfc_free_case_list): Likewise.
(gfc_resolve_oacc_routines): Likewise.
(gfc_check_vardef_context): Likewise.
(gfc_free_association_list): Likewise.
(gfc_implicit_pure_function): Likewise.
(gfc_ref_dimen_size): Likewise.
(gfc_compare_actual_formal): Likewise.
(gfc_resolve_wait): Likewise.
(gfc_dt_upper_string): Likewise.
(gfc_generate_module_code): Likewise.
(gfc_delete_bbt): Likewise.
(debug): Likewise.
(gfc_build_block_ns): Likewise.
(gfc_dep_difference): Likewise.
(gfc_invalid_null_arg): Likewise.
(gfc_is_finalizable): Likewise.
(gfc_fix_implicit_pure): Likewise.
(gfc_is_size_zero_array): Likewise.
(gfc_is_reallocatable_lhs): Likewise.
* Likewise.
* (compare_actual_expr): Likewise.
* (add_functions): Likewise.
* (gfc_resolve_matmul): Likewise.
(gfc_resolve_alarm_sub): Likewise.
* iso-c-binding.def: Likewise.
* lang-specs.h: Likewise.
* libgfortran.h (GFC_STDERR_UNIT_NUMBER): Likewise.
* (gfc_match_label): Likewise.
(gfc_match_symbol): Likewise.
(match_derived_type_spec): Likewise.
(copy_ts_from_selector_to_associate): Likewise.
* match.h (gfc_match_call): Likewise.
(gfc_get_common): Likewise.
(gfc_match_omp_end_single): Likewise.
(gfc_match_volatile): Likewise.
(gfc_match_bind_c): Likewise.
(gfc_match_literal_constant): Likewise.
(gfc_match_init_expr): Likewise.
(gfc_match_array_constructor): Likewise.
(gfc_match_end_interface): Likewise.
(gfc_match_print): Likewise.
(gfc_match_expr): Likewise.
* (next_operator): Likewise.
* mathbuiltins.def: Likewise.
* (free_true_name): Likewise.
* (gfc_resolve_omp_parallel_blocks): Likewise.
(gfc_omp_save_and_clear_state): Likewise.
* (parse_union): Likewise.
(set_syms_host_assoc): Likewise.
* (resolve_actual_arglist): Likewise.
(resolve_elemental_actual): Likewise.
(check_host_association): Likewise.
(resolve_typebound_function): Likewise.
(resolve_typebound_subroutine): Likewise.
(gfc_resolve_expr): Likewise.
(resolve_assoc_var): Likewise.
(resolve_typebound_procedures): Likewise.
(resolve_equivalence_derived): Likewise.
* (simplify_bound): Likewise.
* (gfc_set_default_type): Likewise.
(gfc_add_ext_attribute): Likewise.
* (gfc_target_interpret_expr): Likewise.
* target-memory.h (gfc_target_interpret_expr): Likewise.
* (gfc_get_cfi_dim_sm): Likewise.
(gfc_conv_shift_descriptor_lbound): Likewise.
(gfc_could_be_alias): Likewise.
(gfc_get_dataptr_offset): Likewise.
* Likewise.
* (trans_function_start): Likewise.
(gfc_trans_deferred_vars): Likewise.
(generate_local_decl): Likewise.
(gfc_generate_function_code): Likewise.
* (gfc_vptr_size_get): Likewise.
(gfc_trans_class_array_init_assign): Likewise.
(POWI_TABLE_SIZE): Likewise.
(gfc_conv_procedure_call): Likewise.
(gfc_trans_arrayfunc_assign): Likewise.
* (gfc_conv_intrinsic_len): Likewise.
(gfc_conv_intrinsic_loc): Likewise.
(conv_intrinsic_event_query): Likewise.
* (gfc_build_st_parameter): Likewise.
* (gfc_omp_check_optional_argument): Likewise.
(gfc_omp_unshare_expr_r): Likewise.
(gfc_trans_omp_array_section): Likewise.
(gfc_trans_omp_clauses): Likewise.
* (trans_associate_var): Likewise.
(gfc_trans_deallocate): Likewise.
* trans-stmt.h (gfc_trans_class_init_assign): Likewise.
(gfc_trans_deallocate): Likewise.
(gfc_trans_oacc_declare): Likewise.
* Likewise.
* trans-types.h (enum gfc_packed): Likewise.
* (N_): Likewise.
(trans_code): Likewise.
* trans.h (gfc_build_compare_string): Likewise.
(gfc_conv_expr_type): Likewise.
(gfc_trans_deferred_vars): Likewise.
(getdecls): Likewise.
(gfc_get_array_descr_info): Likewise.
(gfc_omp_firstprivatize_type_sizes): Likewise.
(GTY): Likewise.
2022-01-17 Martin Liska <>
* arith.c: Moved to...
* array.c: Moved to...
* bbt.c: Moved to...
* check.c: Moved to...
* class.c: Moved to...
* constructor.c: Moved to...
* convert.c: Moved to...
* cpp.c: Moved to...
* data.c: Moved to...
* decl.c: Moved to...
* dependency.c: Moved to...
* dump-parse-tree.c: Moved to...
* error.c: Moved to...
* expr.c: Moved to...
* f95-lang.c: Moved to...
* frontend-passes.c: Moved to...
* gfortranspec.c: Moved to...
* interface.c: Moved to...
* intrinsic.c: Moved to...
* io.c: Moved to...
* iresolve.c: Moved to...
* match.c: Moved to...
* matchexp.c: Moved to...
* misc.c: Moved to...
* module.c: Moved to...
* openmp.c: Moved to...
* options.c: Moved to...
* parse.c: Moved to...
* primary.c: Moved to...
* resolve.c: Moved to...
* scanner.c: Moved to...
* simplify.c: Moved to...
* st.c: Moved to...
* symbol.c: Moved to...
* target-memory.c: Moved to...
* trans-array.c: Moved to...
* trans-common.c: Moved to...
* trans-const.c: Moved to...
* trans-decl.c: Moved to...
* trans-expr.c: Moved to...
* trans-intrinsic.c: Moved to...
* trans-io.c: Moved to...
* trans-openmp.c: Moved to...
* trans-stmt.c: Moved to...
* trans-types.c: Moved to...
* trans.c: Moved to...
2022-01-17 Andrew Stubbs <>
* openmp.c (gfc_match_omp_requires): Don't "sorry" dynamic_allocators.
2022-01-15 Harald Anlauf <>
PR fortran/83079
* target-memory.c (gfc_interpret_character): Result length is
in bytes and thus depends on the character kind.
* trans-intrinsic.c (gfc_conv_intrinsic_transfer): Compute correct
string length for the result of the TRANSFER intrinsic and for
temporaries for the different character kinds.
2022-01-14 Harald Anlauf <>
PR fortran/99256
* intrinsic.c: Do not check formal argument type when checking
arguments of intrinsics for alternate return specifiers.
2022-01-14 Harald Anlauf <>
PR fortran/103782
* expr.c (gfc_simplify_expr): Adjust logic for when to scalarize a
call of an intrinsic which may have been overloaded.
2022-01-13 Hafiz Abid Qadeer <>
* dump-parse-tree.c (show_omp_clauses): Handle OMP_LIST_ALLOCATE.
* gfortran.h (OMP_LIST_ALLOCATE): New enum value.
* openmp.c (enum omp_mask1): Add OMP_CLAUSE_ALLOCATE.
(gfc_match_omp_clauses): Handle OMP_CLAUSE_ALLOCATE
(gfc_match_omp_taskgroup): Use OMP_TASKGROUP_CLAUSES instead of
(resolve_omp_clauses): Handle OMP_LIST_ALLOCATE.
(resolve_omp_do): Avoid warning when loop iteration variable is
in allocate clause.
* trans-openmp.c (gfc_trans_omp_clauses): Handle translation of
allocate clause.
(gfc_split_omp_clauses): Update for OMP_LIST_ALLOCATE.
2022-01-13 Harald Anlauf <>
PR fortran/67804
* primary.c (gfc_match_structure_constructor): Recover from errors
that occurred while checking for a valid structure constructor in
a DATA statement.
2022-01-11 Thomas Koenig <>
* libgfortran.h (unit_convert): Add flags.
2022-01-11 Jakub Jelinek <>
* trans-types.c (gfc_init_kinds): When setting abi_kind to 17, if not
targetting glibc 2.32 or later and -fbuilding-libgfortran, set
gfc_real16_is_float128 and c_float128 in gfc_real_kinds.
(gfc_build_real_type): Don't set c_long_double if c_float128 is
already set.
* trans-intrinsic.c (builtin_decl_for_precision): Don't use
long_double_built_in if gfc_real16_is_float128 and
long_double_type_node == gfc_float128_type_node.
* lang.opt (fbuilding-libgfortran): New undocumented option.
2022-01-11 Jakub Jelinek <>
* trans-intrinsic.c (gfc_get_intrinsic_lib_fndecl): Use
2022-01-11 Jakub Jelinek <>
* trans-io.c (transfer_array_desc): Pass abi kind instead of kind
to libgfortran.
2022-01-11 Jakub Jelinek <>
* trans-io.c (transfer_namelist_element): Use gfc_type_abi_kind,
formatting fixes.
(transfer_expr): Use gfc_type_abi_kind, use *REAL128* APIs even
for abi_kind == 17.
2022-01-11 Jakub Jelinek <>
* gfortran.h (gfc_real_info): Add abi_kind member.
(gfc_type_abi_kind): Declare.
* trans-types.c (gfc_init_kinds): Initialize abi_kind.
* intrinsic.c (gfc_type_abi_kind): New function.
(conv_name): Use it.
* iresolve.c (resolve_transformational, gfc_resolve_abs,
gfc_resolve_char_achar, gfc_resolve_acos, gfc_resolve_acosh,
gfc_resolve_aimag, gfc_resolve_and, gfc_resolve_aint, gfc_resolve_all,
gfc_resolve_anint, gfc_resolve_any, gfc_resolve_asin,
gfc_resolve_asinh, gfc_resolve_atan, gfc_resolve_atanh,
gfc_resolve_atan2, gfc_resolve_bessel_n2, gfc_resolve_ceiling,
gfc_resolve_cmplx, gfc_resolve_complex, gfc_resolve_cos,
gfc_resolve_cosh, gfc_resolve_count, gfc_resolve_dble,
gfc_resolve_dim, gfc_resolve_dot_product, gfc_resolve_dprod,
gfc_resolve_exp, gfc_resolve_floor, gfc_resolve_hypot,
gfc_resolve_int, gfc_resolve_int2, gfc_resolve_int8, gfc_resolve_long,
gfc_resolve_log, gfc_resolve_log10, gfc_resolve_logical,
gfc_resolve_matmul, gfc_resolve_minmax, gfc_resolve_maxloc,
gfc_resolve_findloc, gfc_resolve_maxval, gfc_resolve_merge,
gfc_resolve_minloc, gfc_resolve_minval, gfc_resolve_mod,
gfc_resolve_modulo, gfc_resolve_nearest, gfc_resolve_or,
gfc_resolve_real, gfc_resolve_realpart, gfc_resolve_reshape,
gfc_resolve_sign, gfc_resolve_sin, gfc_resolve_sinh, gfc_resolve_sqrt,
gfc_resolve_tan, gfc_resolve_tanh, gfc_resolve_transpose,
gfc_resolve_trigd, gfc_resolve_xor, gfc_resolve_random_number):
* trans-decl.c (gfc_build_intrinsic_function_decls): Likewise.
2022-01-10 Paul Thomas <>
PR fortran/103366
* trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Allow unlimited
polymorphic actual argument passed to assumed type formal.
2022-01-09 Harald Anlauf <>
PR fortran/103777
* simplify.c (gfc_simplify_maskr): Check validity of argument 'I'
before simplifying.
(gfc_simplify_maskl): Likewise.
2022-01-09 Harald Anlauf <>
PR fortran/101762
* expr.c (gfc_check_pointer_assign): For pointer initialization
targets, check that subscripts and substring indices in
specifications are constant expressions.
2022-01-09 Mikael Morin <>
PR fortran/103789
* trans-array.c (arg_evaluated_for_scalarization): Add MASKL, MASKR,
SCAN and VERIFY to the list of intrinsics whose KIND argument is to be
2022-01-07 Sandra Loosemore <>
PR fortran/103898
* trans-intrinsic.c (gfc_conv_intrinsic_size): Make size_var
actually be a variable and fix surrounding code.
2022-01-06 Steve Kargl <>
Sandra Loosemore <>
PR fortran/103287
* interface.c (argument_rank_mismatch): Replace incorrect assertion
with return.
2022-01-05 Sandra Loosemore <>
PR fortran/103258
* decl.c (gfc_match_char_spec): Suppress errors around call
to gfc_reduce_init_expr.
* error.c (gfc_query_suppress_errors): New.
* gfortran.h (gfc_query_suppress_errors): Declare.
* symbol.c (gfc_set_default_type): Check gfc_query_suppress_errors.
2022-01-03 Sandra Loosemore <>
PR fortran/103390
* expr.c (gfc_is_simply_contiguous): Make it smarter about
function calls.
* trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Do not generate
copy loops for array expressions that are not "variables" (lvalues).
2022-01-03 Jakub Jelinek <>
* gfortranspec.c (lang_specific_driver): Update copyright notice
* gfc-internals.texi: Bump @copying's copyright year.
* gfortran.texi: Ditto.
* intrinsic.texi: Ditto.
* invoke.texi: Ditto.
Copyright (C) 2022 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.