clang vector_size attribute compatibilty with gcc on x86

Using the linux calling convention.

clang -v c.c
clang version 3.1 (branches/release_31)
Target: i386-pc-linux-gnu
Thread model: posix
"/usr/local/bin/clang" -cc1 -triple i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name c.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.20.51 -momit-leaf-frame-pointer -v -resource-dir /usr/local/bin/../lib/clang/3.1 -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/local/include -internal-isystem /usr/local/bin/../lib/clang/3.1/include -internal-isystem /usr/lib/gcc/i686-linux-gnu/4.5/../../../gcc/i686-linux-gnu/4.5/include -internal-isystem /usr/lib/gcc/i686-linux-gnu/4.5/../../../gcc/i686-linux-gnu/4.5/include-fixed -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir /home/camel/test/v2 -ferror-limit 19 -fmessage-length 205 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/c-MO7OKC.o -x c c.c
clang -cc1 version 3.1 based upon LLVM 3.1 default target i386-pc-linux-gnu

Sender : David Chisnall<David.Chisnall@cl.cam.ac.uk>
Title : Re: [cfe-dev] clang vector_size attribute compatibilty with gcc on x86

What platform are you using? Clang has (at least) two calling conventions for passing vectors on x86 as, for example, Darwin and Linux differ in how they do this.

David