From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19524 invoked by alias); 2 Feb 2015 03:52:47 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 19514 invoked by uid 89); 2 Feb 2015 03:52:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 02 Feb 2015 03:52:46 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 66AF111634F; Sun, 1 Feb 2015 22:52:44 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tj+4QCPEFk7x; Sun, 1 Feb 2015 22:52:44 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 01FA6116307; Sun, 1 Feb 2015 22:52:44 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 4831A40EBF; Mon, 2 Feb 2015 07:52:40 +0400 (RET) Date: Mon, 02 Feb 2015 03:52:00 -0000 From: Joel Brobecker To: Doug Evans Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 0/5] Remove struct main_type.vptr_{fieldno,basetype} Message-ID: <20150202035240.GI4525@adacore.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2015-02/txt/msg00010.txt.bz2 > Anytime you can reduce the size of struct main_type that's A Good Thing. > Alas in this case my motivation, besides more general cleanup (will it > never end?), is that I may wish to add something to struct main_type. > Now I can, if I need to. > > There are two fields in struct main_type that really shouldn't be there: > vptr_fieldno, and vptr_basetype. Every type has to pay the price > in memory usage for their presence. The proper place for them is > in the type_specific field (in this case cplus_stuff) which exists > for this purpose. Thanks for doing that, Doug. -- Joel