-fms-extensions should implement MSVC's section pragmas (const_seg, data_seg, etc) #19259
Labels
bugzilla
Issues migrated from bugzilla
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
Extended Description
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.
The text was updated successfully, but these errors were encountered: