-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
LLVM error compiling core and builtin functions using 16-bit pointers in data layout #68327
Copy link
Copy link
Open
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.Status: This issue has no reproduction and needs a reproduction to make progress.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.Status: This issue has no reproduction and needs a reproduction to make progress.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I'm trying to compile Rust code to run in 386 real mode, where pointers larger than 2^16 aren't meaningful, even though there are 32-bit registers to work with. It works if I use full 32-bit pointers, but this is quite wasteful, so I've written my target JSON file to specify 16-bit pointers with 16-bit alignment in the LLVM data layout, and set
target-pointer-widthto 16. However, I get errors from LLVM itself trying to compiler certain functions incoreandbuiltins.