Fix gnat.dg/lto20.adb XPASS
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Tue Jan 30 20:51:00 GMT 2018
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lto20.patch
Type: text/x-patch
Size: 315 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180130/70102c87/attachment.bin>
More information about the Gcc-patches
mailing list