From patchwork Wed Feb 4 09:45:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 436207 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 0E0F0140190 for ; Wed, 4 Feb 2015 20:47:59 +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 :message-id:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=if5qqeMAzb5Zsj6LjwZsdihg+lG6Y7aIjvwOX7x2II+ diK/GJqiSHbttU74wV2v4y6r5cmAyVAamz874YH7+1NEXo5iB3KO5+Y9gu6ylWQ1 Td+1QLjoNoakdnYK+fOcVE2TdbjbWY8Whwxf4q6RyT5mi9Z/fCZmzRnRGmaR0C9k = 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 :message-id:date:from:mime-version:to:cc:subject:content-type; s=default; bh=TJqH/+euUbFC7WvsiWtnV7Ny7HQ=; b=Kk14dVFdTrTPAIyQ1 kRkFbjrIkPLwHFl0esWkziyqwIN2Gyqf75QkDdBl7AmJSUH68oA1pAnt506LmiIT EsPismPaO28iIFzHEn0E6UqTDIEGuDQRZ01srh87WIADv59AV4TbYcQr5U5y9P7H 4BgnJyZHtCqoIit24jAGUS5MeI= Received: (qmail 15550 invoked by alias); 4 Feb 2015 09:45:47 -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 15528 invoked by uid 89); 4 Feb 2015 09:45:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 04 Feb 2015 09:45:46 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1YIwWk-00059M-B0 from Tom_deVries@mentor.com ; Wed, 04 Feb 2015 01:45:42 -0800 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.3.224.2; Wed, 4 Feb 2015 09:45:40 +0000 Message-ID: <54D1EA42.7040304@mentor.com> Date: Wed, 4 Feb 2015 10:45:38 +0100 From: Tom de Vries User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Tobias Burnus CC: GCC Patches Subject: Fix scan-tree-dump for scop-19.c Hi, I've observed a FAILURE for gcc.dg/graphite/scop-19.c with fpic: ... FAIL: gcc.dg/graphite/scop-19.c scan-tree-dump-times graphite "number of SCoPs: 0" 2 ... In the nonpic case, d_growable_string_resize is inlined into d_growable_string_append_buffer, and we have 2 functions with a loop, wich results in two 'number of SCoPs' entries. In the pic case, d_growable_string_resize is not inlined into d_growable_string_append_buffer (since it's not inlinable), and we have only one function with a loop, wich results in one 'number of SCoPs' entry. This patch updates the scan-tree-dump to match the pic/nonpic behaviour. OK for trunk? Thanks, - Tom 2015-02-04 Tom de Vries * gcc.dg/graphite/scop-19.c: Fix scan-tree-dump for fpic. diff --git a/gcc/testsuite/gcc.dg/graphite/scop-19.c b/gcc/testsuite/gcc.dg/graphite/scop-19.c index 9dfc865..ab23bb4 100644 --- a/gcc/testsuite/gcc.dg/graphite/scop-19.c +++ b/gcc/testsuite/gcc.dg/graphite/scop-19.c @@ -31,6 +31,7 @@ d_growable_string_append_buffer (struct d_growable_string *dgs, if (need > dgs->alc) d_growable_string_resize (dgs, need); } -/* { dg-final { scan-tree-dump-times "number of SCoPs: 0" 2 "graphite"} } */ +/* { dg-final { scan-tree-dump-times "number of SCoPs: 0" 2 "graphite" { target nonpic } } } */ +/* { dg-final { scan-tree-dump-times "number of SCoPs: 0" 1 "graphite" { target { ! nonpic } } } } */ /* { dg-final { cleanup-tree-dump "graphite" } } */ -- 1.9.1