__cpu__ defines - Mailing list pgsql-hackers

From Bruce Momjian
Subject __cpu__ defines
Date
Msg-id 200309121353.h8CDrAi11309@candle.pha.pa.us
Whole thread Raw
Responses Re: __cpu__ defines
Re: __cpu__ defines
Re: __cpu__ defines
List pgsql-hackers
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__=95unix__i386__i386__bsdi__bsdi__ELF____GAS__=2__GAS_MINOR__=10__unix____i386____i386____bsdi____bsdi____ELF____GAS__=2__GAS_MINOR__=10__unix__i386__bsdisystem=unixsystem=bsdcpu=i386machine=i386cpu=i386machine=i386i386__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 pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: massive quotes?
Next
From: Jan Wieck
Date:
Subject: Re: Another small bug (pg_autovacuum)