From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2913 invoked by alias); 15 Apr 2012 20:11:42 -0000 Received: (qmail 2902 invoked by uid 22791); 15 Apr 2012 20:11:41 -0000 X-SWARE-Spam-Status: No, hits=-3.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-iy0-f175.google.com (HELO mail-iy0-f175.google.com) (209.85.210.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 15 Apr 2012 20:11:28 +0000 Received: by iaag37 with SMTP id g37so6920317iaa.20 for ; Sun, 15 Apr 2012 13:11:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.77.138 with SMTP id s10mr3628589igw.48.1334520687940; Sun, 15 Apr 2012 13:11:27 -0700 (PDT) Received: by 10.231.150.213 with HTTP; Sun, 15 Apr 2012 13:11:27 -0700 (PDT) In-Reply-To: References: <4F7B356E.9080003@google.com> <4F7C35A3.3080207@codesourcery.com> <20120410084614.GJ6148@sunsite.ms.mff.cuni.cz> Date: Sun, 15 Apr 2012 20:11:00 -0000 Message-ID: Subject: Re: Switching to C++ by default in 4.8 From: Chiheng Xu To: Jakub Jelinek Cc: Xinliang David Li , Richard Guenther , Bernd Schmidt , Gabriel Dos Reis , David Edelsohn , Diego Novillo , gcc Content-Type: text/plain; charset=UTF-8 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: 2012-04/txt/msg00655.txt.bz2 On Sat, Apr 14, 2012 at 11:47 AM, Chiheng Xu wrote: > > And I want to say that tree/gimple/rtl are compiler's data(or state), > not compiler's text(or logic), the most important thing about them is > how to access their fields. > Given the above assumption, now I doubt the necessity of accessor macros or C++ getter/setter method. Is "tree->code" more direct and efficient than "TREE_CODE(tree)" or "tree->get_code()" ? -- Chiheng Xu