From patchwork Thu Dec 5 20:08:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1204815 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-515291-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="xsElAkzp"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="M5uvu0Z9"; 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 47TRdC1qH0z9sPJ for ; Fri, 6 Dec 2019 07:09:19 +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=m7qYJSAgiZrgIpPbxYnWdnyQ4MQlAayNPuIwFQbmwqRbZOo33xhz0 pOxV87t6a03C0u7g5JnPiK38cFwWrjcdK6F5SaUMn2otaWDNw4ONMtd9ztAo6Brp jTGJVMGNBxooKX+/EZxrlWqpfFy477r9VaW05a5kLWwljWNupjXGz0= 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=HPzHOE0Ocnj+7kDKDV9dcg9Ls9w=; b=xsElAkzp0j5UlHutqFtPkzZYYXNV SlQALKHwsuWzCFF6G8+x8vAyx4f/vZZDJ7JD/2nYtuYSiQkPpMVbVXhpdfA0DGGb SY5J4a+GzREMU1pNiHC094l5nsxWlgdOJVcZzfLN06bvBl/MJYmjtVLSFbjeelxj 846wpf65IA2j790= Received: (qmail 82228 invoked by alias); 5 Dec 2019 20:09:02 -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 82126 invoked by uid 89); 5 Dec 2019 20:09:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy=timer X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (207.211.31.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Dec 2019 20:09:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575576538; 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=HWVWGXuZqVc0+tZoPI3EbMEr2G9RwtbcKLJ4xE8wHL0=; b=M5uvu0Z9jF53fmsiSHJKE/oF3C0ns5obQ+QOWY8Z03XfHIM9lDnRdpbaZQB21O8ez74NJG NY/lIBPCzwjnrlpT0T2wg8S1Z7dkkay2TBjk5hZtt/zFXy4ssSwfbvnprHGgyqMzseKeqQ z5VzXgYUNoS93fNmAEb05Y6tTDGglDw= 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-31-pG7_GertOCmKXAKFhh7HEA-1; Thu, 05 Dec 2019 15:08:55 -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 B8FAE1856A60 for ; Thu, 5 Dec 2019 20:08:54 +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 54C7D10013D9; Thu, 5 Dec 2019 20:08:54 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 1/6] Use DISABLE_COPY_AND_ASSIGN in auto_timevar Date: Thu, 5 Dec 2019 15:08:47 -0500 Message-Id: <20191205200852.19076-2-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: * timevar.h (auto_timevar): Use DISABLE_COPY_AND_ASSIGN. --- gcc/timevar.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gcc/timevar.h b/gcc/timevar.h index d053ab795acf..c3b6233c35dd 100644 --- a/gcc/timevar.h +++ b/gcc/timevar.h @@ -248,9 +248,7 @@ class auto_timevar } private: - - // Private to disallow copies. - auto_timevar (const auto_timevar &); + DISABLE_COPY_AND_ASSIGN (auto_timevar); timer *m_timer; timevar_id_t m_tv; From patchwork Thu Dec 5 20:08:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1204818 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-515294-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="Ln1C9e91"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="ddoYUg3p"; 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 47TRdz1PLYz9sPL for ; Fri, 6 Dec 2019 07:09:58 +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=ew2m1W21ec2l7Kom9t5DB7xOo5DH3Wm8dXXMrIhL8sCfV19o9/mPo PHmQU7KXY7iR5rFjzfevuGzGm76NGgjHcCx/qTJVMjEjJvO0d28BN6STXPfyesiG T9J6vrhOhqN8GdLVRniPpcINg6fK8WnZGvoX70U8nkXgmcIZvCva2E= 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=oUv2VGMFtalb5YmRo6E3gHlKBf8=; b=Ln1C9e91nPEvisdjbeKm/euT4nYh C84dXnyM+yClLQdJxU4Wd6EP15cLPzA+PO/wAGY3Ee8pLstEre6CHlYeOAIjBKA7 xk0uk5xGc/271NZ6+336r0H3R6gXt/l8rK8FRfTiKEDa/14bO3FrhrsGxrqMxyk9 fzr8UhlY+yQyF2Q= Received: (qmail 82586 invoked by alias); 5 Dec 2019 20:09:04 -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 82365 invoked by uid 89); 5 Dec 2019 20:09:03 -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=timer X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (207.211.31.120) 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=1575576540; 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=RbsC8ej4vH4Sfe/Ap+bUtM2C7/5KhFKS3+GPsHWeRWs=; b=ddoYUg3pE9hFGfH2q4zEMbqcVlJQP52Jpgfg59Kp6tQvmQ1dq/iYb57JtiuVyjrJqkahSo fkFKCKTDgjlfuvg5AvHuvka2mvXVTVotyG+fleWDrzk60w7uTAKU0X66xnY1W0fbKjBGOW ZTXOGrfBiBRJsA5+ZCahR/Kixgqdlms= 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-15-kIBz5eh8M8aGHprwb1IRWQ-1; Thu, 05 Dec 2019 15:08:56 -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 4EA9A800EBD for ; Thu, 5 Dec 2019 20:08:55 +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 E195110013D9; Thu, 5 Dec 2019 20:08:54 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 2/6] Use DISABLE_COPY_AND_ASSIGN in auto_client_timevar Date: Thu, 5 Dec 2019 15:08:48 -0500 Message-Id: <20191205200852.19076-3-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: * timevar.h (auto_client_timevar): Use DISABLE_COPY_AND_ASSIGN. --- gcc/timevar.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/timevar.h b/gcc/timevar.h index c3b6233c35dd..47586f7b5847 100644 --- a/gcc/timevar.h +++ b/gcc/timevar.h @@ -281,8 +281,7 @@ class auto_client_timevar } private: - // Private to disallow copies. - auto_client_timevar (const auto_client_timevar &); + DISABLE_COPY_AND_ASSIGN (auto_client_timevar); timer *m_timer; }; From patchwork Thu Dec 5 20:08:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1204820 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-515296-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="iHx+0YG9"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="AfRvhPx4"; 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 47TRfS1Q4cz9sPJ for ; Fri, 6 Dec 2019 07:10:24 +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=uBiFR0JVQYLjG2Ned3waAuwySJyalMuY/1sCPq+KXtLs+G9/VM2Pf I4hjs5z1revYTyMhegXXmjoeYBzPUZ/G73ruW6rxLKIucNqr04bNBgNSkFggUVD9 ltQApNz9hG6PDBMdTJ1nVwcQ4AXSYazcRzbY4jQKc861LGPloojHUA= 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=cO9JvRbIxhj+9UqVm8iYpSamf3A=; b=iHx+0YG9cCFv0arPmVnHTFvJOIxA Ap9n2Rk+ZIuOH8wikaFIE3xeXMUHjhgSixT1EdthlUeGnK4SZsmTustAZh2ZevSE 5PpntscmY4zJdD/cajQoMAiKFfbJIhO4Tyx5lipqVdGOfeghNDMz3ep04omAbRa/ BKVQtDMgkLpeZog= Received: (qmail 82738 invoked by alias); 5 Dec 2019 20:09:04 -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 82561 invoked by uid 89); 5 Dec 2019 20:09:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, T_FILL_THIS_FORM_SHORT autolearn=ham version=3.3.1 spammy=HX-Languages-Length:896 X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (207.211.31.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Dec 2019 20:09:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575576541; 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=TO8sdI0VUngorByVGtVxUGyxe9+e86VoJqlno14tPvc=; b=AfRvhPx4Zr1rDxVJwe+jWCx5RX8NksDv+icIaPB97d7HCgVegfzqcj9mQa2yi1pf/2lcaG NK7dwfeBxGg1RWXEucRcWKpd3UFQDNFDM93WZoaI6lGD6g+q9EKCDEexPhlBrnqcsL9pLr 9mlx2Oi069OvBGFG4FBKzHcWkEq3x8g= 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-89-6HyyGzL4Nz21lY89syplsA-1; Thu, 05 Dec 2019 15:08:59 -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 D9A3D1856A62 for ; Thu, 5 Dec 2019 20:08:55 +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 7822310013D9; Thu, 5 Dec 2019 20:08:55 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 3/6] Use DISABLE_COPY_AND_ASSIGN in analyzer-logging.h Date: Thu, 5 Dec 2019 15:08:49 -0500 Message-Id: <20191205200852.19076-4-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: * analyzer/analyzer-logging.h (logger): Use DISABLE_COPY_AND_ASSIGN. (log_scope): Likewise. (log_user): Likewise. --- gcc/analyzer/analyzer-logging.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/analyzer/analyzer-logging.h b/gcc/analyzer/analyzer-logging.h index 3e000b60495f..fac5e37f94a8 100644 --- a/gcc/analyzer/analyzer-logging.h +++ b/gcc/analyzer/analyzer-logging.h @@ -57,6 +57,8 @@ class logger FILE *get_file () const { return m_f_out; } private: + DISABLE_COPY_AND_ASSIGN (logger); + int m_refcount; FILE *m_f_out; int m_indent_level; @@ -77,6 +79,8 @@ public: ~log_scope (); private: + DISABLE_COPY_AND_ASSIGN (log_scope); + logger *m_logger; const char *m_name; }; @@ -167,6 +171,8 @@ class log_user } private: + DISABLE_COPY_AND_ASSIGN (log_user); + logger *m_logger; }; From patchwork Thu Dec 5 20:08:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1204817 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-515293-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="AABD+KR4"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="SGCnRcfR"; 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 47TRdl0P98z9sPL for ; Fri, 6 Dec 2019 07:09:46 +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=m5haeJytSyQHhQOFqJfPqde8J7E5B+P1iJpH1WknDETiPVxNy2w/l 9E5cg3W+EEc+m5qzaRSKAfoJIEC06WO1kU7hS/SnQV1lXz5qnHyZ2JrNv3hhR8JC KJa7HQukVdqaDqDL6lHkGc7gA3u6eklcu5IQN+F5T3vBzfVsUgs4v0= 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=G1XOVaYhua6RvMmLm04Fcrr86po=; b=AABD+KR4Gu+blEOYhv6yl0aIuyev PfbUbGAnyQJMzec4ZoEHcF4upawJedQwHHgd8x36WLfLrml7PWK2ZZHsn7JQTrz8 LuDt87klhCpJJxwTMIQCsTSQ1RsoGzvp9WTW5ojsLB4Cws0oeJrHKiDC/5hh+JzK mk8hWDtxkiqkygI= Received: (qmail 82542 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 82299 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, T_FILL_THIS_FORM_SHORT autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (205.139.110.120) 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=w3tH+nOWfjTXjAaKLwfC7x5QjLxAc7mLqLR1F26EZSY=; b=SGCnRcfRx1Xxu/0eXZ6lpNkGCQYH2P/YVYWiSzaIpi2RQQSVmqvbiSlaD6wDK9Hj0VTR82 EAoCVwcWyD0+RgQniaqKxlCShexqO4CMNkoAD97PTDraBVmd5dUDpRCZd5xoypNk9DBh48 wNbibF9SbbKwSQldVLXnNswTLBoESzc= 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-368-xkLCa_kANs-q2gW-xsbIlg-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 70E83593A0 for ; Thu, 5 Dec 2019 20:08:56 +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 0C46210013D9; Thu, 5 Dec 2019 20:08:55 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 4/6] Use DISABLE_COPY_AND_ASSIGN in jit-logging.h Date: Thu, 5 Dec 2019 15:08:50 -0500 Message-Id: <20191205200852.19076-5-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/jit/ChangeLog: * jit-logging.h (gcc::jit::logger): Use DISABLE_COPY_AND_ASSIGN. (gcc::jit::log_scope): Likewise. (gcc::jit::log_user): Likewise. --- gcc/jit/jit-logging.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/jit/jit-logging.h b/gcc/jit/jit-logging.h index db0b6a531043..cc0036a10880 100644 --- a/gcc/jit/jit-logging.h +++ b/gcc/jit/jit-logging.h @@ -48,6 +48,8 @@ class logger void exit_scope (const char *scope_name); private: + DISABLE_COPY_AND_ASSIGN (logger); + int m_refcount; FILE *m_f_out; int m_indent_level; @@ -65,6 +67,8 @@ public: ~log_scope (); private: + DISABLE_COPY_AND_ASSIGN (log_scope); + logger *m_logger; const char *m_name; }; @@ -134,6 +138,8 @@ class log_user void exit_scope (const char *scope_name); private: + DISABLE_COPY_AND_ASSIGN (log_user); + logger *m_logger; }; From patchwork Thu Dec 5 20:08:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1204819 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-515295-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="IOMYyMam"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="b13TvGUh"; 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 47TRfC3xXrz9sPL for ; Fri, 6 Dec 2019 07:10:11 +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=lRXz2DMWE64QPfNGykXLubnIU7kvaceAtzZLIfdCEbj8UAMxYrFhS Fu3St6cQ8rSP7U8AGGsRFjho6xZwQOHtyN8AaoBWy7YGXSTAFUh4hS3v6CUT1PuQ y49iCpjMNRPVV/evpbZle/aZTJThiVINwlgTuczRt7sUBK/XGrfz9I= 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=X4YN2efkoI9Ivz9yqyXEmXOCdrg=; b=IOMYyMamQ1oApCyecCGW3fAQXv0i tpsCsJSuqTD4erEF9wiiqcUhoERLFTNa4Cwx+eLyRkDQ0XGFd2pgUmkyFNC1zGy8 RrA9BKQ0Cs+ekpag9v6xyb801gJPgzJzpx0NlIq3AeqmQjk/URhsde5f1L18sw+k WXFlZYhOK6fRop8= Received: (qmail 82632 invoked by alias); 5 Dec 2019 20:09:04 -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 82411 invoked by uid 89); 5 Dec 2019 20:09:03 -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=custom_info_t, HX-Languages-Length:3222 X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (205.139.110.120) 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=+jjXbwX/Xh83FAj23B5Q2uf9lrwwFMTMX8rjsQB7dOM=; b=b13TvGUhhHTIiku+gbYaiTC3grR2eAfnfzR8kStRghGwrja6dGCAHMNe8IQiXOYeMiyBTP 2gXw8g6d1iZJHwGV++zGI3MdUJNa2aPgRzFxJPfDE7Lno1a8mDNmS7y+M3KmGqSHhuZvWH IloQrIrfx7XPx8qzJ1E2/rRiSZY45yc= 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-108-XpJokG0jOluLQZYR__JOUA-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 0B4D0107ACC9 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 9861310013D9; Thu, 5 Dec 2019 20:08:56 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 5/6] [analyzer] Use DISABLE_COPY_AND_ASSIGN in various places Date: Thu, 5 Dec 2019 15:08:51 -0500 Message-Id: <20191205200852.19076-6-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 This patch adds DISABLE_COPY_AND_ASSIGN to various classes that had a dtor but for which I hadn't bothered implementing the copy ctor and assignment operator. gcc/ChangeLog: * analyzer/analysis-plan.h (analysis_plan): Add DISABLE_COPY_AND_ASSIGN. * analyzer/diagnostic-manager.h (saved_diagnostic): Likewise. * analyzer/exploded-graph.h (exploded_node): Likewise. (exploded_edge): Likewise. (exploded_graph): Likewise. * analyzer/sm.h (state_machine): Likewise. * analyzer/state-purge.h (state_purge_map): Likewise. --- gcc/analyzer/analysis-plan.h | 2 ++ gcc/analyzer/diagnostic-manager.h | 3 +++ gcc/analyzer/exploded-graph.h | 7 +++++++ gcc/analyzer/sm.h | 2 ++ gcc/analyzer/state-purge.h | 2 ++ 5 files changed, 16 insertions(+) diff --git a/gcc/analyzer/analysis-plan.h b/gcc/analyzer/analysis-plan.h index c9396ec83854..f22e7338b1e7 100644 --- a/gcc/analyzer/analysis-plan.h +++ b/gcc/analyzer/analysis-plan.h @@ -42,6 +42,8 @@ public: bool use_summary_p (const cgraph_edge *edge) const; private: + DISABLE_COPY_AND_ASSIGN (analysis_plan); + const supergraph &m_sg; /* Result of ipa_reverse_postorder. */ diff --git a/gcc/analyzer/diagnostic-manager.h b/gcc/analyzer/diagnostic-manager.h index 8591d2ec7cd6..ac4e74a9090c 100644 --- a/gcc/analyzer/diagnostic-manager.h +++ b/gcc/analyzer/diagnostic-manager.h @@ -59,6 +59,9 @@ public: state_machine::state_t m_state; pending_diagnostic *m_d; exploded_edge *m_trailing_eedge; + +private: + DISABLE_COPY_AND_ASSIGN (saved_diagnostic); }; /* A class with responsibility for saving pending diagnostics, so that diff --git a/gcc/analyzer/exploded-graph.h b/gcc/analyzer/exploded-graph.h index 26ae109628f4..c8784acd8d91 100644 --- a/gcc/analyzer/exploded-graph.h +++ b/gcc/analyzer/exploded-graph.h @@ -241,6 +241,8 @@ class exploded_node : public dnode void dump_succs_and_preds (FILE *outf) const; private: + DISABLE_COPY_AND_ASSIGN (exploded_node); + const char * get_dot_fillcolor () const; /* The pair. This is const, as it @@ -296,6 +298,9 @@ class exploded_edge : public dedge Owned by this class. */ custom_info_t *m_custom_info; + +private: + DISABLE_COPY_AND_ASSIGN (exploded_edge); }; /* Extra data for an exploded_edge that represents a rewind from a @@ -733,6 +738,8 @@ public: { return &m_per_call_string_data; } private: + DISABLE_COPY_AND_ASSIGN (exploded_graph); + const supergraph &m_sg; /* Map from point/state to exploded node. diff --git a/gcc/analyzer/sm.h b/gcc/analyzer/sm.h index 905e64407df6..65205f8fd47f 100644 --- a/gcc/analyzer/sm.h +++ b/gcc/analyzer/sm.h @@ -90,6 +90,8 @@ protected: state_t add_state (const char *name); private: + DISABLE_COPY_AND_ASSIGN (state_machine); + const char *m_name; auto_vec m_state_names; }; diff --git a/gcc/analyzer/state-purge.h b/gcc/analyzer/state-purge.h index f50c239503ea..46be95bcb9a1 100644 --- a/gcc/analyzer/state-purge.h +++ b/gcc/analyzer/state-purge.h @@ -105,6 +105,8 @@ public: iterator end () const { return m_map.end (); } private: + DISABLE_COPY_AND_ASSIGN (state_purge_map); + const supergraph &m_sg; map_t m_map; }; 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. */