[LLVMbugs] [Bug 3722] New: LLVM doesn't store data initialized with zero in BSS

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Mar 4 09:10:25 PST 2009


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

           Summary: LLVM doesn't store data initialized with zero in BSS
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ed at 80386.nl
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=2654)
 --> (http://llvm.org/bugs/attachment.cgi?id=2654)
Testcase

The attached application is only 6 KB when compiled with GCC, but 104 KB when
compiled with Clang. This is because the array at the top is initialized with
zeroes. GCC puts it in BSS, while Clang does not.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list