http://llvm.org/bugs/show_bug.cgi?id=4639

           Summary: section .tbss triggers assembler warning
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Given x.cc:

static __thread int i;
int* foo() { return &i; }

$ llvm-gcc -O2 x.cc -c -o x.o
/tmp/cc8Qh1Nc.s: Assembler messages:
/tmp/cc8Qh1Nc.s:16: Warning: setting incorrect section type for .tbss

The problem is the .section declaration:

        .section                .tbss,"awT",@progbits

which under GCC 4.2 reads:

        .section        .tbss,"awT",@nobits


-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to