From patchwork Tue Jan 30 20:21:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 867660 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-472311-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="bIph+0Xs"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zWHq74GwQz9sP1 for ; Wed, 31 Jan 2018 07:22:10 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=wEs+V/TyzWHKWx4OtcYTPVoxr1rINbwoqP5dRLKV00NLAD9aA3 2mPy9vAZzH874rhDea9TSL03m+XMH8tdb4vlLjk3Jh2tM4rBLRo3TCLECD3yBcz4 lb4/95aN5uX4oXDt85mppFCBY/31QaxmeY83uaLyanVhxU4c6n+O1QMpc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=P286qqUV8kW72ak9KhXbVITOlbQ=; b=bIph+0XsT0jFHENSoscV P6XFVg7ou3VolA4ZUdNNzscJa+R6nCzrdmb2nkKC8rq56n+YuVigf7VvvbHELCdQ UunD0nbHYLDVucw66Qs76q43tjfIgEmzPhvHQDOzKqrKmuNh3ExkMgtJVp+5w8nf T0cqnPRWcbsCvD9UMy9Vp4c= Received: (qmail 3238 invoked by alias); 30 Jan 2018 20:22:03 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 3217 invoked by uid 89); 30 Jan 2018 20:22:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-19.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=gnat.dg, UD:gnat.dg, gnatdg X-HELO: smtp.CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE (HELO smtp.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 30 Jan 2018 20:22:01 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 7205C3EB; Tue, 30 Jan 2018 21:21:37 +0100 (CET) Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sn6KCIUuUygY; Tue, 30 Jan 2018 21:21:35 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p4FDDBE2C.dip0.t-ipconnect.de [79.221.190.44]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 66C513EA; Tue, 30 Jan 2018 21:21:35 +0100 (CET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Jan Hubicka Subject: Fix gnat.dg/lto20.adb XPASS Date: Tue, 30 Jan 2018 21:21:33 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes This patch 2018-01-30 Jan Hubicka 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 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;