From patchwork Tue Apr 27 08:47:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 1470595 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FTwPz6DsSz9sWY for ; Tue, 27 Apr 2021 18:47:50 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2AA2339888BF; Tue, 27 Apr 2021 08:47:47 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by sourceware.org (Postfix) with ESMTPS id 231DA39888B4 for ; Tue, 27 Apr 2021 08:47:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 231DA39888B4 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rguenther@suse.de X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 07B0BB011 for ; Tue, 27 Apr 2021 08:47:43 +0000 (UTC) Date: Tue, 27 Apr 2021 10:47:42 +0200 (CEST) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] testsuite/100272 - fix some malformed dg directives Message-ID: User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: , Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" The bug points out several malformed dg directives, the following fixes the obvious ones where the testcases keep working after the change. Tested on x86_64-unknown-linux-gnu, pushed. 2021-04-27 Richard Biener PR testsuite/100272 * g++.dg/diagnostic/ptrtomem1.C: Fix dg directives. * g++.dg/ipa/pr45572-2.C: Likewise. * g++.dg/template/spec26.C: Likewise. * gcc.dg/pr20126.c: Likewise. * gcc.dg/tree-ssa/pr20739.c: Likewise. --- gcc/testsuite/g++.dg/diagnostic/ptrtomem1.C | 2 +- gcc/testsuite/g++.dg/ipa/pr45572-2.C | 2 +- gcc/testsuite/g++.dg/template/spec26.C | 2 +- gcc/testsuite/gcc.dg/pr20126.c | 4 ++-- gcc/testsuite/gcc.dg/tree-ssa/pr20739.c | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/g++.dg/diagnostic/ptrtomem1.C b/gcc/testsuite/g++.dg/diagnostic/ptrtomem1.C index bb1327f7af1..9f9b77ae403 100644 --- a/gcc/testsuite/g++.dg/diagnostic/ptrtomem1.C +++ b/gcc/testsuite/g++.dg/diagnostic/ptrtomem1.C @@ -19,7 +19,7 @@ void f2(T) { } template -requires (sizeof(T)==1) // dg-message {\[with T = int \(X::\*\)\[5\]\]} } +requires (sizeof(T)==1) // { dg-message {\[with T = int \(X::\*\)\[5\]\]} } void f3(T) { } diff --git a/gcc/testsuite/g++.dg/ipa/pr45572-2.C b/gcc/testsuite/g++.dg/ipa/pr45572-2.C index 8b583d9c5d5..9bf49acb450 100644 --- a/gcc/testsuite/g++.dg/ipa/pr45572-2.C +++ b/gcc/testsuite/g++.dg/ipa/pr45572-2.C @@ -1,5 +1,5 @@ // { dg-do compile } -// { dg-options "-finline-small-functions -findirect-inlining -finline-function+ +// { dg-options "-finline-small-functions -findirect-inlining -finline-functions -O" } typedef struct {} __mpf_struct; typedef __mpf_struct mpf_t[1]; diff --git a/gcc/testsuite/g++.dg/template/spec26.C b/gcc/testsuite/g++.dg/template/spec26.C index 3d187071afe..fad8e3e1519 100644 --- a/gcc/testsuite/g++.dg/template/spec26.C +++ b/gcc/testsuite/g++.dg/template/spec26.C @@ -1,4 +1,4 @@ -// dg-do run +// { dg-do run } // Copyright (C) 2005 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 16 Sep 2005 diff --git a/gcc/testsuite/gcc.dg/pr20126.c b/gcc/testsuite/gcc.dg/pr20126.c index 257832ab18a..a421ce1758d 100644 --- a/gcc/testsuite/gcc.dg/pr20126.c +++ b/gcc/testsuite/gcc.dg/pr20126.c @@ -1,5 +1,5 @@ -/* dg-do run */ -/* dg-options "-O2" */ +/* { dg-do run } */ +/* { dg-options "-O2" } */ /* PR target/20126 was not really target-specific, but rather a loop's failure to take into account the possibility that a DEST_ADDR giv diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr20739.c b/gcc/testsuite/gcc.dg/tree-ssa/pr20739.c index c1e7b58e385..d7fff14f953 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr20739.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr20739.c @@ -1,7 +1,7 @@ /* PR middle-end/20739 */ -/* dg-do compile */ -/* dg-options "-O" */ +/* { dg-do compile } */ +/* { dg-options "-O" } */ /* We used to fail to compile this because gimplification dropped the conversion that added the const qualifier to the sub-expression