[cairo] [PATCH] pixman 0.10.0 & SSE2 compile failure

Soeren Sandmann sandmann at daimi.au.dk
Wed Apr 9 19:18:45 PDT 2008

"Dave Yeo" <daveryeo at telus.net> writes:

> Seems -msse2 defines __SSE__ and the includes (in
> usr/lib/gcc-lib/i386-pc-os2-emx/3.3.5/include of all the weird places)
> don't have a check for SSE2, just SSE. Anyways the test program in
> configure compiles and actually runs here so configure enables SSE2. Of
> course our GCC is to old to compile SSE2 and here my CPU does not
> support SSE or SSE2.

Actually, I think what's going on is that the test compiles correctly
due to it using MMX_FLAGS (which are empty) rather than SSE_FLAGS.

It probably wouldn't run correctly, but the configure script doesn't
try that.

> Anyways the simplest fix I can see is to check for the GCC version as
> in this patch, only thing is I'm not sure about which GCC version
> started supporting SSE2.
> The patch should also slightly speed up configure on systems like OS/2
> where there is quite a bit of overhead in starting a new process.

I have pushed out something similar.


More information about the cairo mailing list