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

           Summary: Optimizer moves a @__cxx_global_var_init into a
                    constant expression, causing as to fail
           Product: new-bugs
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


When opt is used on the .bc output produced by clang++ from the attached .ii
file, the assembler fails with the following error:

fatal error: error in backend: expected relocatable expression

If no optimization is applied, the bug does not happen.

This code is to be compiled as 64-bit. I'm told this bug is similar to
http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-October/035746.html .

The .ii file is attached.

-- 
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