This patch 2018-01-30 Jan Hubicka <hubi...@ucw.cz>
gcc: PR lto/83954 * lto-symtab.c (warn_type_compatibility_p): Silence false positive for type match warning on arrays of pointers. gcc/testsuite: PR lto/83954 * gcc.dg/lto/pr83954.h: New testcase. * gcc.dg/lto/pr83954_0.c: New testcase. * gcc.dg/lto/pr83954_1.c: New testcase. (which I didn't see posted on gcc-patches yet) seems to have caused +XPASS: gnat.dg/lto20.adb (test for excess errors) (seen on i386-pc-solaris2.11 and sparc-sun-solaris2.11). The original warning was /vol/gcc/src/hg/trunk/local/gcc/testsuite/gnat.dg/lto20_pkg.ads:7:13: warning: type of 'lto20_pkg__proc' does not match original declaration [-Wlto-type-mismatch] so just removing the dg-excess-errors seems the right thing to do. Tested with the appropriate runtest invocation on sparc-sun-solaris2.11. Ok for mainline? Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University 2018-01-30 Rainer Orth <r...@cebitec.uni-bielefeld.de> PR lto/83954 * gnat.dg/lto20.adb: Remove dg-excess-errors.
diff --git a/gcc/testsuite/gnat.dg/lto20.adb b/gcc/testsuite/gnat.dg/lto20.adb --- a/gcc/testsuite/gnat.dg/lto20.adb +++ b/gcc/testsuite/gnat.dg/lto20.adb @@ -1,6 +1,5 @@ -- { dg-do run } -- { dg-options "-flto" { target lto } } --- { dg-excess-errors "does not match original declaration" } with Lto20_Pkg;