As part of my spinlock testing, I noticed that we test for __cpu__ when
using gcc, and __cpu when not using gcc.  However, I see that my i386
gcc 2.95 defines both (shown using src/tools/ccsym):

        __GNUC__=2
        __GNUC_MINOR__=95
        unix
        __i386__
        i386
        __bsdi__
        bsdi
        __ELF__
        __GAS__=2
        __GAS_MINOR__=10
        __unix__
        __i386__
        __i386__
        __bsdi__
        __bsdi__
        __ELF__
        __GAS__=2
        __GAS_MINOR__=10
        __unix
        __i386
        __bsdi
        system=unix
        system=bsd
        cpu=i386
        machine=i386
        cpu=i386
        machine=i386
        i386
        __i386
        __i386__

So, I wonder if we should be testing _just_ for __cpu, perhaps starting
in 7.5.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  [EMAIL PROTECTED]               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to