[PATCH] D32907: [ELF] - Fix warnings when LLD compiled using gcc 7.1.0
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 10 07:33:25 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL302666: [ELF] - Use LLVM_FALLTHROUGH in code. (authored by grimar).
Changed prior to commit:
https://reviews.llvm.org/D32907?vs=98437&id=98454#toc
Repository:
rL LLVM
https://reviews.llvm.org/D32907
Files:
lld/trunk/ELF/Target.cpp
Index: lld/trunk/ELF/Target.cpp
===================================================================
--- lld/trunk/ELF/Target.cpp
+++ lld/trunk/ELF/Target.cpp
@@ -1874,7 +1874,8 @@
// BLX (always unconditional) instruction to an ARM Target, select an
// unconditional BL.
write32le(Loc, 0xeb000000 | (read32le(Loc) & 0x00ffffff));
- // fall through as BL encoding is shared with B
+ // fall through as BL encoding is shared with B
+ LLVM_FALLTHROUGH;
case R_ARM_JUMP24:
case R_ARM_PC24:
case R_ARM_PLT32:
@@ -1908,7 +1909,8 @@
}
// Bit 12 is 0 for BLX, 1 for BL
write16le(Loc + 2, (read16le(Loc + 2) & ~0x1000) | (Val & 1) << 12);
- // Fall through as rest of encoding is the same as B.W
+ // Fall through as rest of encoding is the same as B.W
+ LLVM_FALLTHROUGH;
case R_ARM_THM_JUMP24:
// Encoding B T4, BL T1, BLX T2: Val = S:I1:I2:imm10:imm11:0
// FIXME: Use of I1 and I2 require v6T2ops
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32907.98454.patch
Type: text/x-patch
Size: 964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170510/572b05db/attachment.bin>
More information about the llvm-commits
mailing list