https://llvm.org/bugs/show_bug.cgi?id=25839
Bug ID: 25839 Summary: __tls_get_addr gets called before saving return address Product: libraries Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Backend: PowerPC Assignee: unassignedb...@nondot.org Reporter: timshe...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 15457 --> https://llvm.org/bugs/attachment.cgi?id=15457&action=edit Minimized test case For a PIC TLS variable access in a function, prologue (mflr followed by std and stdu) gets scheduled after a __tls_get_addr call. __tls_get_addr messed up LR and no one saves/restores it. Should the fix be simply adding PPC::ADJCALLSTACKDOWN and PPC::ADJCALLSTACKUP around __tls_get_addr? What should the stack size be (say, 0)? Attached minimized test case that fails on trunk. Thanks! -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs