Bug 20932

Summary: pixman 0.14.0 fails compiling mmx intrsincs with sunpro compiler
Product: pixman Reporter: Jens Rehsack <rehsack>
Component: pixmanAssignee: Alan Coopersmith <alan.coopersmith>
Status: RESOLVED FIXED QA Contact: Søren Sandmann Pedersen <soren.sandmann>
Severity: normal    
Priority: medium    
Version: other   
Hardware: x86-64 (AMD64)   
OS: Solaris   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch to enable pixman's MMX intrsincs with sunpro.

Description Jens Rehsack 2009-03-29 08:25:27 UTC
Created attachment 24352 [details] [review]
Patch to enable pixman's MMX intrsincs with sunpro.

When compiling pixman with the sunpro compiler, a lot of definitions fail and conversion functions are unimplemented. It seems to be for everything except gcc and MSC (ICC, Watcom, XLC, ...), so a more generic fix is required IMHO.

I further strongly recommend to use ANSI C99 data types where possible (uint64_t instead of unsigned long long).

Further: only gcc supports -mmmx and -msse2 etc. - so trying those arguments during configuration phase and without linking and accept them will result in later compile errors. x86_64/amd64 architectures shall enable those instruction sets per default.
Comment 1 Alan Coopersmith 2009-04-03 08:37:14 UTC
I've been working on this too - see:
http://lists.x.org/archives/xorg-devel/2009-April/
Comment 2 Alan Coopersmith 2009-04-04 10:23:57 UTC
Patch pushed to git master now:
http://cgit.freedesktop.org/pixman/commit/?id=fd7449c4855e77d31770f9042ba43e186c541ce5

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.