[llvm-bugs] [Bug 48088] New: [AArch64] UnwindInfo cannot be emitted if inline asm with align or fill are used

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 5 05:33:05 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48088

            Bug ID: 48088
           Summary: [AArch64] UnwindInfo cannot be emitted if inline asm
                    with align or fill are used
           Product: libraries
           Version: 11.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: rixript at gmail.com
                CC: llvm-bugs at lists.llvm.org

For more info see FIXME in ARM64EmitUnwindInfo (llvm/lib/MC/MCWin64EH.cpp)
https://github.com/llvm/llvm-project/blob/f69e090/llvm/lib/MC/MCWin64EH.cpp#L918-L943

Reproducible example:

    void test() { __asm__(".balign 1"); 

Compiling with:

    clang.exe --target=x86_64-pc-windows -c test.cpp

Gives no error, however, compiling with

    clang.exe --target=aarch64-pc-windows -c test.cpp

Crashes:

fatal error: error in backend: Failed to evaluate function length in SEH unwind
info
Stack dump:
0.      Program arguments: clang.exe --target=aarch64-pc-windows -c test.cpp
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'test.cpp'.
4.      Running pass 'AArch64 Assembly Printer' on function '@"?test@@YAXXZ"'


Related bug report: https://bugs.llvm.org/show_bug.cgi?id=41581

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201105/e5d071f1/attachment.html>


More information about the llvm-bugs mailing list