|
Description
|
** misplaced entry deleted, see next one
Posted Date : 2007-06-08 05:47:12.0
The problem occurs on both Solaris x64 and Linux, when using any optimisation,
including -xO0, with -g. The following is derived from openmpi-1.2.2:
$ cat inlineasm.c
typedef int int32_t;
typedef unsigned int uint32_t;
static int opal_atomic_cmpset_32( volatile int32_t *addr,
int32_t oldval, int32_t newval)
{
unsigned char ret;
__asm__ __volatile__ (
"lock; " "cmpxchgl %1,%2 \n\t"
"sete %0 \n\t"
: "=qm" (ret)
: "q"(newval), "m"(*((volatile long*)addr)), "a"(oldval)
: "memory");
return (int)ret;
}
$ suncc -xO0 -m64 -g -c inlineasm.c
"inlineasm.c", line 13: warning: parameter in inline asm statement unused: %3
"inlineasm.c", [opal_atomic_cmpset_32]:ube: error: SIGNAL: Segmentation Fault
cat
Posted Date : 2007-06-08 04:15:51.0
|