From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22005 invoked by alias); 16 Mar 2006 18:38:44 -0000 Received: (qmail 21997 invoked by uid 22791); 16 Mar 2006 18:38:44 -0000 X-Spam-Check-By: sourceware.org Received: from whirlwind.netspace.net.au (HELO mail.netspace.net.au) (203.10.110.76) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 16 Mar 2006 18:38:39 +0000 Received: from mail.localnet (dsl-202-45-120-45-static.SA.netspace.net.au [202.45.120.45]) by mail.netspace.net.au (Postfix) with ESMTP id CC137130AEF; Fri, 17 Mar 2006 05:38:34 +1100 (EST) Received: by mail.localnet (Postfix, from userid 1000) id 5C2FBBB0155; Fri, 17 Mar 2006 05:08:34 +1030 (CST) Date: Thu, 16 Mar 2006 18:38:00 -0000 From: Kevin Shanahan To: John Love-Jensen Cc: MSX to GCC Subject: Re: gcc 4.1 -O1 problem Message-ID: <20060316183834.GK9176@cubit> References: <20060316061144.GG9176@cubit> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-03/txt/msg00121.txt.bz2 On Thu, Mar 16, 2006 at 06:50:42AM -0600, John Love-Jensen wrote: > I think your code is correct, and the GCC 4.1 compiler has a boo-boo. File > a bug report, please, including the code snippet that reproduces the > suspected bug, what platform, and the command line used to compile the code. > See "Bugs" section on the left column of . Okay, thanks. I've filed this as bug #26719. > Anyway, here's a couple bits of tid (as I understand it): > > -O0 disables all optimizations. The -fenable-something likely don't enable > the specified optimization when -O0 is specified (if there are exceptions, > I'm not aware of them). I tried with and without -O0 specified; it didn't seem to make a difference. > -fverbose-asm (with -S or -save-temps) is useful to ascertain what > optimizations are happenings with -O1, -O2, -O3, -Os. Using -fverbose-asm and -save-temps, it seems to show a few more optimisations being used than the man page indicates. I might try a few of those and add it to the bug info if it makes a difference. Cheers, Kevin.