Subject: Weird ifdefs
To: None <>
From: Valeriy E. Ushakov <>
List: tech-x11
Date: 08/23/2002 20:58:40
I'm trying to compile XFree86 (from xsrc) on sparc.  Ifdefs in xfree
are really "special", but this one strikes me as most nonsential:



#if !defined(__mips__) && !defined(__arm32__) && !defined(__alpha__) && \
    !defined(__powerpc__) && !defined(__arm__) && !defined(__sparc__)
#ifdef __GNUC__
	__asm__ __volatile__("cli");
#endif /* __GNUC__ */
#endif /* __mips__ */


[where, the case for __sparc__ was added by me.]

Now does any one has any idea why an i386 asm statement is protected
with such a (literally) perverse conditional?  Isn't defined(__i386__)
test enough?  Unfortunately I cannot easily test compile on i386 at
the moment to verify that but see no reasons why it wouldn't.

SY, Uwe
--                         |       Zu Grunde kommen            |       Ist zu Grunde gehen