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: unassignedb...@nondot.org
          Reporter: rixr...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to