[LLVMbugs] [Bug 6894] New: Debugging information with STL sort causes assembler error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 22 09:45:49 CDT 2010


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

           Summary: Debugging information with STL sort causes assembler
                    error
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dlowe at bitmuse.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=4718)
 --> (http://llvm.org/bugs/attachment.cgi?id=4718)
Assembly output of clang++

Here's the test case:

$ cat >example_a.cc <<EOF
#include <vector>
#include <algorithm>
void example() { std::vector<int> v; std::sort(v.begin(), v.end()); }
EOF
$ clang++ -c example_a.cc
# No output
$ clang++ -c -g example_a.cc
/tmp/cc-QxPGI1.s: Assembler messages:
/tmp/cc-QxPGI1.s:12855: Error: invalid sections for operation on `.Ltmp265' and
`.Ltext_begin' setting `.Lset571'
/tmp/cc-QxPGI1.s:12855: Error: invalid sections for operation on `.Ltmp272' and
`.Ltext_begin' setting `.Lset572'
/tmp/cc-QxPGI1.s:12855: Error: invalid sections for operation on `.Ltmp274' and
`.Ltext_begin' setting `.Lset573'
/tmp/cc-QxPGI1.s:12855: Error: invalid sections for operation on `.Ltmp276' and
`.Ltext_begin' setting `.Lset574'
clang: error: assembler command failed with exit code 1 (use -v to see
invocation)

I've attached the assembly output.

-- 
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 LLVMbugs mailing list