any consensus on "register" storage class?
Rich Felker
dalias at aerifal.cx
Wed May 17 20:25:18 UTC 2006
On Wed, May 17, 2006 at 03:43:20PM -0400, Rob Landley wrote:
> On Tuesday 16 May 2006 12:20 pm, walter harms wrote:
> > hi,
> > today we did some test with gcc 4 on i586 and found that register is a
> > placebo, sometimes even slower than int (gcc strangeness).
> >
> > i would suggest:
> > #define register
>
> Please don't leave trash in the code. If you're going to remove something,
> remove it.
Yes, the whole idea is that "register" does absolutely nothing (except
make taking the address of the variable an error). Removing it is not
intended as a functional change but rather as a cosmetic change, so
"#define register" defeats the purpose..
Rich
More information about the busybox
mailing list