From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26989 invoked by alias); 25 May 2005 00:43:15 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 26972 invoked by uid 22791); 25 May 2005 00:43:03 -0000 Received: from yosemite.airs.com (HELO yosemite.airs.com) (205.217.158.180) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Wed, 25 May 2005 00:43:03 +0000 Received: (qmail 2079 invoked by uid 10); 25 May 2005 00:43:01 -0000 Received: (qmail 6221 invoked by uid 500); 25 May 2005 00:42:52 -0000 To: Zack Weinberg Cc: DJ Delorie , gcc@gcc.gnu.org Subject: Re: Compiling GCC with g++: a report References: <1116907280.9577.31.camel@localhost.localdomain> <87br71kv04.fsf@codesourcery.com> <87y8a5je22.fsf@codesourcery.com> <1116976014.8637.11.camel@localhost.localdomain> <1116979946.8798.4.camel@localhost.localdomain> <200505250027.j4P0Rb0t010519@greed.delorie.com> <1116981782.8895.4.camel@localhost.localdomain> From: Ian Lance Taylor Date: Wed, 25 May 2005 01:02:00 -0000 In-Reply-To: <1116981782.8895.4.camel@localhost.localdomain> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-05/txt/msg01332.txt.bz2 Zack Weinberg writes: > Think about how machine_mode values are used. Almost the entire > compiler is supposed to treat them as opaque things. You get them from > e.g. int_mode_for_size; you may iterate over a class with > GET_MODE_WIDER_MODE; you stash them in RTL and you pass them to > predicates. Appearances of "SImode" in the machine-independent compiler > are usually bugs. This is a major contributing factor to the brokenness > of ports that don't set BITS_PER_UNIT==8. Well, do you want a nice clean solution, like using a C++ class, or do you want a hideous hacked up solution that works for C? mv machmode.h real-machmode.h cat < $f.new mv $f.new $f done Ian