Re: [PATCH] Use __attribute__((malloc)) for gcc 3.2

From: Pavel Machek (pavel@suse.cz)
Date: Wed Oct 02 2002 - 08:46:23 EST


Hi!

> > > may be useful to prevent some awful code generation for those misguided
> > > folks who use -O3 (gcc often screws up the register allocation of a
> > > function completely when bigger functions are inlined).
> >
> > Could you also add an always inline? It would be useful for functions
> > like context_switch, where we require it to be inlined (otherwise it
> > falls outside scheduling_functions_{start,end}_here and wchan handling
> > fails).
>
> Ok. gcc supports it with __attribute__((always_inline))
>
> Suggestions for a name? alwaysinline would be a bit lengthy.

do_inline?
                                                                Pavel

-- 
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:36 EST