From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78277 invoked by alias); 26 Jul 2017 08:55:21 -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 78235 invoked by uid 89); 26 Jul 2017 08:55:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=H*r:sk:static., HContent-Transfer-Encoding:8bit X-HELO: mail-io0-f176.google.com Received: from mail-io0-f176.google.com (HELO mail-io0-f176.google.com) (209.85.223.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 26 Jul 2017 08:55:17 +0000 Received: by mail-io0-f176.google.com with SMTP id g13so65154766ioj.5 for ; Wed, 26 Jul 2017 01:55:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=/xxW3TiNVgh9hk3FkpymxO8phio0NcJEWGrhUt62BfQ=; b=GL6x+ZZuaBvmgQHwTGl+jiTokZOLdV095r4lQDrtuOgTAjUVzxas7U/mOEw9/mwRea 6QhNAjemzmmIk2QwVNGSAN6xXok0Xjbbci7orh6mOOwR4P7qT1S9pEXXk9gKanFxCixq n0AWLM4XFeKzmy6VsYPIELC4SdIf3t1nZhMtE090M7HhtMKYwwRoDe8WwoAbU9i1bmlb NitW/i6L0Zw5kCBlmx4EYKgiBJt016gJWMyfCc6uoWx1N7LAGjHVX0o/sj7gXPBZNE+o E8jSCo2B91BcPW24egzfiEoYYqUFy0NdMmfhq6iW0gYjOjziB5qejS88nl2PMCJJ6+DE ciIw== X-Gm-Message-State: AIVw110U8c29VIyGUkXZbXncN9cwIanJmMR8sna6FFXpGdqJZ95h0UDc KXvPdmxPUcRsoIUK X-Received: by 10.107.16.101 with SMTP id y98mr222594ioi.196.1501059315723; Wed, 26 Jul 2017 01:55:15 -0700 (PDT) Received: from 1170ee0b50d5 (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id j143sm7779336ioj.23.2017.07.26.01.55.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jul 2017 01:55:15 -0700 (PDT) Date: Wed, 26 Jul 2017 08:55:00 -0000 From: Yao Qi To: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Add macro DISABLE_COPY_AND_ASSIGN Message-ID: <20170726085510.GA8039@1170ee0b50d5> References: <1500456645-30359-1-git-send-email-yao.qi@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1500456645-30359-1-git-send-email-yao.qi@linaro.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg01641.txt.bz2 On 17-07-19 10:30:45, Yao Qi wrote: > We have many classes that copy cotr and assignment operator are deleted > in different projects, gcc, gdb and gold. So this patch adds a macro > to do this, and replace these existing mechanical code with macro > DISABLE_COPY_AND_ASSIGN. > > The patch was posted in gdb-patches, > https://sourceware.org/ml/gdb-patches/2017-07/msg00254.html but we > think it is better to put this macro in include/ansidecl.h so that > other projects can use it too. > > Boostrapped on x86_64-linux-gnu. Is it OK? > > include: > > 2017-07-19 Yao Qi > Pedro Alves > > * ansidecl.h (DISABLE_COPY_AND_ASSIGN): New macro. > > gcc/cp: > > 2017-07-19 Yao Qi > > * cp-tree.h (class ovl_iterator): Use DISABLE_COPY_AND_ASSIGN. > * name-lookup.c (struct name_loopup): Likewise. > > gcc: > > 2017-07-19 Yao Qi > > * tree-ssa-scopedtables.h (class avail_exprs_stack): Use > DISABLE_COPY_AND_ASSIGN. > (class const_and_copies): Likewise. Ping. https://gcc.gnu.org/ml/gcc-patches/2017-07/msg01134.html -- Yao (齐尧)