From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13312 invoked by alias); 23 Mar 2011 15:11:08 -0000 Received: (qmail 13220 invoked by uid 22791); 23 Mar 2011 15:11:05 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Mar 2011 15:10:56 +0000 Received: from eggs.gnu.org ([140.186.70.92]:37843) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1Q2Pi2-0001St-Ox for gcc@gnu.org; Wed, 23 Mar 2011 11:10:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2Pi1-0000h2-9D for gcc@gnu.org; Wed, 23 Mar 2011 11:10:54 -0400 Received: from smtp-out.google.com ([216.239.44.51]:54465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2Pi1-0000gu-3T for gcc@gnu.org; Wed, 23 Mar 2011 11:10:53 -0400 Received: from kpbe12.cbf.corp.google.com (kpbe12.cbf.corp.google.com [172.25.105.76]) by smtp-out.google.com with ESMTP id p2NFApAr013841 for ; Wed, 23 Mar 2011 08:10:51 -0700 Received: from qwb8 (qwb8.prod.google.com [10.241.193.72]) by kpbe12.cbf.corp.google.com with ESMTP id p2NFAoUn026586 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 23 Mar 2011 08:10:50 -0700 Received: by qwb8 with SMTP id 8so8296995qwb.39 for ; Wed, 23 Mar 2011 08:10:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.18.72 with SMTP id u8mr5318772vdd.21.1300893048840; Wed, 23 Mar 2011 08:10:48 -0700 (PDT) Received: by 10.220.16.129 with HTTP; Wed, 23 Mar 2011 08:10:48 -0700 (PDT) In-Reply-To: References: Date: Wed, 23 Mar 2011 15:11:00 -0000 Message-ID: Subject: Re: [pph] Adapting LTO streaming for front end AST saving From: Diego Novillo To: Richard Guenther Cc: gcc@gnu.org, Jan Hubicka , Lawrence Crowl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 216.239.44.51 X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-03/txt/msg00356.txt.bz2 On Wed, Mar 23, 2011 at 10:53, Richard Guenther wrote: > Yes, Micha has a load of patches cleaning up streaming and removing > unecessary abstraction. =C2=A0So, why'd you need to share any of it? Removing unnecessary abstraction is fine. But there is a bunch of code that will be common, in particular: building string index tables, symbol tables (the decl index), reading/writing hooks to use other file formats (pph are not elf files) and basic trees (particularly, decls, constants, expressions). We could add anything that is specific to the front end we can add with callbacks. But duplicating all that common code seems wasteful. Diego.