lkml.org 
[lkml]   [2010]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: fyi: gcc33-hammer crashes when compiling kvm emulate.c
  On 10/26/2010 10:37 PM, H. Peter Anvin wrote:
> On 10/26/2010 01:27 PM, Andi Kleen wrote:
> >> That is an issue too, as 3.x does a lot fewer optimizations than 4.x.
> >
> > Well to be fair the default -Os build disables most of the fancy stuff
> > (and the resulting code is often terrible)
> >
> > I guess it doesn't matter too much, at least not with the
> > CONFIG_CC_OPTIMIZE_SIZE default.
> >
>
> Yes, it would be nice to have a setting which is "optimize but don't
> bloat excessively."
>

Would be good to have __fastpath and __slowpath function attributes.

__fastpath would always be optimized for speed, __slowpath always for
size, and everything else would use the default (determined by
CONFIG_CC_OPTIMIZE_FOR_SIZE).

Looks like gcc has support for this, with __attribute__((hot)),
__attribute__((cold)), and __attribute__((optimize)).

--
error compiling committee.c: too many arguments to function



\
 
 \ /
  Last update: 2010-10-27 12:53    [W:0.208 / U:0.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site