From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69708 invoked by alias); 30 May 2019 15:03:37 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 69592 invoked by uid 89); 30 May 2019 15:03:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.2 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 May 2019 15:03:36 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0BA83F9E89 for ; Thu, 30 May 2019 15:03:35 +0000 (UTC) Received: from localhost (unknown [10.33.36.135]) by smtp.corp.redhat.com (Postfix) with ESMTP id B31362B1CA for ; Thu, 30 May 2019 15:03:34 +0000 (UTC) Date: Thu, 30 May 2019 15:03:00 -0000 From: Jonathan Wakely To: gcc-patches@gcc.gnu.org Subject: [wwwdocs] Add sized-deallocation functions to discussion of new/delete Message-ID: <20190530150334.GN2599@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="bWTBxx0QKOXH2iZ2" Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-05/txt/msg02016.txt.bz2 --bWTBxx0QKOXH2iZ2 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-length: 19 Committed to CVS. --bWTBxx0QKOXH2iZ2 Content-Type: text/x-patch; charset=us-ascii Content-Disposition: attachment; filename="patch.txt" Content-length: 1286 Index: htdocs/gcc-9/porting_to.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-9/porting_to.html,v retrieving revision 1.5 diff -u -r1.5 porting_to.html --- htdocs/gcc-9/porting_to.html 13 May 2019 11:57:03 -0000 1.5 +++ htdocs/gcc-9/porting_to.html 30 May 2019 15:01:55 -0000 @@ -144,15 +144,17 @@

The simplest solution is to only replace the ordinary operator new(size_t) and -operator delete(void*) +operator delete(void*) and +operator delete(void*, size_t) functions, and the replaced versions will be used by all of operator new(size_t, nothrow_t), operator new[](size_t) and operator new[](size_t, nothrow_t) and the corresponding operator delete functions. To support types with extended alignment you may also need to replace -operator new(size_t, std::align_val_t) and -operator delete(void*, std::align_val_t) +operator new(size_t, align_val_t) and +operator delete(void*, align_val_t) and +operator delete(void*, align_val_t) (which will then be used by the nothrow and array forms for extended alignments).

--bWTBxx0QKOXH2iZ2--