From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | __cpu__ defines |
Date: | 2003-09-12 13:53:10 |
Message-ID: | 200309121353.h8CDrAi11309@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
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
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
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-09-12 13:56:40 | Re: [PATCHES] Reorganization of spinlock defines |
Previous Message | Tom Lane | 2003-09-12 13:51:39 | Re: massive quotes? |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-09-12 13:56:40 | Re: [PATCHES] Reorganization of spinlock defines |
Previous Message | Tom Lane | 2003-09-12 13:49:31 | Re: [PATCHES] Reorganization of spinlock defines |