Red Hat Bugzilla – Bug 103048
strange errors when including xmmintrin.h
Last modified: 2007-04-18 12:57:07 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630
Description of problem:
Gcc 3.2 is supposed to support Intel SSE2 intrinsics. But when I try to include
the xmmintrin.h, I get error messages saying that the sizes are incompatible.
NOTE : this is different from the errors you get when you forget to use the
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a simple program including xmmintrin.h
2. compile the program with gcc -msse2 my_prog.c
Actual Results: Many errors like the following are displayed.
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/xmmintrin.h: In function
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/xmmintrin.h:90: can't convert
between vector values of different size
Expected Results: The program should compile and no error should be displayed,
since the xmmintrin.h and the gcc binary are both from gcc 3.2.2 (I checked the
gcc version with gcc --version).
Note that the mmintrin.h is correct and works ok with the -msse2 flag set.
No, only gcc 3.3 and later are supposed to handle SSE2 intrinsics fully (gcc 3.2.x should