Skip to content

llvm-gcc emits llvm assembly with incomplete target data layout #1614

@llvmbot

Description

@llvmbot
Bugzilla Link 1242
Resolution FIXED
Resolved on Feb 22, 2010 12:55
Version trunk
OS All
Attachments A simple program that produces the bug., Equivalent llvm assembly for struct-size.c
Reporter LLVM Bugzilla Contributor

Extended Description

When emitting llvm code (-emit-llvm), llvm-gcc generates a Target Data Layout of
"e-p:32:32" for x86-pc-linux-gnu. This is insufficient for some programs as the
defaults will use f64:64:64 whereas the correct alignment is f64:32:64. This
causes a problem in accessing fields of structures that use double/long long.

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillallvm-toolsAll llvm tools that do not have corresponding tagmiscompilation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions