[Mesa-dev] [PATCH v2] replace file specific compiler optimization withinline attibute

Matt Turner mattst88 at gmail.com
Wed Sep 24 18:35:24 PDT 2014


On Wed, Sep 24, 2014 at 6:25 AM, Marc Dietrich <marvin24 at gmx.de> wrote:
> Am Montag, 22. September 2014, 11:48:29 schrieb Matt Turner:
>> We need a configure check for support for __attribute__((target)). I'm
>> going to send a series that adds support for this (and does the check
>> for existing attribute uses, so once that goes in you can rebase this
>> patch on that).
>
> nice, but won't work with the workaround above. Pragma and attribute does the same
> so, we could check for the attribute and use the pragma instead.

I wonder if the best thing to do is to add target("sse4.1") in
addition to using -msse4.1. That way, we'll retain compatibility with
clang (and gcc-4.3, but who cares?) and we'll mark the function with
enough information for LTO to work.

Does that seem plausible?


More information about the mesa-dev mailing list