Messages in this thread | | | Date | Tue, 20 May 2008 07:54:18 -0700 | From | "H. Peter Anvin" <> | Subject | Re: [2.6 patch] asm-generic/int-ll64.h: always provide __{s,u}64 |
| |
Adrian Bunk wrote: > > $ cat test.c > #include <stdio.h> > > int main() > { > #ifdef __i486__ > printf("foobarbaz\n"); > #endif > > return 0; > }
*Groan* you're right. Blitering idiots... they only present __i386__ and whatever *exact* CPU you have -march= for, which of course is a *CHANGING SET* (just __i486__, __i586__ and __i686__ isn't enough... they seem to also have __core2__, __k8__ and $DEITY knows what else.)
The only sensible way to handle that would be to centralize that knowledge in a header file.
-hpa
| |