From patchwork Wed Dec 12 12:23:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Brobecker X-Patchwork-Id: 1011903 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-492234-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="QD9fkVvu"; 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 43FGFK68Hhz9s3Z for ; Wed, 12 Dec 2018 23:23:47 +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:subject:date:message-id; q=dns; s=default; b=Vvacqw2paLSegig owSL1NkldfaccB50eOOONzbrFdF/K5pkfSpPnD1wJ7ot2iqN7sCF1VG2PT2cxxo6 0Vu/c8ZZI6w5KSSudtW6IdLBwwheOCgZQpDb1jAAz/WGNyPP3alz0jR34rmeVHKa eUEpUN1Tc5bkVaFru1/IndZarTxw= 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:subject:date:message-id; s=default; bh=o3dS4wl/KW4uNzvkcwMxe 9s5VjM=; b=QD9fkVvuMhUoVYd5lPoo0Em5EXBfi0NlICMPw5FIjkzRXPOvZcQtt meDP6Ckonv9eXxKl4XXt6XXE1LW3/vSr+RuzwTWIR4JXVVN4hOZD1GCJ5w+L6yGG QRJUN55DKwCy/EUY0TKc5WrgWM3TYdyfdFyZ9BoNmpzvI9FiUEAt4U= Received: (qmail 118454 invoked by alias); 12 Dec 2018 12:23:40 -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 118444 invoked by uid 89); 12 Dec 2018 12:23:39 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=sk:dgextr, sk:dg-extr, joel X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Dec 2018 12:23:38 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 7BF62116E2C; Wed, 12 Dec 2018 07:23:36 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oE9HPYm2Fauo; Wed, 12 Dec 2018 07:23:36 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 0D75B116DF9; Wed, 12 Dec 2018 07:23:36 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id A2FB2857F7; Wed, 12 Dec 2018 16:23:31 +0400 (+04) From: Joel Brobecker To: gcc-patches@gcc.gnu.org Subject: [RFA] require profiling support for gcc.dg/lto/20100430-1_0.c test Date: Wed, 12 Dec 2018 16:23:30 +0400 Message-Id: <20181212122330.347-1-brobecker@adacore.com> Hello, This test currently fails unexpectedly if GCC is configured with --disable-gcov, because it requires -fprofile-arcs. This patch fixes the issue by requiring profiling support in order to run this test. Tested with two compilers, one built with --disable-gcov, resulting in the test reporting an UNSUPPORTED result; and one built with gcov support, resulting in 2 PASS tests. gcc/testsuite/ChangeLog: * gcc.dg/lto/20100430-1_0.c: Add dg-require-profiling requirement. OK to push? Thank you, diff --git a/gcc/testsuite/gcc.dg/lto/20100430-1_0.c b/gcc/testsuite/gcc.dg/lto/20100430-1_0.c index 1ccfc9ac1ca..c7dafac31af 100644 --- a/gcc/testsuite/gcc.dg/lto/20100430-1_0.c +++ b/gcc/testsuite/gcc.dg/lto/20100430-1_0.c @@ -1,6 +1,7 @@ /* { dg-lto-do link } */ /* { dg-lto-options {{-O2 -fprofile-arcs -flto -r -nostdlib}} } */ /* { dg-extra-ld-options "-flinker-output=nolto-rel" } */ +/* { dg-require-profiling "-fprofile-arcs" } */ void