[PATCH] D14511: Emit discriminator for inlined callsites.

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 9 13:54:11 PST 2015


On Mon, Nov 9, 2015 at 1:52 PM, David Blaikie <dblaikie at gmail.com> wrote:

>
>
> On Mon, Nov 9, 2015 at 1:50 PM, Dehao Chen via llvm-commits <
> llvm-commits at lists.llvm.org> wrote:
>
>> danielcdh added a comment.
>>
>> It gives a warning:
>> a.cc:2:34: warning: GCC does not allow 'always_inline' attribute in this
>> position on a function definition [-Wgcc-compat]
>>
>
> Fair, though not terribly important for the example that is being built to
> LLVM IR & thus using clang, not GCC.
>

I can't seem to reproduce that diagnostic from Clang at all using the
example I gave.

Ohd, I see, if you leave the attribute at the end you get that warning - if
you put it where I suggested clang does not warn about it:

static __attribute__((always_inline)) void f() { }


>
>
>>
>>
>> http://reviews.llvm.org/D14511
>>
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151109/bc22e669/attachment.html>


More information about the llvm-commits mailing list