[llvm-bugs] [Bug 49126] New: armv4t TLS crash

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 10 08:15:59 PST 2021


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

            Bug ID: 49126
           Summary: armv4t TLS crash
           Product: new-bugs
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: jfc at mit.edu
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Created attachment 24509
  --> https://bugs.llvm.org/attachment.cgi?id=24509&action=edit
program to trigger compiler crash

Compiling the attached program with

$ clang -cc1 -triple armv4t-apple-macosx10.9.0 -S tls.c

causes a backend crash.  Maybe armv4t does not support TLS?  If that's the
problem clang should report a better error.  I hit this problem because I added
a runtime that uses TLS and the build infrastructure decided it needed to be
built for every possible Apple ARM system.  (I'm building on an M1 Mac.)

fatal error: error in backend: Cannot select: t13: ch,glue = ARMISD::CALL t11,
t10, Register:i32 $r0, RegisterMask:Untyped, t11:1
  t10: i32,ch = load<(non-temporal dereferenceable invariant load 4 from got)>
t0, t9, undef:i32
    t9: i32 = ARMISD::WrapperPIC TargetGlobalTLSAddress:i32<%struct.S** @tls> 0
[TF=128]
      t8: i32 = TargetGlobalTLSAddress<%struct.S** @tls> 0 [TF=128]
    t3: i32 = undef
  t5: i32 = Register $r0
  t12: Untyped = RegisterMask
  t11: ch,glue = CopyToReg t10:1, Register:i32 $r0, t9
    t5: i32 = Register $r0
    t9: i32 = ARMISD::WrapperPIC TargetGlobalTLSAddress:i32<%struct.S** @tls> 0
[TF=128]
      t8: i32 = TargetGlobalTLSAddress<%struct.S** @tls> 0 [TF=128]
In function: get

-- 
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/20210210/c4716551/attachment.html>


More information about the llvm-bugs mailing list