Bug 55451

Summary: pixman-mmx.c fails to compile when iwmmxt2 is enabled
Product: pixman Reporter: Daniel Drake <dan>
Component: pixmanAssignee: Søren Sandmann Pedersen <soren.sandmann>
Status: RESOLVED FIXED QA Contact: Søren Sandmann Pedersen <soren.sandmann>
Severity: normal    
Priority: medium CC: mattst88
Version: 0.26.x   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Full build log
patch
patch

Description Daniel Drake 2012-09-29 16:18:02 UTC
Created attachment 67853 [details]
Full build log

Building pixman-0.26.2 fails on Fedora 18/ARMv7 with gcc-4.8:


  CC     libpixman_iwmmxt_la-pixman-mmx.lo
pixman-mmx.c:57:1: error: redefinition of '_mm_empty'
 _mm_empty (void)
 ^
In file included from pixman-mmx.c:41:0:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.8.0/include/mmintrin.h:47:1: note: previous definition of '_mm_empty' was here
 _mm_empty (void)
 ^
make[3]: *** [libpixman_iwmmxt_la-pixman-mmx.lo] Error 1
Comment 1 Søren Sandmann Pedersen 2012-09-30 02:11:34 UTC
Thanks for the bug report. Looks like GCC 4.8 has added an _mm_empty() that is conflicting with pixman's own definition.
Comment 2 Matt Turner 2012-09-30 03:10:46 UTC
Created attachment 67863 [details] [review]
patch
Comment 3 Matt Turner 2012-09-30 03:11:59 UTC
Created attachment 67864 [details] [review]
patch
Comment 4 Søren Sandmann Pedersen 2012-09-30 17:33:43 UTC
Looks good to me.
Comment 5 Matt Turner 2012-09-30 19:07:15 UTC
Patch committed.

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.