2 msgDWARF Formats - GCC 4.1.1
19 msgEffects of newly introduced -mpcX 80387 precisi...
4 msglibcc_s.so and libc.so curcular dependency on F...
11 msgQuestions/Comments regarding my SoC application
1 msggcc-4.1-20070402 is now available
14 msgRFC: Enable __declspec for Linux/x86

x86-64 -mcx16, picky __sync_val_compare_and_swap?
\ tbp (2 Apr 2007)
. \ Richard Henderson (2 Apr 2007)
. . \ tbp (2 Apr 2007)
. . . \ Richard Henderson (3 Apr 2007)

5 msgVAX backend status
2 msggcc regression on Darwin
8 msgHow can I get VRP information for an RTX?
14 msghow to convince someone about migrating from gc...
2 msgBuild report for gcc 4.1.1 on Cygwin
1 msgIs it possible to do some GCC's stages more 'mo...
3 msgBuilding gcc4-4.3.0-20070331 fails on PPC Darwin7
1 msggcc-4.3-20070330 is now available
5 msg-Wswitch-enum and -Wswitch-default
6 msgPossible bug in preprocessor
5 msg[MinGW] Failure Building libjava
5 msgWriting a option pass
9 msgExtension for a throw-like C++ qualifier
Subject:x86-64 -mcx16, picky __sync_val_compare_and_swap?
Group:Gcc
From:tbp
Date:2 Apr 2007


While doing (or trying to) some cleanup thanks to -mcx16, i've been a
bit surprised that
<--< cut <--<
typedef int TItype __attribute__ ((mode (TI)));
TItype m_128;

void test(TItype x_128)
{
m_128 = __sync_val_compare_and_swap (&m_128, x_128, m_128);
}

#include <xmmintrin.h>
typedef __m128i foo_t;
//typedef TItype foo_t;
foo_t foo;

void test2(foo_t x_128)
{
foo = __sync_val_compare_and_swap (&foo, x_128, foo);
}

int main() { return 0; }
<--< cut <--<

# /usr/local/gcc-4.3-20070323/bin/gcc -O2 -mcx16 xchg16.c -o xchg16
xchg16.c: In function 'test2':
xchg16.c:16: error: incompatible type for argument 1 of
'__sync_val_compare_and_swap'

# /usr/local/gcc-4.3-20070323/bin/gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/usr/local/gcc-4.3-20070323
--enable-languages=c++ --enable-threads=posix --with-system-zlib
--enable-__cxa_atexit --disable-checking --disable-nls
--disable-multilib --enable-bootstrap --with-gcc --with-gnu-as
--with-gnu-ld
Thread model: posix
gcc version 4.3.0 20070323 (experimental)

Am i just wrong believing that ought to work?


© 2004-2008 readlist.com