lkml.org 
[lkml]   [2008]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2008-05-20 17:03    [W:0.054 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site