This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix gnat.dg/lto20.adb XPASS
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Jan Hubicka <hubicka at ucw dot cz>
- Date: Tue, 30 Jan 2018 21:21:33 +0100
- Subject: Fix gnat.dg/lto20.adb XPASS
- Authentication-results: sourceware.org; auth=none
This patch
2018-01-30 Jan Hubicka <hubicka@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 <ro@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;