Re: [HACKERS] postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2

2005-03-08 Thread Bruce Momjian
Does the Intel compiler not support inline assembler? _InterlockedExchange() is a function call and we prefer to have asm() code if we can get it. --- Vikram Kalsi wrote: Just an update, the __INTEL_COMPILER is true on

Re: [HACKERS] postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2

2005-03-08 Thread Bruce Momjian
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

Re: [HACKERS] postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2 gives error: asm statements not supported

2005-03-05 Thread Vikram Kalsi
Just an update, the __INTEL_COMPILER is true on Itanium if icc is being used. So, the following worked for me- ---BEGIN OLD s_lock.h- #if defined(__ia64__) || defined(__ia64) /* __ia64 used by ICC compiler? */ #define

Re: [HACKERS] postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2 gives error: asm statements not supported

2005-03-03 Thread Peter Eisentraut
Tom Lane wrote: #if defined(__GNUC__) || defined(__ICC) Can anyone say a reason why the above #if is not wrong ... ie, are there any platforms where icc does handle gcc asm syntax, and if so exactly which ones are they? I believe I added that a few releases ago. The platform is IA32.

Re: [HACKERS] postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2 gives error: asm statements not supported

2005-03-03 Thread Vikram Kalsi
Tom, Peter, I have been able to compile and sucessfully run pgSQL after replacing the asm statement in postgresql-8.0.1/src/include/storage/s_lock.h with an equivalent intrinsic for the Itanium platform- --BEGIN OLD

[HACKERS] postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2 gives error: asm statements not supported

2005-03-02 Thread Vikram Kalsi
Hi, I am trying to compile postgresql-8.0.1 with icc-8.1.028 on a Linux RHEL AS3 SMP Itanium2 machine and I get an error as follows- The complete config.log and make.log is online at http://www.cse.psu.edu/~kalsi/files/

Re: [HACKERS] postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2 gives error: asm statements not supported

2005-03-02 Thread Tom Lane
Vikram Kalsi [EMAIL PROTECTED] writes: Will icc be supported in any future release of pgsql? Only if someone steps forward with patches. Do you want to do it? My immediate reaction is that if icc doesn't actually cope with gcc asm syntax then it has no business being treated as equivalent to