Message ID | Y9BmzmRTiExVyZFR@tucnak |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2420345wrn; Tue, 24 Jan 2023 15:17:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXturefm+dLgv5eQkKI1q6Y18hFoTGDNg4XqiDQH4XjMfuett+dTTHHPHItBOt5un6cH3NlK X-Received: by 2002:a17:906:57da:b0:872:5222:9024 with SMTP id u26-20020a17090657da00b0087252229024mr29767119ejr.67.1674602242214; Tue, 24 Jan 2023 15:17:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674602242; cv=none; d=google.com; s=arc-20160816; b=MwJQAVVXeWmjiX3hzNIa09fbhSI3NyN/kwOKyAI6T+fIBpEUBwiXQg7eOzTCC3OApf bSX89bIMWCpkQSRUg9YpjuzBZd1U6rr/RXW4jG3DFzoBDwq7yz5xpmyS/700bCN6XNTG XLG8CYtMc3TDoQfeqUjyxi1W6XpaE+6efZuG7rM4839X3YOy5uLjWIAcBmIrAXvl4C3V G8eYyZxJmvJNai2J1tZYIlJT8CXSH9tDrSF4Sf93iCBZk9wRVTo88TIn3kVhKrkUe0PZ k8D3/kLDDbcmRR0fDrfwaDADklBNTJtVd3A35ihz9fy6C+qiBGIN1TQWnKX/ctLJYfxC rpRw== 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=QRkFRn+cLjSoOE+DJw9x0ru7u9tIY/+LPjVji2+uaQI=; b=gptM1c0UMbZLaT8qtGbl1wyV9B2bRAV2GFB6LAlaawvJITrjzuT4f6j9ddvgCZF89q fL4G0Aab+ZyW3NSVN+aQ3qiaPvfDhROEiwnmKY+cT1dqrIhX4365/3OqKz9HN3pdzohx tTgZxZuxR+R2aYheUpIbCAzjZc8oKHEu6p6NCfU+RHVaegBc4gUU3BH4THUnnyx5jJVa /LxZ49xvucD3HiSjMq/AcUOdB6t2S85tTcSJH/jnf9JRP0IMk797vDlLCbo8/nkCy7qK fddLBBhylS3IQvAU2zQqc737Y6U5SucYoaDn7Y2qpl645bIAnRISBvNZoiobzvSLQzzi UFtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=acztiDdg; 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 gi37-20020a1709070ca500b0084d2c9af2e9si3652828ejc.828.2023.01.24.15.17.22 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 15:17: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=acztiDdg; 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 346263858CDB for <ouuuleilei@gmail.com>; Tue, 24 Jan 2023 23:17:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 346263858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674602241; bh=QRkFRn+cLjSoOE+DJw9x0ru7u9tIY/+LPjVji2+uaQI=; 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=acztiDdgOl/uK2WG4unRUZ27WtjUpklyd2PTdrQUBvH0A8/FJiypRADZSKQ97vmgJ ZtYz7DjXM+tHxoiFeUORxZp8lH1Hef9rkPJOG5OkZpmvRmF7S1ks1eeQmVAw3A7TVg 43fgIDfCxaL6zqXtmZ8bElPOUznlu66UzopwhlfY= 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.129.124]) by sourceware.org (Postfix) with ESMTPS id D0F0D3858D1E for <gcc-patches@gcc.gnu.org>; Tue, 24 Jan 2023 23:16:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D0F0D3858D1E 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-261-s3Pz9_DZOgu39Z8G5ooixA-1; Tue, 24 Jan 2023 18:16:34 -0500 X-MC-Unique: s3Pz9_DZOgu39Z8G5ooixA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E1FB9101A521 for <gcc-patches@gcc.gnu.org>; Tue, 24 Jan 2023 23:16:33 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.223]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A05BC140EBF5; Tue, 24 Jan 2023 23:16:33 +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 30ONGUhR2646031 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 25 Jan 2023 00:16:31 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 30ONGUoj2646030; Wed, 25 Jan 2023 00:16:30 +0100 Date: Wed, 25 Jan 2023 00:16:30 +0100 To: Jason Merrill <jason@redhat.com> Cc: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Fix up new51.C test on various targets [PR108533] Message-ID: <Y9BmzmRTiExVyZFR@tucnak> References: <20230124032614.121085-1-jason@redhat.com> MIME-Version: 1.0 In-Reply-To: <20230124032614.121085-1-jason@redhat.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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 <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: Jakub Jelinek via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Jakub Jelinek <jakub@redhat.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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755947721088506365?= X-GMAIL-MSGID: =?utf-8?q?1755947721088506365?= |
Series |
[committed] testsuite: Fix up new51.C test on various targets [PR108533]
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Jakub Jelinek
Jan. 24, 2023, 11:16 p.m. UTC
On Mon, Jan 23, 2023 at 10:26:14PM -0500, Jason Merrill via Gcc-patches wrote:
> * g++.dg/init/new51.C: New test.
The test fails on targets where size_t is not unsigned long
due to extra diagnostics.
As the testcase is tested in C++98 too, I'm not using decltype (sizeof 0)
but __SIZE_TYPE__.
Tested on x86_64-linux and i686-linux (plus verified with older snapshots
that it ICEs even with the change with both -m32/-m64), committed to
trunk as obvious.
2023-01-25 Jakub Jelinek <jakub@redhat.com>
PR c++/107329
PR testsuite/108533
* g++.dg/init/new51.C (size_t): New typedef.
(RexxClass::operator new, RexxClass::operator delete): Use size_t
instead of unsigned long.
Jakub
Comments
On 1/24/23 18:16, Jakub Jelinek wrote: > On Mon, Jan 23, 2023 at 10:26:14PM -0500, Jason Merrill via Gcc-patches wrote: >> * g++.dg/init/new51.C: New test. > > The test fails on targets where size_t is not unsigned long > due to extra diagnostics. > > As the testcase is tested in C++98 too, I'm not using decltype (sizeof 0) > but __SIZE_TYPE__. > > Tested on x86_64-linux and i686-linux (plus verified with older snapshots > that it ICEs even with the change with both -m32/-m64), committed to > trunk as obvious. Thanks. > 2023-01-25 Jakub Jelinek <jakub@redhat.com> > > PR c++/107329 > PR testsuite/108533 > * g++.dg/init/new51.C (size_t): New typedef. > (RexxClass::operator new, RexxClass::operator delete): Use size_t > instead of unsigned long. > > --- gcc/testsuite/g++.dg/init/new51.C.jj 2023-01-24 11:10:13.000000000 +0100 > +++ gcc/testsuite/g++.dg/init/new51.C 2023-01-25 00:05:10.767472447 +0100 > @@ -1,9 +1,10 @@ > // PR c++/107329 > > +typedef __SIZE_TYPE__ size_t; > struct RexxClass { > - void *operator new(unsigned long, unsigned long, const char *, RexxClass *, > + void *operator new(size_t, size_t, const char *, RexxClass *, > RexxClass *); > - void operator delete(void *, unsigned long, const char *, RexxClass *, > + void operator delete(void *, size_t, const char *, RexxClass *, > RexxClass *); > RexxClass(); > }; > > Jakub >
--- gcc/testsuite/g++.dg/init/new51.C.jj 2023-01-24 11:10:13.000000000 +0100 +++ gcc/testsuite/g++.dg/init/new51.C 2023-01-25 00:05:10.767472447 +0100 @@ -1,9 +1,10 @@ // PR c++/107329 +typedef __SIZE_TYPE__ size_t; struct RexxClass { - void *operator new(unsigned long, unsigned long, const char *, RexxClass *, + void *operator new(size_t, size_t, const char *, RexxClass *, RexxClass *); - void operator delete(void *, unsigned long, const char *, RexxClass *, + void operator delete(void *, size_t, const char *, RexxClass *, RexxClass *); RexxClass(); };