From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84872 invoked by alias); 27 May 2015 08:39:41 -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 84862 invoked by uid 89); 27 May 2015 08:39:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_05,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx2.suse.de Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Wed, 27 May 2015 08:39:40 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A0E3CAB12; Wed, 27 May 2015 08:39:37 +0000 (UTC) Date: Wed, 27 May 2015 08:50:00 -0000 From: Richard Biener To: Jan Hubicka cc: gcc-patches@gcc.gnu.org Subject: Re: Do not compute alias sets for types that don't need them In-Reply-To: <20150527052213.GA88897@kam.mff.cuni.cz> Message-ID: References: <20150522121552.GC91616@kam.mff.cuni.cz> <20150522133356.GD75713@kam.mff.cuni.cz> <20150527052213.GA88897@kam.mff.cuni.cz> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2015-05/txt/msg02398.txt.bz2 On Wed, 27 May 2015, Jan Hubicka wrote: > > > > > > I am not sure if TYPE_MAIN_VARIANT is really needed here. What I know is that > > > complete types may have incomplete variants. > > > > How can that be? TYPE_FIELDS is shared across variants and all variants > > should be layed out. > > Because TYPE_FILEDS are not always shared across variants. For example > gfc_nonrestricted_type builds variants of types that have their own > TYPE_FIELDS lists whose types are variants of the original TYPE_FIELDs. > C++ FE used to do the same for member pointers, but I noticed that last > stage1 with early version of type verifier and as far as I can remember > Jason changed that. The fortran one needs to be "fixed" to use the new MEM_REF restrict support. Richard. -- Richard Biener SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nuernberg)