__cpu__ defines

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема __cpu__ defines
Дата
Msg-id 200309121353.h8CDrAi11309@candle.pha.pa.us
обсуждение исходный текст
Ответы Re: __cpu__ defines  (Larry Rosenman <ler@lerctr.org>)
Re: __cpu__ defines  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: __cpu__ defines  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: massive quotes?
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: Another small bug (pg_autovacuum)