[LLVMbugs] [Bug 16831] New: Section Selection for COFF is computed wrong for global read-only data
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Aug 7 17:11:00 PDT 2013
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: unassignedbugs at nondot.org
Reporter: david.majnemer at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130808/f52b31f8/attachment.html>
More information about the llvm-bugs
mailing list