[Mesa-dev] [PATCH] mapi: fix LTO compilation

0xe2.0x9a.0x9b at gmail.com
Tue Jun 7 07:37:52 UTC 2016


On Mon, Jun 6, 2016 at 1:12 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 2 June 2016 at 18:41, Jan Ziak (⚛) <0xe2.0x9a.0x9b at gmail.com> wrote:
>> LTO compilation can sometimes fail with GCC 4.9 and GCC 5.3 because
>> src/mapi uses unusual mixing of C code and assembly code. The issue
>> may be present in case of GCC 6.1 as well.
>>
>> This is a Mesa bug rather than a compiler bug
> This is a bold statement without any justification. I'm not saying
> that the code is correct - just that saying "it's wrong" without
> saying "why or how" serves little benefit.
>
>> (although in an ideal
>> world the compilation with -flto should fail if and only if normal
>> compilation fails).

See example 2 in section 6.9.2 of the C standard
(http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf).


More information about the mesa-dev mailing list