From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gateway22.websitewelcome.com (gateway22.websitewelcome.com [192.185.47.129]) by sourceware.org (Postfix) with ESMTPS id CAB2F3857012 for ; Wed, 28 Apr 2021 01:01:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CAB2F3857012 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tom@tromey.com Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 3EEA56846B for ; Tue, 27 Apr 2021 20:01:38 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id bYaAlCx9Q1cHebYaAlFDWx; Tue, 27 Apr 2021 20:01:38 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: To:From:Sender:Reply-To:Cc:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=v1FTGTQEsX3QlDSBVuRAvkZ5frIq7f728xf9ubTPKus=; b=W7DdN40csTT7ygax4XXWMqfyTF e5W2SqRvWxqVVhEAFw8Dt+g4nUxxnpcmjgEVeb5l4bJ7wvSdQuSzcj7CKc4F86GgCl0ehcSKLwLU6 /M1s1ICCFQhOHn6THNpbZNf22; Received: from 97-122-70-176.hlrn.qwest.net ([97.122.70.176]:32966 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lbYa9-003tiR-Td for gcc-patches@gcc.gnu.org; Tue, 27 Apr 2021 19:01:37 -0600 From: Tom Tromey To: gcc-patches@gcc.gnu.org Subject: [PATCH v2 00/21] C++11-based improvements for libcc1 Date: Tue, 27 Apr 2021 19:00:58 -0600 Message-Id: <20210428010119.806184-1-tom@tromey.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - gcc.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.70.176 X-Source-L: No X-Exim-ID: 1lbYa9-003tiR-Td X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-70-176.hlrn.qwest.net (localhost.localdomain) [97.122.70.176]:32966 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-3023.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS, SPF_HELO_PASS, SPF_NEUTRAL, TXREP, URIBL_CSS, URIBL_CSS_A autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2021 01:01:41 -0000 Here is v2 of my series to simplify libcc1 through the use of C++11 constructs. v1 is here: https://gcc.gnu.org/pipermail/gcc-patches/2021-January/562668.html I never pinged it because I'd sent it in the wrong stage. As with v1, this brings libcc1 much closer to how I originally wanted it to work. Back then, C++11 couldn't be used, so some things had to be written in a verbose way. C++11 brings variadic templates, which make it possible to simplify this code. This version of the series brings more improvements. The plugin for the C++ compiler was apparently written by copying much of the C compiler code. However, the original design was to unify these, and this series eliminates much of the duplication. This version also removes some manual memory management; typically in favor of either unique_ptr or vector, but also via custom 'deleter' classes for the rpc code. Finally, a couple of minor bugs are fixed along the way. I built and tested this against git GDB on x86-64 Fedora 32. Note that the C++ plugin currently does not for git GCC -- it crashes. This series doesn't make it worse (it may slightly change the reported failures), but nor does it improve it. Tom