[LLVMbugs] [Bug 4639] New: section .tbss triggers assembler warning

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jul 28 10:27:15 PDT 2009


           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: unassignedbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu

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", at progbits

which under GCC 4.2 reads:

        .section        .tbss,"awT", at 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.

More information about the llvm-bugs mailing list