Add -Z small-data-threshold #689
Labels
major-change
A proposal to make a major change to rustc
major-change-accepted
A major change proposal that was accepted
T-compiler
Add this label so rfcbot knows to poll the compiler team
Proposal
On some targets (including MIPS, M68K, RISC-V, Hexagon) and configurations, LLVM will place small static data objects in the
.sdata
and.sbss
sections, intended to allow size optimizations in embedded systems that can access data in these sections via small offsets from a register. LLVM provides command line arguments and/or IR module flags to control/disable this behavior in the event that it's unwanted, but they're different on every target.This proposal is to add the
-Z small-data-threshold
flag, which appropriately configures LLVM's small-data threshold for the target in use.See rust-lang/rust#117465 for a possible implementation of the proposed change.
Mentors or Reviewers
Process
The main points of the Major Change Process are as follows:
@rustbot second
.-C flag
, then full team check-off is required.@rfcbot fcp merge
on either the MCP or the PR.You can read more about Major Change Proposals on forge.
Comments
The text was updated successfully, but these errors were encountered: