From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1816 invoked by alias); 12 Apr 2008 18:37:28 -0000 Received: (qmail 1808 invoked by uid 22791); 12 Apr 2008 18:37:27 -0000 X-Spam-Check-By: sourceware.org Received: from dair.pair.com (HELO dair.pair.com) (209.68.1.49) by sourceware.org (qpsmtpd/0.31) with SMTP; Sat, 12 Apr 2008 18:37:10 +0000 Received: (qmail 21989 invoked by uid 20157); 12 Apr 2008 18:05:47 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 12 Apr 2008 18:05:47 -0000 Date: Sat, 12 Apr 2008 19:10:00 -0000 From: Hans-Peter Nilsson To: Mark Mitchell cc: gcc-patches@gcc.gnu.org Subject: Re: Patch ping... In-Reply-To: <47FF17C0.401@codesourcery.com> Message-ID: <20080412135828.G81361@dair.pair.com> References: <20080405162606.GA22594@atrey.karlin.mff.cuni.cz> <84fc9c000804050953o429fde26jb3938827ff9dc5a@mail.gmail.com> <20080405195910.GF28471@atrey.karlin.mff.cuni.cz> <47FBCEF5.50001@codesourcery.com> <47FF17C0.401@codesourcery.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2008-04/txt/msg01027.txt.bz2 On Fri, 11 Apr 2008, Mark Mitchell wrote: > I certainly understand the idea of the attribute, and I think it's a good > idea. I also think a mode where -Os honors that attribute (even at the > expense of size) is a good idea. Yes. > What I don't know is whether that's the > right default behavior for -Os. No, for one because the person/s writing the programs may be different (and with different views on where to add attr hot) from the ones that need to compile it, using the -Os option. > I'd be interested in what others think. As you suggested, I agree with using a separate -f, like -foptimize-hot-for-speed to enable that behaviour (but maybe having a shorter name). brgds, H-P