[Ksummit-discuss] [CORE TOPIC] [TECH TOPIC] Support (or move towards to) LLVM

David Woodhouse dwmw2 at infradead.org
Tue Jul 26 11:22:19 UTC 2016


On Thu, 2016-07-21 at 20:38 +0200, Jiri Kosina wrote:
> On Thu, 21 Jul 2016, David Woodhouse wrote:
> 
> > Apart from resolutely not wanting to implement variable length arrays on 
> > the stack, the LLVM folks actually seem quite keen to make things work. 
> > I'm interested in the problem you report above.. and note the absence of 
> > a bug number. Can you provide it?
> 
> I am currently on vacation and on super-lousy internet connection, so 
> looking through my archives is a bit complicated ... I *think* it started 
> in "[PATCH] usbhid: Fix lockdep unannotated irqs-off warning" thread on 
> lkml.
> 
> In case you're not able to find it from there, I'll do my homework 
> mid-next week when I am back properly online.

OK, thanks. So it looks like that's acknowledged to have been a bug,
there's a patch to fix it at https://reviews.llvm.org/D6629 which may
even have been committed already.

The main sticking point for LLVM seems to be the variable length arrays
on the stack (VLAIS), which is a GCC'ism that the LLVM/clang folks
*really* don't want to support, and the fact that
__builtin_constant_p() is basically always false under LLVM because it
doesn't look very hard.

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse at intel.com                              Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5760 bytes
Desc: not available
URL: <http://lists.linuxfoundation.org/pipermail/ksummit-discuss/attachments/20160726/247c0047/attachment-0001.bin>


More information about the Ksummit-discuss mailing list