[PATCH] D32907: [ELF] - Fix warnings when LLD compiled using gcc 7.1.0

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 5 11:28:16 PDT 2017


davide added a comment.

In https://reviews.llvm.org/D32907#747429, @ruiu wrote:

> LLVM_FALLTHROUGH is expanded to nothing if a compiler doesn't support [[fallthrough]] or [[clang::fallthrough]]. So it should compile. But I'm not sure if that fixes the issue with a gcc version that doesn't support [[fallthrough]].


GCC should have `[[gnu::fallthrough]]` and had that for a while, IIRC.


https://reviews.llvm.org/D32907





More information about the llvm-commits mailing list