https://bugs.llvm.org/show_bug.cgi?id=51335

            Bug ID: 51335
           Summary: option -fno-zero-initialized-in-bss will put
                    uninitialized variables to data section
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: 2077213...@qq.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
                    neeil...@live.com, richard-l...@metafoo.co.uk

The code is as follows: g_bss is placed in the data section. When I add the
-fno-zero-initialized-in-bss option, it is expected to be in the bss section.
When I remove the pragma, it's normal. Both g_bss and g_test are placed in the
bss section.

#pragma clang section bss="MyBss" data="MyData"
int g_bss;
int g_test = 0;
int main()
{

}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to