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

            Bug ID: 16831
           Summary: Section Selection for COFF is computed wrong for
                    global read-only data
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Running llc on the following:

target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f80:128:128-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S32"
target triple = "i386-pc-win32"

%struct.foo = type { i32, i32 }

@"\01?thingy@@3Ufoo@@B" = constant %struct.foo zeroinitializer, align 4

gets us:

        .data
        .globl  "?thingy@@3Ufoo@@B"     # @"\01?thingy@@3Ufoo@@B"
        .align  4
"?thingy@@3Ufoo@@B":
        .zero   8

However, we really should stick it in a read-only data section for targets that
support it.

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