From patchwork Thu Dec 5 20:08:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1204816 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=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-515292-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="gcr+jTQB"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="XsKYcMzj"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47TRdT5yp4z9sPJ for ; Fri, 6 Dec 2019 07:09:33 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=fN8wNi4fcubfstjAWhfPrUlWfAUWgCno/eTE8ZyT5kr19lKTKIOD7 YHcPuIOfjDnx6K3LxItTSwmCQcT2lpoPxh3rfs94NIFWAZiVcW0liGNNr039Y7ky OxrImhF75DgRPmfJW8pv0mCndSmA7rhxGIUaGJbmXVxFJyT/ECooOs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=default; bh=k/nuBZE/auhCza/U5sS/oHr1z+g=; b=gcr+jTQBqpR7+HLJzKP99fDMuWbI JGqOT2p4g53uebE7jWwDedBSYHvJCLxyZqv+KT9jQW9l57ZFz6pciTtg8E6rBcFc YRD+zItUXqLMaATBWAt6f+F+jWbjZkyVVpKkhg0ARiexnyhIY0cH8KbVDt/1IZZp mTpHU7x263FX0R4= Received: (qmail 82457 invoked by alias); 5 Dec 2019 20:09:03 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 82297 invoked by uid 89); 5 Dec 2019 20:09:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-2.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (205.139.110.61) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Dec 2019 20:09:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575576539; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vm1Efh/ZeVtSSMQU/1DgmvB6ICr8kRMHHsmxZgg68eo=; b=XsKYcMzjJufPELPbzsFtOULGizhNgtjJa69UwACJMommAOdM7ZXTwfHM6CWq4itapTfOs0 5WxtLixxCDaT7/fF0AZE4syTHqUuEMvVtdlwMfu5PNaJIQECmIimDg0T6A8Zm0k/EFT8rP mu3O3ZJwBZF0H01viE813WuyLpSpa90= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-172-C4LxZFQGNVe7BUhRteHlgA-1; Thu, 05 Dec 2019 15:08:58 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 94465593A1 for ; Thu, 5 Dec 2019 20:08:57 +0000 (UTC) Received: from t470.redhat.com (ovpn-116-76.phx2.redhat.com [10.3.116.76]) by smtp.corp.redhat.com (Postfix) with ESMTP id 33BC310013D9; Thu, 5 Dec 2019 20:08:57 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 6/6] Use DISABLE_COPY_AND_ASSIGN in auto_delete_vec Date: Thu, 5 Dec 2019 15:08:52 -0500 Message-Id: <20191205200852.19076-7-dmalcolm@redhat.com> In-Reply-To: <20191205200852.19076-1-dmalcolm@redhat.com> References: <20191205200852.19076-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-IsSubscribed: yes gcc/ChangeLog: * vec.h (auto_delete_vec): Use DISABLE_COPY_AND_ASSIGN. --- gcc/vec.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/vec.h b/gcc/vec.h index 1957739ecb56..706a6103b744 100644 --- a/gcc/vec.h +++ b/gcc/vec.h @@ -1559,6 +1559,9 @@ class auto_delete_vec : public auto_vec auto_delete_vec (size_t s) : auto_vec (s) {} ~auto_delete_vec (); + +private: + DISABLE_COPY_AND_ASSIGN(auto_delete_vec); }; /* Conditionally allocate heap memory for VEC and its internal vector. */