[Mesa-dev] [PATCH] clover: work around altivec build failure with GNU C++ and -std=c++

Francisco Jerez currojerez at riseup.net
Mon Aug 26 16:12:17 PDT 2013


Chí-Thanh Christopher Nguyễn <chithanh at gentoo.org> writes:

> Francisco Jerez schrieb:
>[...]
>> How about disabling AltiVec code generation by adding "-mno-altivec" to 
>> CXXFLAGS?  AFAICT what's going on is that the "-maltivec" option (which 
>> is implied by your "-mcpu=7450") enables a number of language
>> extensions as a side effect that collide with the C++ standard, which
>> is exacerbated by GCC's seemingly broken implementation.
>
> Then what is the purpose of the altivec code in cl_platform.h?
>
cl_platform.h is part of the standard CL headers provided by Khronos,
they're meant to be distributed along with mesa for OpenCL applications
to use, but the AltiVec code is not useful for the implementation
itself.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130826/41ec06f2/attachment.pgp>


More information about the mesa-dev mailing list