[LLVMbugs] [Bug 18885] New: -fms-extensions should implement MSVC's section pragmas (const_seg, data_seg, etc)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 18 10:17:46 PST 2014


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

            Bug ID: 18885
           Summary: -fms-extensions should implement MSVC's section
                    pragmas (const_seg, data_seg, etc)
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rnk at google.com
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 13707
    Classification: Unclassified

The relevant MSDN docs:
http://msdn.microsoft.com/en-us/library/1dc22465.aspx

The grammar:
#pragma const_seg( [ [ { push | pop}, ] [ identifier, ] ] [ "segment-name" [,
"segment-class" ] )

This is important because it's used to register initializers and finalizers
similar to __attribute__((section(".init_array"))) in ELF.

David says that we'll have to extend LLVM IR to encode the section properties
such as readonly, executable, initialized, etc.

-- 
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/20140218/3da4f2c7/attachment.html>


More information about the llvm-bugs mailing list