Commit 239afeef authored by Matthias Klose's avatar Matthias Klose

* Update to SVN 20190420 (r270466) from the gcc-8-branch.

parent e469ee9a
gcc-8 (8.3.0-7) UNRELEASED; urgency=medium
* Update to SVN 20190420 (r270466) from the gcc-8-branch.
- Fix PR target/89877 (ARC), PR target/84369 (PPC),
PR tree-optimization/85762, PR tree-optimization/87008,
PR tree-optimization/85459, PR target/87532 (PPC),
PR target/87532 (PPC), PR ipa/89693, PR middle-end/88587,
PR tree-optimization/90018, PR target/90024 (ARM),
PR target/89945 (ARM), PR fortran/87352, PR fortran/89981,
PR fortran/89904, PR libgfortran/79540.
* Fix PR d/89041, taken from the trunk. Closes: #914470.
-- Matthias Klose <doko@debian.org> Sat, 20 Apr 2019 07:59:41 +0200
......
# DP: Fix PR fortran/89981, taken from the trunk
gcc/fortran/
2019-04-06 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/89981
* resolve.c (resolve_global_procedure): If the global symbol is an
ENTRY, also look up its name among the entries.
gcc/testsuite/
2019-04-06 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/89981
* gfortran.dg/entry_22.f90: New test.
--- a/src/gcc/fortran/resolve.c
+++ b/src/gcc/fortran/resolve.c
@@ -2546,7 +2546,7 @@
if (gsym->binding_label && gsym->sym_name != def_sym->name)
gfc_find_symbol (gsym->sym_name, gsym->ns, 0, &def_sym);
- if (def_sym->attr.entry_master)
+ if (def_sym->attr.entry_master || def_sym->attr.entry)
{
gfc_entry_list *entry;
for (entry = gsym->ns->entries; entry; entry = entry->next)
--- a/src/gcc/testsuite/gfortran.dg/entry_22.f90
+++ b/src/gcc/testsuite/gfortran.dg/entry_22.f90
@@ -0,0 +1,12 @@
+! { dg-do compile }
+! { dg-additional-options "-pedantic" }
+! PR fortran/89981 - this used to give a wrong warning (error with
+! -pedantic)
+program main
+ call bar(i)
+ call baz(i) ! { dg-error "Type mismatch in argument" }
+end program main
+subroutine foo(r)
+ entry bar(i)
+ entry baz(r)
+end subroutine foo
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -80,7 +80,6 @@ debian_patches += \
pr89412 \
pr87808 \
pr88419-revert \
pr89981 \
pr89041 \
# FIXME: see #915194
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment