Re: postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2 - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2
Date
Msg-id 200503090430.j294Usn10666@candle.pha.pa.us
Whole thread Raw
In response to Re: postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2 gives "error: asm statements not supported"  (Vikram Kalsi <vikramkalsi@gmail.com>)
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2
Next
From: "Qingqing Zhou"
Date:
Subject: two questions related to tablespace in PG8.0.1