From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24870 invoked by alias); 20 Oct 2004 22:42:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 24855 invoked by alias); 20 Oct 2004 22:41:59 -0000 Date: Wed, 20 Oct 2004 22:42:00 -0000 Message-ID: <20041020224159.24854.qmail@sourceware.org> From: "jsm at polyomino dot org dot uk" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041019202143.18065.schlie@comcast.net> References: <20041019202143.18065.schlie@comcast.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/18065] usual arithmetic conversion not applying correctly X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg02715.txt.bz2 List-Id: ------- Additional Comments From jsm at polyomino dot org dot uk 2004-10-20 22:41 ------- Subject: Re: usual arithmetic conversion not applying correctly On Wed, 20 Oct 2004, schlie at comcast dot net wrote: > It's a pretty major screw-up to presume > all target machines are large, and then to encode that presumption into > C's front end; not to mention it seems pretty stupid to do, and then This is not a GCC presumption, it is a property of the C language that there are certain promotions that may not be optimally efficient for 8-bit targets. If there is a "major screw-up", it is either in the choice to use a language designed for systems that are at least 16-bit on an 8-bit target, or in the language design if you think 8-bit targets should have been given greater importance when the language was being standardised in the 1980s; it is nothing to do with the front end. The AVR target has a -mint8 option which puts the compiler in a nonconforming mode with 8-bit int, which might however give you better code than you can get with standard C on an 8-bit target. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18065