This is GCC Bugzilla
This is GCC Bugzilla Version 2.20+
View Bug Activity | Format For Printing | Clone This Bug
C:\MinGW\bin>g++.exe -v Es werden eingebaute Spezifikationen verwendet. Ziel: mingw32 Konfiguriert mit: ../gcc-4.4.0/configure --enable-languages=c,ada,c++,fortran,java,objc,obj-c++ --disable-sjlj-exception s --enable-shared --enable-libgcj --enable-libgomp --with-dwarf2 --disable-win32-registry --enable-libstdcxx-debug --ena ble-version-specific-runtime-libs --prefix=/mingw --with-gmp=/mingw/src/gmp/root --with-mpfr=/mingw/src/mpfr/root --buil d=mingw32 Thread-Modell: win32 gcc-Version 4.4.0 (GCC) The following snippets crash the running application, I guess due to unaligned writes, but __alignof__ gives me 16 for all three versions, so I really don't know. // 0) anonymous namespace: not happy #include <xmmintrin.h> namespace { __m128 a; } int main () {a = _mm_set1_ps(.0f); } // 1) external: happy #include <xmmintrin.h> __m128 a; int main () { a = _mm_set1_ps(.0f); } // 2) internal: not happy #include <xmmintrin.h> static __m128 a; int main () { a = _mm_set1_ps(.0f); }
I guess win32 doesn't know about aligned commons? Try updating to 4.4.2.
PR target/37216 probably? If that is so, gcc-4.4.2 won't help because the fix hasn't been backported to 4.4, at least not yet.
(In reply to comment #1) > I guess win32 doesn't know about aligned commons? Try updating to 4.4.2. You can also use -fno-common as a workaround.
*** This bug has been marked as a duplicate of 37216 ***
(In reply to comment #3) > (In reply to comment #1) > > I guess win32 doesn't know about aligned commons? Try updating to 4.4.2. > > You can also use -fno-common as a workaround. > Unfortunately, this does not work for at least testcase 0), __attribute__((nocommon)) does not to work either. I will try out 4.5. asap (I am in relocation mode, i.e. only have access to my work-pc at the moment, so updating is a bit clumsy here).
(In reply to comment #5) > (In reply to comment #3) > > (In reply to comment #1) > > > I guess win32 doesn't know about aligned commons? Try updating to 4.4.2. > > > > You can also use -fno-common as a workaround. > > > > Unfortunately, this does not work for at least testcase 0), > __attribute__((nocommon)) does not to work either. > > I will try out 4.5. asap (I am in relocation mode, i.e. only have access to my > work-pc at the moment, so updating is a bit clumsy here). > Self-reply: If all else fails, use _mm_alloc(size,align).