[LLVMbugs] [Bug 12593] New: TLS for PowerPC not supported
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Apr 19 05:35:33 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12593
Bug #: 12593
Summary: TLS for PowerPC not supported
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: PowerPC
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ggreif at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8410
--> http://llvm.org/bugs/attachment.cgi?id=8410
C reproduction
Small testcase:
(attached)
------------------------------
$ cat tls-test.c
static __thread int sock = -1;
int main(void)
{
return sock;
}
------------------------------
With a PPC-configured Clang I get
$ clang tls-test.c
TLS not implemented for PPC
UNREACHABLE executed at PPCISelLowering.cpp:4562!
0 clang 0x0000000002438fc9
1 clang 0x0000000002438dbc
2 libpthread.so.0 0x000000375a80eb70
3 libc.so.6 0x0000003759c30265 gsignal + 53
4 libc.so.6 0x0000003759c31d10 abort + 272
5 clang 0x00000000024206f1
6 clang 0x0000000001b7ed10
llvm::PPCTargetLowering::LowerOperation(llvm::SDValue, llvm::SelectionDAG&)
const + 306
7 clang 0x0000000001cbd894
8 clang 0x0000000001cb74d2
9 clang 0x0000000001cdcbf2 llvm::SelectionDAG::Legalize() + 58
10 clang 0x0000000001c71d48
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 2772
11 clang 0x0000000001c70f16
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 258
12 clang 0x0000000001c73cba
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 2918
13 clang 0x0000000001c703f8
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 902
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list