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

arm-none fixups #113992

Merged
merged 3 commits into from
Jul 24, 2023
Merged

arm-none fixups #113992

merged 3 commits into from
Jul 24, 2023

Conversation

chrisnc
Copy link
Contributor

@chrisnc chrisnc commented Jul 24, 2023

  • Remove "-unknown" from llvm_target for arm*v7r-none-eabi* targets.
  • Remove redundant c_enum_min_bits option from the thumbv4t-none-eabi target.
  • Fix comments about GCC/Clang's enum width for arm-none targets.

Previously part of #110482, which is a larger change to add a new target.
These nits were found along the way.

chrisnc added 3 commits July 23, 2023 20:19
… target.

This option is the same as the `thumb_base` defaults used by this target.
GCC uses the `-fshort-enums` ABI for arm-none and the `int`-sized enum
ABI for arm-linux.
Clang uses the `int`-sized enum ABI for all arm targets.

Both options are permitted by AAPCS.

Rust is matching GCC's behavior for these targets, as interop with code
code compiled by GCC is desirable in the bare-metal context. See rust-lang#87917.
@rustbot
Copy link
Collaborator

rustbot commented Jul 24, 2023

r? @fee1-dead

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 24, 2023
@rustbot
Copy link
Collaborator

rustbot commented Jul 24, 2023

These commits modify compiler targets.
(See the Target Tier Policy.)

@fee1-dead
Copy link
Member

r? compiler

@rustbot rustbot assigned oli-obk and unassigned fee1-dead Jul 24, 2023
@oli-obk
Copy link
Contributor

oli-obk commented Jul 24, 2023

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Jul 24, 2023

📌 Commit 8e54cab has been approved by oli-obk

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 24, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 24, 2023
…iaskrgr

Rollup of 8 pull requests

Successful merges:

 - rust-lang#113969 (add dynamic for smir)
 - rust-lang#113985 (Use erased self type when autoderefing for trait error suggestion)
 - rust-lang#113987 (Comment stuff in the new solver)
 - rust-lang#113992 (arm-none fixups)
 - rust-lang#113993 (Optimize format usage)
 - rust-lang#113994 (Optimize format usage)
 - rust-lang#114006 (Update sparc-unknown-none-elf platform README)
 - rust-lang#114021 (Add missing documentation for `Session::time`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 4d2f98d into rust-lang:master Jul 24, 2023
@rustbot rustbot added this to the 1.73.0 milestone Jul 24, 2023
@chrisnc chrisnc deleted the arm-none-fixups branch August 26, 2023 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants