Message ID | 20230825204554.2440771-1-lhyatt@gmail.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a7d1:0:b0:3f2:4152:657d with SMTP id p17csp2046056vqm; Fri, 25 Aug 2023 13:46:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEyAgUqm+Od1PDrWpx+UVHIVNes+It1jxip371uM2iUwSbbh7oGcmbSd9w02lQrZ9F0fjGU X-Received: by 2002:a2e:9796:0:b0:2bc:c51d:daa1 with SMTP id y22-20020a2e9796000000b002bcc51ddaa1mr11907449lji.39.1692996415596; Fri, 25 Aug 2023 13:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692996415; cv=none; d=google.com; s=arc-20160816; b=GIOPjq9avxpyLQC8FKTHlXJtC9scuzTVI3+H7cb9uaCl5RFQFrm6BLCwVLBo3LL1rK HWeMrOFU/qYpWQsWjZbxj6IPPXpsSOsyV3OWZVRnNaL2Ql+T0JwgQnaovVWtbXQ26Lqm 84CZTcNLoEg9nqnuAylolaDx+GDmh7a3Rva+EYDZIHZ/6LdwKmkYNdOdu1q1awsYgHxF Gpm0DMENHLIt83ATKF/yTkXo7cEmlZDxIV559wDtHYDNiShz/uXaqrNZp+hmlaiAsaGv 2qXDGeRaq/FTGaC9udM2/t/1tFDA+RVlGFZWUNwAD95CZVc0VocPAYxe+qfUEb/8AqJN wB+A== 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 :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=5fHseU5KJ65v9oWzKLBnDS9m2p+fux//JZ+HvAi5oGo=; fh=nfBkqenZlXK8N3U+CwE1Ju+aGndKKEqCeWWaqIiAkr0=; b=sODic8chmjEhYBfsT5zIEFphnbBkihJVSywUXf59UPxlU/IoCWH8oBn1Hu3QFjMA95 A8dbOqHHcxtRkKqQt0TSb7pSIK1/9D09OnCT5p+9NYaBbP+1TcABFu7e1d7+7ZhmOaft DE48vsD3no5KLBBRvyV1dGjFjkX4FWH297ICP3ensDOb/bY7OoStl/qKMd/x3tz11uIg eueEERTDkdVRJMASuIWnhrFamD66BofGM7+6iXsBXUU1RW0MT6F+3PsGPAuxUszIIJTl qtRSKJRfH9qicWbMaJ5ICwax2lBaHbE8pGfqonTXbPeDsDD9VkduFW79VMLBDd32SkOy 7jxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=TPTRWoc5; 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id oz5-20020a170906cd0500b00992fef5cffasi1351561ejb.641.2023.08.25.13.46.55 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 13:46:55 -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=TPTRWoc5; 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 4613A385841F for <ouuuleilei@gmail.com>; Fri, 25 Aug 2023 20:46:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4613A385841F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692996414; bh=5fHseU5KJ65v9oWzKLBnDS9m2p+fux//JZ+HvAi5oGo=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=TPTRWoc5Ukd0xW4CPP/Q7Pgrq/tbhSYwq5QIRj8y7PrpbpcAsJySC3J64rTLGe21C AcBHv4zZsc66yif9mIu+A60unAaSoii5uabelXAXd4Qak+nLXJD6CcHP48Nn+sWRsu HWEGfus0vqL20wX8dPN44x+7rdZf2VyVscOLb9n8= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by sourceware.org (Postfix) with ESMTPS id 57E5A3858D32 for <gcc-patches@gcc.gnu.org>; Fri, 25 Aug 2023 20:46:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 57E5A3858D32 Received: by mail-qk1-x72b.google.com with SMTP id af79cd13be357-76ce59842c1so81109285a.3 for <gcc-patches@gcc.gnu.org>; Fri, 25 Aug 2023 13:46:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692996363; x=1693601163; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5fHseU5KJ65v9oWzKLBnDS9m2p+fux//JZ+HvAi5oGo=; b=LOre/ZX3BU+sTBnUk28XRjQlHK4kSqAv2abJGjIENqIJT8wHyo4osh/Znbscas9QVc 8EIQOKh/HzAFoAWrnbC+qTp5eROkMTuWVHR5JDsQvigi/bRhrcsuX2080v/sQdhxmQTm 3xqAgp3yqsGvOeVwPqtFeHvfu7PvOIZ3k+mDYuh8sqJC22+1vWlsjYqGITXz2O8/UA5y DCrd6/OhXqB4gyMwmP1MnyzWGTv12xIlnb1R09d7Z06gthKlKUfdcrN0aMj8knfyIcrw 1FbgMe3IPsVSzT160PlSkqp8MzKfn9cxBruRzIuNVO8BPvARko+xZ1PTxWUTX95GnZs4 J+DQ== X-Gm-Message-State: AOJu0Yz7I19TibOcG0UJabbr8S/krDzLY1iwzBD8FT5Ca4zlIxbYJDrP 8mrfUhWl9obnZpuxWyRfsHL4HhPN68Y= X-Received: by 2002:a05:620a:4309:b0:76c:e9aa:9e09 with SMTP id u9-20020a05620a430900b0076ce9aa9e09mr22097326qko.30.1692996363543; Fri, 25 Aug 2023 13:46:03 -0700 (PDT) Received: from localhost.localdomain (96-67-140-173-static.hfc.comcastbusiness.net. [96.67.140.173]) by smtp.gmail.com with ESMTPSA id h13-20020a37de0d000000b0076ee82f7726sm737971qkj.132.2023.08.25.13.46.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 13:46:03 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Lewis Hyatt <lhyatt@gmail.com> Subject: [PATCH] testsuite: Add test for already-fixed issue with _Pragma expansion [PR90400] Date: Fri, 25 Aug 2023 16:45:54 -0400 Message-Id: <20230825204554.2440771-1-lhyatt@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3038.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Lewis Hyatt via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Lewis Hyatt <lhyatt@gmail.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1775235409645779781 X-GMAIL-MSGID: 1775235409645779781 |
Series |
testsuite: Add test for already-fixed issue with _Pragma expansion [PR90400]
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Lewis Hyatt
Aug. 25, 2023, 8:45 p.m. UTC
Hello- This is adding a testcase for a PR that was already incidentally fixed. OK to commit please? Thanks... -Lewis -- >8 -- The PR was fixed by r12-5454. Since the fix was somewhat incidental, although related, add a testcase from PR90400 too before closing it out. gcc/testsuite/ChangeLog: PR preprocessor/90400 * c-c++-common/cpp/pr90400.c: New test. --- gcc/testsuite/c-c++-common/cpp/pr90400.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gcc/testsuite/c-c++-common/cpp/pr90400.c
Comments
Hello- May I please ping this one? It's adding a testcase prior to closing the PR. Thanks! https://gcc.gnu.org/pipermail/gcc-patches/2023-August/628488.html -Lewis On Fri, Aug 25, 2023 at 4:46 PM Lewis Hyatt <lhyatt@gmail.com> wrote: > > Hello- > > This is adding a testcase for a PR that was already incidentally fixed. OK > to commit please? Thanks... > > -Lewis > > -- >8 -- > > The PR was fixed by r12-5454. Since the fix was somewhat incidental, > although related, add a testcase from PR90400 too before closing it out. > > gcc/testsuite/ChangeLog: > > PR preprocessor/90400 > * c-c++-common/cpp/pr90400.c: New test. > --- > gcc/testsuite/c-c++-common/cpp/pr90400.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > create mode 100644 gcc/testsuite/c-c++-common/cpp/pr90400.c > > diff --git a/gcc/testsuite/c-c++-common/cpp/pr90400.c b/gcc/testsuite/c-c++-common/cpp/pr90400.c > new file mode 100644 > index 00000000000..4f2cab8d6ab > --- /dev/null > +++ b/gcc/testsuite/c-c++-common/cpp/pr90400.c > @@ -0,0 +1,14 @@ > +/* { dg-do compile } */ > +/* { dg-additional-options "-save-temps" } */ > +/* PR preprocessor/90400 */ > + > +#define OUTER(x) x > +#define FOR(x) _Pragma ("GCC unroll 0") for (x) > +void f () > +{ > + /* If the pragma were to be seen prior to the expansion of FOR, as was > + the case before r12-5454, then the unroll pragma would complain > + because the immediately following statement would be ";" rather than > + a loop. */ > + OUTER (; FOR (int i = 0; i != 1; ++i);) /* { dg-bogus {statement expected before ';' token} } */ > +}
Lewis Hyatt via Gcc-patches <gcc-patches@gcc.gnu.org> writes: > Hello- > > May I please ping this one? It's adding a testcase prior to closing > the PR. Thanks! > https://gcc.gnu.org/pipermail/gcc-patches/2023-August/628488.html OK, thanks. (Not really my area, but someone would probably have objected by now if they were going to.) Richard > > -Lewis > > On Fri, Aug 25, 2023 at 4:46 PM Lewis Hyatt <lhyatt@gmail.com> wrote: >> >> Hello- >> >> This is adding a testcase for a PR that was already incidentally fixed. OK >> to commit please? Thanks... >> >> -Lewis >> >> -- >8 -- >> >> The PR was fixed by r12-5454. Since the fix was somewhat incidental, >> although related, add a testcase from PR90400 too before closing it out. >> >> gcc/testsuite/ChangeLog: >> >> PR preprocessor/90400 >> * c-c++-common/cpp/pr90400.c: New test. >> --- >> gcc/testsuite/c-c++-common/cpp/pr90400.c | 14 ++++++++++++++ >> 1 file changed, 14 insertions(+) >> create mode 100644 gcc/testsuite/c-c++-common/cpp/pr90400.c >> >> diff --git a/gcc/testsuite/c-c++-common/cpp/pr90400.c b/gcc/testsuite/c-c++-common/cpp/pr90400.c >> new file mode 100644 >> index 00000000000..4f2cab8d6ab >> --- /dev/null >> +++ b/gcc/testsuite/c-c++-common/cpp/pr90400.c >> @@ -0,0 +1,14 @@ >> +/* { dg-do compile } */ >> +/* { dg-additional-options "-save-temps" } */ >> +/* PR preprocessor/90400 */ >> + >> +#define OUTER(x) x >> +#define FOR(x) _Pragma ("GCC unroll 0") for (x) >> +void f () >> +{ >> + /* If the pragma were to be seen prior to the expansion of FOR, as was >> + the case before r12-5454, then the unroll pragma would complain >> + because the immediately following statement would be ";" rather than >> + a loop. */ >> + OUTER (; FOR (int i = 0; i != 1; ++i);) /* { dg-bogus {statement expected before ';' token} } */ >> +}
diff --git a/gcc/testsuite/c-c++-common/cpp/pr90400.c b/gcc/testsuite/c-c++-common/cpp/pr90400.c new file mode 100644 index 00000000000..4f2cab8d6ab --- /dev/null +++ b/gcc/testsuite/c-c++-common/cpp/pr90400.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-additional-options "-save-temps" } */ +/* PR preprocessor/90400 */ + +#define OUTER(x) x +#define FOR(x) _Pragma ("GCC unroll 0") for (x) +void f () +{ + /* If the pragma were to be seen prior to the expansion of FOR, as was + the case before r12-5454, then the unroll pragma would complain + because the immediately following statement would be ";" rather than + a loop. */ + OUTER (; FOR (int i = 0; i != 1; ++i);) /* { dg-bogus {statement expected before ';' token} } */ +}