From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-39446801cf1so409997b6e.2 for ; Tue, 23 May 2023 22:20:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1684905641; x=1687497641; h=mime-version:user-agent:message-id:date:errors-to:organization :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=/qLxRRxRKGAeVZ3+orBQAI6L6sd3FA2VoWudE0AKMYM=; b=RsfZj3yyWvEyfNLYa/XPdzB6AAE2zx5s//mM1wiwKKQVxGnDufk6k0KDNkqjF+ASG9 m3grq9/whotCslxAaAeQy5+BwuvNYf9B6vxJMOwU+X2kDCnMbkZ7pWbZi8jeagzyqjgT xiS9IV0kfMK8ESQ9s9PznF1HIKKpyp31BPtvQ33nJccJfsMrcU9NK73M7m94z89mCrdl lSM0RqTFUIIL7Ojmqqn1f5tIPkth/k+xchIM2kt4fTmlvSxXM4sNoqW83kUJUeMIOO0o MPZYturQ4L9bQNDIqZc2XNvOdvqhRgCU0UsTUhC6r7JqRhJOiZrnWcJq+TUADfrnsZpq Illw== 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-Google-Smtp-Source: ACHHUZ6O/HiHoxkrgdPhKR1XbKkZBj3jma5Cy1nvZMO8J67xlraF5p4C2vu89+f8HU5OI+/wFbqjKQ== 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 From: Alexandre Oliva 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 Errors-To: aoliva@lxoliva.fsfla.org 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 Content-Type: text/plain 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 List-Id: 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 -- Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/ Free Software Activist GNU Toolchain Engineer Disinformation flourishes because many people care deeply about injustice but very few check the facts. Ask me about