Re: __cpu__ defines

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: __cpu__ defines
Date: 2003-09-12 16:29:35
Message-ID: 200309121629.h8CGTZ014642@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-09-12 16:46:04 Re: Another small bug (pg_autovacuum)
Previous Message Matthew T. O'Connor 2003-09-12 16:26:52 Re: Another small bug (pg_autovacuum)

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-09-12 16:32:43 Re: tsearch pfree error
Previous Message Peter Eisentraut 2003-09-12 16:26:35 Re: __cpu__ defines