aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/interface.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-05-29 16:08:57 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2019-05-29 16:08:57 +0200
commitffeebc4ff1100a14f439314f90651b42e30fb81a (patch)
treef663fc322b17ac51f7fd85bda31b11ab0a116b9a /gcc/fortran/interface.c
parentb54ecc769f598fcb7f88c6a7c9217ee7c32be789 (diff)
downloadgcc-ffeebc4ff1100a14f439314f90651b42e30fb81a.zip
gcc-ffeebc4ff1100a14f439314f90651b42e30fb81a.tar.gz
gcc-ffeebc4ff1100a14f439314f90651b42e30fb81a.tar.bz2
re PR fortran/90329 (Incompatibility between gfortran and C lapack calls)
PR fortran/90329 * lang.opt (fbroken-callers): Remove. (ftail-call-workaround, ftail-call-workaround=): New options. * gfortran.h (struct gfc_namespace): Add implicit_interface_calls. * interface.c (gfc_procedure_use): Set implicit_interface_calls for calls to implicit interface procedures. * trans-decl.c (create_function_arglist): Use flag_tail_call_workaround instead of flag_broken_callers. If it is not 2, also require sym->ns->implicit_interface_calls. * invoke.texi (fbroken-callers): Remove documentation. (ftail-call-workaround, ftail-call-workaround=): Document. From-SVN: r271738
Diffstat (limited to 'gcc/fortran/interface.c')
-rw-r--r--gcc/fortran/interface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c
index a3a9528..3f91f6b 100644
--- a/gcc/fortran/interface.c
+++ b/gcc/fortran/interface.c
@@ -3686,6 +3686,7 @@ gfc_procedure_use (gfc_symbol *sym, gfc_actual_arglist **ap, locus *where)
gfc_warning (OPT_Wimplicit_procedure,
"Procedure %qs called at %L is not explicitly declared",
sym->name, where);
+ gfc_find_proc_namespace (sym->ns)->implicit_interface_calls = 1;
}
if (sym->attr.if_source == IFSRC_UNKNOWN)