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

Dave Yeo daveryeo at telus.net
Tue Apr 8 16:41:51 PDT 2008


Hi, sorry for not testing this sooner. Attempting to compile pixman
0.10.0 on OS/2 with GCC 3.3.5 and a 800 Mhz Duron I see this output
from configure
...
checking whether to use MMX intrinsics... no
checking whether to use SSE intrinsics... no
checking whether to use SSE2 intrinsics... yes
...
and then the compile fails here,

gcc.exe -DHAVE_CONFIG_H -I. -I.. -mmmx -msse2 -Winline --param
inline-unit-growth=10000 --param large-function-growth=10000 -g -O2
-Wall -MT libpixman_sse_la-pixman-sse.lo -MD -MP -MF
.deps/libpixman_sse_la-pixman-sse.Tpo -c pixman-sse.c  -DDLL_EXPORT
-DPIC -o .libs/libpixman_sse_la-pixman-sse.o
cc1.exe: error: invalid parameter `inline-unit-growth'
cc1.exe: error: invalid parameter `large-function-growth'
make[2]: *** [libpixman_sse_la-pixman-sse.lo] Error 1

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.
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.
Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 378 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20080408/29edf4c2/attachment.obj 


More information about the cairo mailing list