Re: __cpu__ defines - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: __cpu__ defines
Date
Msg-id 200309121629.h8CGTZ014642@candle.pha.pa.us
Whole thread Raw
In response to Re: __cpu__ defines  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut wrote:
> Bruce Momjian writes:
> 
> > 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):
> 
> gcc only documents the __foo__ version, so there is a small reason to lean
> in that direction if you want to make it uniform.

Oh, that helps, so my logic of testing for only __foo__ on gcc, and both
when the compiler isn't gcc or isn't known is correct.

--  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: "Matthew T. O'Connor"
Date:
Subject: Re: Another small bug (pg_autovacuum)
Next
From: Tom Lane
Date:
Subject: Re: Another small bug (pg_autovacuum)