Re: -mregparm=3 (was Re: [PATCH] i386 do_machine_check() is redundant.
From: Valdis . Kletnieks
Date: Tue Sep 30 2003 - 09:39:22 EST
On Tue, 30 Sep 2003 00:55:13 EDT, Robert Love said:
> Hm, we may need to do something like:
>
> #define abs(n) __builtin_abs((n))
>
> because -ffreestanding implies -fno-builtin, which disables use of
> built-in functions that do not begin with __builtin.
Well, abs() is the only one I tripped over in my config. I'm sure there's others
lurking elsewhere in the kernel tree.
The bigger question is whether a patch to support -ffreestanding would be a
good idea - with proper use of the __builtin_* stuff it *should* work, and it will
hopefully cause better kernel code hygiene..
Attachment:
pgp00001.pgp
Description: PGP signature