From patchwork Wed May 24 05:20:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 98293 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2607379vqo; Tue, 23 May 2023 22:21:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6JeZWHLg+M+rrquwEy2oHlT042r3rZP6ny6V8zCFIM1DuVr8zkxHFbD78I9gB4wpbBohGl X-Received: by 2002:a17:906:d553:b0:965:a72a:b2ae with SMTP id cr19-20020a170906d55300b00965a72ab2aemr15856721ejc.60.1684905688005; Tue, 23 May 2023 22:21:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684905687; cv=none; d=google.com; s=arc-20160816; b=wwEwbUDF2D7ipwevJvREgx49HwBdr07sS10ZtrWvtV+BpieXc+MgpGHfVEqLTongcX J2mf2bgopabF9+tzk7Xtz6qbWvYrwm5UlPn0iR8zp6fhgOJ5dHXqL5UvNW3lWRIGVJbm sJPKIDq7MKjuEBN3qFi5k4BeafOcWCDv9a0/PnYKZ9HVBGN0ZCY26XvL9xIcyIuiMBqr ZmQJmsKl2ahuVZ9/dM5zcJLbnkQOywzV49OIqmVX8lz81ng3lJUzq79TiuT3YqPmjxrh KdPusMZ9G7X+VWztde8W7GET7vkQeliixsNT+FSfhkKtxYhs5M3j0F+R9LCUHTloYA0C Hh2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :user-agent:message-id:date:organization:subject:cc:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=/qLxRRxRKGAeVZ3+orBQAI6L6sd3FA2VoWudE0AKMYM=; b=zPzeUwnxeG6CehP6kYSSiufH+sR5vvpLpHAoZvBr8rm86bZDl34S2gIATLjxQgqfpS 0lpbuNZLDBEzUfYCf5NPBb/U6gmEP38q3LQqtWV41sG8uo6H+A+I7Xf4X9pNR5EG1MOC a5DhJTxPxIlXWXx8rh9NjwBC17VJ7NMCssddp8MnVekkjUFLFrfVvDUdtULcisRVN7t2 UhWvxOvuwCIefcXXBr7fGnanK6MBK2+OMcFtCaNJIjB8WfFUP+eqCA1Z9+rU39BEOmMj xhd7FIYWleHAIYAhBd1qAJo8qXs1xsX2qSXZhGOCjLmhK1d4tO5yA3wgLDSxrgnH+uSO hINA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="RAK4p0/H"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id x15-20020a1709065acf00b0095382d71c61si724618ejs.159.2023.05.23.22.21.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 22:21:27 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="RAK4p0/H"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 98AD03857835 for ; Wed, 24 May 2023 05:21:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 98AD03857835 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684905686; bh=/qLxRRxRKGAeVZ3+orBQAI6L6sd3FA2VoWudE0AKMYM=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=RAK4p0/H12133Yk54M/4DaFgLVwKGpi6WlutPobreDIYLNRday0JtHD89wTV6CT1K sglXtYompHu1KGHX1Zb2igB5ibDbpDNxkdo13XhBmYsIge5SuC9QIP3aNxHm1OvmUv RGTuqiIJwzYc87KtcdYZLWVZpet6CdWtLDvfO0BM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by sourceware.org (Postfix) with ESMTPS id 698DD3858C52 for ; Wed, 24 May 2023 05:20:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 698DD3858C52 Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-39446801cf1so409997b6e.2 for ; Tue, 23 May 2023 22:20:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684905641; x=1687497641; h=mime-version:user-agent:message-id:date:errors-to:organization :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/qLxRRxRKGAeVZ3+orBQAI6L6sd3FA2VoWudE0AKMYM=; b=OqmIE1UDzEnPQw191bep3xLAoKBLVl8hNCJPR7dRyj7xAgs7CEJhUXKm5/Tl15XiQ8 fPxqnb92yzj3DH8KquAL1aNSff1LRmOd7kybyB4pmOFh1TBcf6I4yqmacFHcXDpF3Opp Phh2TvWjpExW1Gwe+We63LtfNAu4gm13FqrqhdKenZBFR/HgSML7pl2x7HFBH/nh53Dj SlsXLTU2+qdrQ2/lJQsP0RhmW/rOlm0AdjXb5zeg9y50QZ5V4hRVuDqoqPeZam5au0a6 FT3O+zKpjFpvjJD+11pj/p9CHEJmM1NzSDHd8Q+RRM52ucpeFR+HRrmRMI6Zoq+rRg2F M53g== X-Gm-Message-State: AC+VfDyPwo8LWRp33KKhi6VOwRHNhBLvumvMoQ3XkzmT+IjW1k4emcUD 4GYpTM+kRfd+ZhvTQQ6KUp9U2HBlvv7uXwNA1rY= X-Received: by 2002:a05:6808:619:b0:398:2a6b:8647 with SMTP id y25-20020a056808061900b003982a6b8647mr2833887oih.35.1684905641787; Tue, 23 May 2023 22:20:41 -0700 (PDT) Received: from free.home ([2804:7f1:2080:6383:46d9:ede8:ee97:8cc0]) by smtp.gmail.com with ESMTPSA id c15-20020a056808138f00b003961d393f52sm4498654oiw.53.2023.05.23.22.20.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 22:20:41 -0700 (PDT) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 34O5KU7B3580152 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 24 May 2023 02:20:30 -0300 To: gcc-patches@gcc.gnu.org Cc: Rainer Orth , Mike Stump Subject: [PATCH] [testsuite] require profiling for -pg Organization: Free thinker, does not speak for AdaCore Date: Wed, 24 May 2023 02:20:30 -0300 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alexandre Oliva via Gcc-patches From: Alexandre Oliva Reply-To: Alexandre Oliva Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766751666578996588?= X-GMAIL-MSGID: =?utf-8?q?1766751666578996588?= Fix two tests that use -pg but don't declare their requirement for profiling support. Bootstrapped on x86_64-linux-gnu. Also tested on ppc- and x86-vx7r2 with gcc-12. for gcc/testsuite/ChangeLog * gcc.target/i386/mcount_pic.c: Add dg-require-profiling. * gcc.target/i386/pr104447: Likewise. --- gcc/testsuite/gcc.target/i386/mcount_pic.c | 1 + gcc/testsuite/gcc.target/i386/pr104447.c | 1 + 2 files changed, 2 insertions(+) diff --git a/gcc/testsuite/gcc.target/i386/mcount_pic.c b/gcc/testsuite/gcc.target/i386/mcount_pic.c index 5546933d1946d..732be66b7b33d 100644 --- a/gcc/testsuite/gcc.target/i386/mcount_pic.c +++ b/gcc/testsuite/gcc.target/i386/mcount_pic.c @@ -3,6 +3,7 @@ /* { dg-do run } */ /* { dg-require-effective-target fpic } */ /* { dg-require-effective-target ia32 } */ +/* { dg-require-profiling "-pg" } */ /* { dg-options "-O2 -fpic -pg -save-temps" } */ int main () diff --git a/gcc/testsuite/gcc.target/i386/pr104447.c b/gcc/testsuite/gcc.target/i386/pr104447.c index bf11e8696e68f..cb618c7b8bb32 100644 --- a/gcc/testsuite/gcc.target/i386/pr104447.c +++ b/gcc/testsuite/gcc.target/i386/pr104447.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-profiling "-pg" } */ /* { dg-options "-O2 -pg" } */ int