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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

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
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to