Re: __cpu__ defines
От | Bruce Momjian |
---|---|
Тема | Re: __cpu__ defines |
Дата | |
Msg-id | 200309121629.h8CGTZ014642@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: __cpu__ defines (Peter Eisentraut <peter_e@gmx.net>) |
Список | 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 по дате отправления: