[PATCH] D42722: [MC] Fix assembler infinite loop on EH table using LEB padding

Ryan Prichard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 30 16:13:16 PST 2018


rprichard created this revision.
Herald added subscribers: llvm-commits, emaste.

Fix the infinite loop reported in PR35809. It can occur with GCC-style
EH table assembly, where the compiler relies on the assembler to
calculate the offsets in the EH table.

Also see https://sourceware.org/bugzilla/show_bug.cgi?id=4029 for the
equivalent issue in the GNU assembler.


Repository:
  rL LLVM

https://reviews.llvm.org/D42722

Files:
  include/llvm/MC/MCFragment.h
  lib/MC/MCAssembler.cpp
  test/MC/ELF/uleb-ehtable.s
  test/MC/ELF/uleb-optimal.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42722.132080.patch
Type: text/x-patch
Size: 5359 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180131/96cbf41c/attachment.bin>


More information about the llvm-commits mailing list