LWN: Comments on "LLVM 8.0.0 released" https://lwn.net/Articles/783541/ This is a special feed containing comments posted to the individual LWN article titled "LLVM 8.0.0 released". en-us Thu, 23 Oct 2025 10:40:30 +0000 Thu, 23 Oct 2025 10:40:30 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net LLVM 8.0.0 released https://lwn.net/Articles/787055/ https://lwn.net/Articles/787055/ AndreyK2013 <a rel="nofollow" href="https://habr.com/ru/company/pvs-studio/blog/450002/">Finding Bugs in LLVM 8 with PVS-Studio</a> :) Mon, 29 Apr 2019 18:48:12 +0000 LLVM 8.0.0 released https://lwn.net/Articles/783625/ https://lwn.net/Articles/783625/ ncultra <div class="FormattedComment"> It's a C project, using GCC function and variable attributes, X86_64 built-ins, intel intrinsics, and a lot of extended asm. Nested functions is a feature that would help with some of the re-factoring of messy code that the project needs. In summary, none of these dependencies are without equivalents in clang, but the porting effort is not insignificant. I would like to do it myself and can hopefully justify it using the additional code analysis and security features.<br> </div> Thu, 21 Mar 2019 12:42:13 +0000 LLVM 8.0.0 released https://lwn.net/Articles/783611/ https://lwn.net/Articles/783611/ wahern <div class="FormattedComment"> Personally I prefer GCC. But I'm curious: which GCC feature(s) are you depending on? Unless it's nested functions, I'd guess you're either using GCC plugins or doing something fancy and cutting-edge with C++. It must be something esoteric (or C++, same difference) if clang lacks functional parity.<br> <p> </div> Thu, 21 Mar 2019 04:41:14 +0000 LLVM 8.0.0 released https://lwn.net/Articles/783598/ https://lwn.net/Articles/783598/ nathanchance <div class="FormattedComment"> We can build arm{32,64} and ppc{32,64le} defconfig without any out of tree patches as of 5.1-rc1 and LLVM 8.0.0.<br> <p> arm64 allyesconfig needs this series: <a href="https://lore.kernel.org/lkml/20190318025411.98014-1-trong@android.com/">https://lore.kernel.org/lkml/20190318025411.98014-1-trong...</a><br> <p> asm goto is still a WIP in clang so a set of reverts is needed for x86 (otherwise, defconfig and allyesconfig build without any issues).<br> <p> <a href="https://travis-ci.com/ClangBuiltLinux/continuous-integration">https://travis-ci.com/ClangBuiltLinux/continuous-integration</a><br> </div> Wed, 20 Mar 2019 20:29:23 +0000 LLVM 8.0.0 released https://lwn.net/Articles/783594/ https://lwn.net/Articles/783594/ rahulsundaram <div class="FormattedComment"> Getting closer but not yet<br> <p> <a href="https://github.com/ClangBuiltLinux/linux/issues">https://github.com/ClangBuiltLinux/linux/issues</a><br> </div> Wed, 20 Mar 2019 19:31:21 +0000 LLVM 8.0.0 released https://lwn.net/Articles/783583/ https://lwn.net/Articles/783583/ mchehab <div class="FormattedComment"> Anyone knows if it already builds the Kernel out of the box? Last time I checked, some OOT patches were required (both at LLVM and at Kernel sides)?<br> </div> Wed, 20 Mar 2019 16:36:00 +0000 LLVM 8.0.0 released https://lwn.net/Articles/783579/ https://lwn.net/Articles/783579/ ncultra <div class="FormattedComment"> thank you, I do wish I could use clang and this feature in particular on my current project, which is not yet ready to branch away from gcc.<br> </div> Wed, 20 Mar 2019 16:06:49 +0000 LLVM 8.0.0 released https://lwn.net/Articles/783573/ https://lwn.net/Articles/783573/ nybble41 <div class="FormattedComment"> I think they meant that branching over the declaration of a variable and then using the uninitialized value should be a hard-error, not that Duff's device should be a hard-error in general. Keep in mind that the situations this change was meant to address already involve undefined behavior. Duff's device should be fine as long as you don't put variable declarations inside the switch statement.<br> </div> Wed, 20 Mar 2019 15:15:11 +0000 LLVM 8.0.0 released https://lwn.net/Articles/783567/ https://lwn.net/Articles/783567/ ncultra <div class="FormattedComment"> "Variables declared in unreachable code and used later aren’t initialized. This affects goto statements, Duff’s device, and other objectionable uses of switch statements. This should instead be a hard-error in any serious codebase."<br> <p> Duff's device a hard-error? Heresy!<br> </div> Wed, 20 Mar 2019 14:51:11 +0000