Skip to content

LLVM doesn't store data initialized with zero in BSS #4094

@EdSchouten

Description

@EdSchouten
Bugzilla Link 3722
Resolution FIXED
Resolved on Mar 04, 2009 13:17
Version unspecified
OS FreeBSD
Attachments Testcase
CC @asl,@pwo

Extended Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:codegenIR generation bugs: mangling, exceptions, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions