Fix hash-table violation in trans-decl.c.
[gcc.git] / gcc / fortran / ChangeLog
index 0a7e5f5b76106c7ebab734ff23c63d07ae4513c1..e6e350d8bd16fed49c69c223587897cd7b2d0476 100644 (file)
@@ -1,3 +1,168 @@
+2018-10-31  Martin Liska  <mliska@suse.cz>
+
+       * trans-decl.c (struct module_hasher): Call htab_hash_string
+       for s->name and not for s.
+
+2018-10-30  Thomas Koenig  <tkoenig@gcc.gnu.org>
+
+       PR fortran/85896
+       * simplify.c (simplify_min_max): Do not convert the type of the
+       return expression.
+
+2017-10-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
+
+       PR fortran/54613
+       * gfortran.h (gfc_isym_id): Add GFC_ISYM_FINDLOC.
+       (gfc_check_f): Add f6fl field.
+       (gfc_simplify_f): Add f6 field.
+       (gfc_resolve_f): Likewise.
+       (gfc_type_letter): Add optional logical_equas_int flag.
+       * check.c (intrinsic_type_check): New function.
+       (gfc_check_findloc): New function.
+       * intrinsics.c (gfc_type_letter): If logical_equals_int is
+       set, act accordingly.
+       (add_sym_5ml):  Reformat comment.
+       (add_sym_6fl): New function.
+       (add_functions): Add findloc.
+       (check_arglist): Add sixth argument, handle it.
+       (resolve_intrinsic): Likewise.
+       (check_specific): Handle findloc.
+       * intrinsic.h (gfc_check_findloc): Add prototype.
+       (gfc_simplify_findloc): Likewise.
+       (gfc_resolve_findloc): Likewise.
+       (MAX_INTRINSIC_ARGS): Adjust.
+       * iresolve.c (gfc_resolve_findloc): New function.
+       * simplify.c (gfc_simplify_minmaxloc): Make static.
+       (simplify_findloc_to_scalar): New function.
+       (simplify_findloc_nodim): New function.
+       (simplify_findloc_to_array): New function.
+       (gfc_simplify_findloc): New function.
+       (gfc_conv_intrinsic_findloc): New function.
+       (gfc_conv_intrinsic_function): Handle GFC_ISYM_FINDLOC.
+       (gfc_is_intrinsic_libcall): Likewise.
+
+2018-10-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
+
+       PR fortran/86907
+       * frontend-passes.c (check_locus_code): Add information that
+       warning about missing location information points to an
+       inconsisten internal state.
+       (check_locus_expr): Likewise.
+
+2018-10-25  Jakub Jelinek  <jakub@redhat.com>
+
+       PR fortran/87725
+       * openmp.c (gfc_match_omp_clauses): Parse simd, monotonic and
+       nonmonotonic modifiers regardless of if they have been parsed
+       already or if the opposite one has.  Fix up check whether
+       comma after modifier should be parsed.
+       (resolve_omp_clauses): Diagnose schedule modifier restrictions.
+
+2018-10-23  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/85603
+       * frontend-passes.c (get_len_call): New function to generate a
+       call to intrinsic LEN.
+       (create_var): Use this to make length expressions for variable
+       rhs string lengths.
+       Clean up some white space issues.
+
+2018-10-21  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/71880
+       * trans-expr.c (gfc_trans_pointer_assignment): Set the string
+       length for array valued deferred length lhs.
+
+2018-10-18  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/87625
+       * trans-array.c (gfc_is_reallocatable_lhs): Detect allocatable
+       polymorphic arrays.
+
+2018-10-18  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/58618
+       * trans-stmt.c (trans_associate_var): All strings that return
+       as pointer types can be assigned directly to the associate
+       name so remove 'attr' and the condition that uses it.
+
+2018-10-18  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/58618
+       * trans-decl.c (gfc_get_symbol_decl): Deal correctly with the
+       initialization with NULL() of a deferred length pointer.
+
+2018-10-17  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/87632
+       * resolve.c (resolve_select_type): Use correct variable.
+
+2018-10-17  David Malcolm  <dmalcolm@redhat.com>
+
+       * Make-lang.in (selftest-fortran): New.
+
+2018-10-17  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/56386
+       PR fortran/58906
+       PR fortran/77385
+       PR fortran/80260
+       PR fortran/82077
+       * resolve.c (resolve_variable): Fix up expressions with array
+       associate names, where the parser did not detect that this is
+       array and there was no array part_ref in the expression.
+
+2018-10-16  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/67125
+       * trans-array.c (gfc_array_init_size, gfc_array_allocate):
+       Rename argument e3_is_array_constr to e3_has_nodescriptor
+       and update comments.
+       * trans-stmt.c (gfc_trans_allocate): Also fix lower bound
+       to 1 for nonalloc/nonpointer func results/vars besides
+       array constructors.
+
+2018-10-16  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/87556
+       * trans-stmt.c (form_team, change_team, sync_team):
+       Don't ignore argse.pre/argse.post.
+
+2018-10-15  Paul Thomas  <pault@gcc.gnu.org>
+       Tobias Burnus  <burnus@gcc.gnu.org>
+
+       PR fortran/87566
+       * resolve.c (resolve_assoc_var): Add missing array spec for
+       class associate names.
+       (resolve_select_type): Handle case where last typed component
+       of the selector has a different type to the expression.
+       * trans-expr.c (gfc_find_and_cut_at_last_class_ref): Replace
+       call to gfc_expr_to_initialize with call to gfc_copy_expr.
+       (gfc_conv_class_to_class): Guard assignment to 'len' field
+       against case where zero constant is supplied.
+
+2018-10-12  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/87597
+       * expr.c (gfc_simplify_expr): Avoid simplifying
+       the 'array' argument to lbound/ubound/lcobound/
+       ucobound.
+
+2018-10-12  Tobias Burnus <burnus@net-b.de>
+
+       PR fortran/58787
+       * decl.c (get_proc_name): Return with error before
+       creating sym_tree.
+
+2018-10-11  Tobias Burnus <burnus@net-b.de>
+
+       Revert:
+       2018-10-09  Tobias Burnus <burnus@net-b.de>
+
+       PR fortran/83522
+       * resolve.c (resolve_ref): Reject nonscalar
+       substring references.
+
 2018-10-09  David Malcolm  <dmalcolm@redhat.com>
 
        * cpp.c (gfc_cpp_init_0): Update for renamings.