Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
llvmbot opened this issue Mar 6, 2007 · 2 comments
Closed

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

llvmbot opened this issue Mar 6, 2007 · 2 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla llvm-tools All llvm tools that do not have corresponding tag miscompilation

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Mar 6, 2007

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.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Mar 6, 2007

assigned to @lattner

@lattner
Copy link
Collaborator

lattner commented Mar 6, 2007

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
troelsbjerre pushed a commit to troelsbjerre/llvm-project that referenced this issue Jan 10, 2024
…eb5bb34c02aeaa8a9e3c

🍒-pick ba37b14 and dependencies
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla llvm-tools All llvm tools that do not have corresponding tag miscompilation
Projects
None yet
Development

No branches or pull requests

2 participants