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

add a built-in MSP430 target #43099

Merged
merged 1 commit into from
Jul 7, 2017
Merged

add a built-in MSP430 target #43099

merged 1 commit into from
Jul 7, 2017

Conversation

japaric
Copy link
Member

@japaric japaric commented Jul 6, 2017

the MSP430 backend has been enabled for a while but no target was added to rustc
to encourage out of tree experimentation.

We believe the out of tree (custom) target has been iterated long enough and is
stable enough for inclusion in the compiler. Kudos to @pftbest and @awygle for
fixing several LLVM / codegen bugs this target had!

The target name chosen is a slight variation of the triple gcc uses, which is
simply msp430-elf. We picked msp430-none-elf to leave room for custom
targets that target some embedded OS running on MSP430 devices. (cf. the
custom thumbv7m-tockos-eabi target TockOS uses vs the built-in
thumbv7m-none-eabi).

There's one expected change in the specification of the proposed target: the
asm_args and no_integrated_as fields will change to their default values.
Once the LLVM backend gains the ability to directly produce MSP430 object files
we can stop depending on msp430-elf-gcc for producing object files; when that
occurs the asm related fields will change. This change won't break existing
user code.

r? @alexcrichton
cc @brson

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Jul 7, 2017

📌 Commit fc0275a has been approved by alexcrichton

@shepmaster shepmaster added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jul 7, 2017
@bors
Copy link
Contributor

bors commented Jul 7, 2017

⌛ Testing commit fc0275a with merge c0ec385...

bors added a commit that referenced this pull request Jul 7, 2017
add a built-in MSP430 target

the MSP430 backend has been enabled for a while but no target was added to rustc
to encourage out of tree experimentation.

We believe the out of tree (custom) target has been iterated long enough and is
stable enough for inclusion in the compiler. Kudos to @pftbest and @awygle for
fixing several LLVM / codegen bugs this target had!

The target name chosen is a slight variation of the triple gcc uses, which is
simply `msp430-elf`. We picked `msp430-none-elf` to leave room for custom
targets that target some embedded OS running on MSP430 devices. (cf. the
custom `thumbv7m-tockos-eabi` target TockOS uses vs the built-in
`thumbv7m-none-eabi`).

There's one expected change in the specification of the proposed target: the
`asm_args` and `no_integrated_as` fields will change to their default values.
Once the LLVM backend gains the ability to directly produce MSP430 object files
we can stop depending on `msp430-elf-gcc` for producing object files; when that
occurs the `asm` related fields will change. This change won't break existing
user code.

r? @alexcrichton
cc @brson
@bors
Copy link
Contributor

bors commented Jul 7, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing c0ec385 to master...

@lilianmoraru
Copy link

@alexcrichton Should msp430-none-elf be added to rust-buildbot or things that don't have an std are not added?

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants