Repository: rust
Issue: Tracking Issue for sparc_target_feature
Labels: O-SPARC,C-tracking-issue,A-target-feature

<!--
NOTE: For library features, please use the "Library Tracking Issue" template instead.

Thank you for creating a tracking issue! 📜 Tracking issues are for tracking a
feature from implementation to stabilisation. Make sure to include the relevant
RFC for the feature if it has one. Otherwise provide a short summary of the
feature and link any relevant PRs or issues, and remove any sections that are
not relevant to the feature.

Remember to add team labels to the tracking issue.
For a language team feature, this would e.g., be `T-lang`.
Such a feature should also be labeled with e.g., `F-my_feature`.
This label is used to associate issues (e.g., bugs and design questions) to the feature.
-->

This is a tracking issue for SPARC architecture specific part of https://github.com/rust-lang/rust/issues/44839 (RFC 2045 (rust-lang/rfcs#2045)).
The feature gate for the issue is `#![feature(sparc_target_feature)]`.

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.

### Steps
<!--
Include each step required to complete the feature. Typically this is a PR
implementing a feature, followed by a PR that stabilises the feature. However
for larger features an implementation could be broken up into multiple PRs.
-->

- [x] Implementation https://github.com/rust-lang/rust/pull/132552
- [ ] Stabilization PR ([see instructions on rustc-dev-guide][stabilization-guide])

[stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs
[nightly-style-procedure]: https://github.com/rust-lang/style-team/blob/main/nightly-style-procedure.md 
[Style Guide]: https://github.com/rust-lang/rust/tree/master/src/doc/style-guide

### Unresolved Questions
<!--
Include any open questions that need to be answered before the feature can be
stabilised.
-->

- [ ] Behavior of `v8plus` target feature is LLVM version dependent until LLVM 20 becomes minimal LLVM version (https://github.com/rust-lang/rust/issues/132585#issuecomment-2453926257)
- [ ] Enabling `v8plus` target feature without `v9` target feature should be rejected. (AFAIK, there is no existing mechanism to represent this.)
  https://github.com/rust-lang/rust/blob/c059eb77504b638bc53b486ef7151cedb7a7ef03/tests/ui/abi/sparcv8plus.rs#L37-L39
  Or, enable `v9` target feature automatically when `v8plus` target feature enabled.


### Implementation history

<!--
Include a list of all the PRs that were involved in implementing the feature.
-->

- `v9`, `v8plus`, `leoncasa`: https://github.com/rust-lang/rust/pull/132552

---

@rustbot label +O-SPARC +A-target-feature