From patchwork Thu Mar 2 23:52:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 63669 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp129756wrd; Thu, 2 Mar 2023 15:53:22 -0800 (PST) X-Google-Smtp-Source: AK7set/IaVX0jkuZYykpJXU1YiBCFKYYNW95SKYXo3atnv9IFVqgmiuKnga5e42ftiKrwyG3Mcag X-Received: by 2002:a17:907:7213:b0:907:9470:b7ab with SMTP id dr19-20020a170907721300b009079470b7abmr5590290ejc.71.1677801202089; Thu, 02 Mar 2023 15:53:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677801202; cv=none; d=google.com; s=arc-20160816; b=ZhUOVygq1qDyQ7tfTLEUS4ZyBdmZ/ELniF+Mpn/AAJAaYHDYyIfuu0TiYuUduFFKEf JV4882xyXaIBRqW6z2eQwhgo3j2eQ/aq8OUTNhJMROPqMALw/jfG8JnV5vL5OgrkMfzO dnqElNXryYohdErjA0mv7OGDkbfXQM4wdJvZBlNef/lutRGaI99nvYl9d5LU2EI0bDG5 8tzH8A2zOCGR/uEMQpJGgujf0zBsQsXGhjQlwbaY4AhQy9o3kUx9AgJysaH2BxcRwgzz x5CX+OV6MR+6MonoYGSK8l4GdggE21dZqMF1/+IU4uXqKkdDQ0QwnaQE9f1/RWaK1sRS x73A== 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-disposition:in-reply-to:mime-version:references:message-id :subject:cc:to:date:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=d1KSRe2VeuoRZ+pg07oKKYGQ4Nwnqb77/FjVTMrrbQI=; b=Fr4+GfQ7PEKR3s47gDSJ9SJz++ZAJWu1/hTVt3jBwEKWMyw+528VWG6ylTAXN+EFgn hT9I98xd3/0ZzDe1qLocj4XoJEB6Ok2YuqXeigl5F8XCLhXr+QgQ+3lg8z7JHAS8bHHE tRfO9VK9Ff1SQOMrLTA4RNWzgdn8bGvXotJ+eqIiJsXBqxr+Ty93eZGtuFXdwrnhcqEi TV/WfeYanTyw1FJ8vXgM3yne5crhyjHbqPhu4r8Pa394H4IlPEz6TtxRVttc79AE5iQx Yx5mvAWaBlThPS0b7y5WCrE5PNZRCZVcx1CGfi2TfoqWMSGaGzdAgk7QfBD3ch8EiWmo sv8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=VtNsbqQG; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id n23-20020a056402061700b004c26b68c120si848429edv.420.2023.03.02.15.53.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 15:53:22 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=VtNsbqQG; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 D40813858416 for ; Thu, 2 Mar 2023 23:53:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D40813858416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677801199; bh=d1KSRe2VeuoRZ+pg07oKKYGQ4Nwnqb77/FjVTMrrbQI=; h=Date:To:Cc:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=VtNsbqQGSGCwlzXa6hwoAPRxXoFhmEIJTuJMdGNBO3n+//ulVEkLvDRIL8gn+DGWn UvhtW8mDFHcXV3bhykKSu1ifIZ6P3y7JdreySbUGXEvdNo/qM2WCMAP7yVHsmDdtrP aZ0gHYoeKcPTXKUsSCSD65xSjozNar2VEBl1cJHM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 1DBF63858D37 for ; Thu, 2 Mar 2023 23:52:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1DBF63858D37 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-164-uyHtlJs2N4me2Wxensga7Q-1; Thu, 02 Mar 2023 18:52:30 -0500 X-MC-Unique: uyHtlJs2N4me2Wxensga7Q-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4D46C101A521; Thu, 2 Mar 2023 23:52:30 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0AB6D40C6EC4; Thu, 2 Mar 2023 23:52:29 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 322NqRgl1817428 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 3 Mar 2023 00:52:27 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 322NqQ1i1817427; Fri, 3 Mar 2023 00:52:26 +0100 Date: Fri, 3 Mar 2023 00:52:26 +0100 To: Jonathan Yong <10walls@gmail.com> Cc: Jonathan Yong via Gcc-patches , richard.sandiford@arm.com Subject: [committed] testsuite: Fix up memchr-3.c test [PR108991] Message-ID: References: <51b54f05-f6d6-fbb1-9f5a-987e47264a1d@gmail.com> MIME-Version: 1.0 In-Reply-To: <51b54f05-f6d6-fbb1-9f5a-987e47264a1d@gmail.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-9.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jakub Jelinek via Gcc-patches From: Jakub Jelinek Reply-To: Jakub Jelinek 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?1759302073296857696?= X-GMAIL-MSGID: =?utf-8?q?1759302073296857696?= On Thu, Mar 02, 2023 at 01:43:30PM +0000, Jonathan Yong via Gcc-patches wrote: > On 3/2/23 10:46, Richard Sandiford wrote: > > > diff --git a/gcc/testsuite/gcc.dg/memchr-3.c b/gcc/testsuite/gcc.dg/memchr-3.c > > > index c38d9cf3349..af1b26ef3ae 100644 > > > --- a/gcc/testsuite/gcc.dg/memchr-3.c > > > +++ b/gcc/testsuite/gcc.dg/memchr-3.c > > > @@ -6,7 +6,7 @@ > > > typedef __INT8_TYPE__ int8_t; > > > typedef __INT32_TYPE__ int32_t; > > > -extern void* memchr (const void*, int, long); > > > +extern void* memchr (const void*, int, long); /* { dg-warning "-Wbuiltin-declaration-mismatch" { target llp64 } } */ > > > struct SX > > > { > > > > OK, thanks. > > Thanks, pushed to master branch. The newly added dg-warning directive was missing the comment argument, so the target selector was treated as comment and the warning was expected on all targets when it should be expected only on llp64 targets. Tested on x86_64-linux -m32/-m64, committed to trunk as obvious: 2023-03-03 Jakub Jelinek PR testsuite/108991 * gcc.dg/memchr-3.c: Add missing comment argument to dg-warning before target selector. Jakub --- gcc/testsuite/gcc.dg/memchr-3.c.jj 2023-03-02 19:09:45.466594110 +0100 +++ gcc/testsuite/gcc.dg/memchr-3.c 2023-03-03 00:48:04.368348282 +0100 @@ -6,7 +6,7 @@ typedef __INT8_TYPE__ int8_t; typedef __INT32_TYPE__ int32_t; -extern void* memchr (const void*, int, long); /* { dg-warning "-Wbuiltin-declaration-mismatch" { target llp64 } } */ +extern void* memchr (const void*, int, long); /* { dg-warning "-Wbuiltin-declaration-mismatch" "" { target llp64 } } */ struct SX {