Re: postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2
От | Bruce Momjian |
---|---|
Тема | Re: postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2 |
Дата | |
Msg-id | 200503090430.j294Usn10666@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2 gives "error: asm statements not supported" (Vikram Kalsi <vikramkalsi@gmail.com>) |
Список | pgsql-hackers |
Vikram Kalsi wrote: > The _InterlockedExchange() function is defined in ia64intrin.h header file > > int _InterlockedExchange(volatile int *Target, long value) > Do an exchange operation atomically. Maps to the xchg4 instruction. > > More information is available at > http://www.intel.com/software/products/compilers/clin/docs/ug_cpp/lin1072.htm > > Also, some other points to note, _ICC wasn't defined on my > installation when I was using icc by setting env var CC=icc. So, when > I tried to put a "#if defined" for using asm() for gcc and > _InterlockedExchange(), it didn't work. So, after this change gcc > compilation fails. Oh, I see _InterlockedExchange is inlined assembler. Let me work on a patch and post it to you. -- 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 по дате отправления: