Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 pickedmsp430-none-elf
to leave room for customtargets that target some embedded OS running on MSP430 devices. (cf. the
custom
thumbv7m-tockos-eabi
target TockOS uses vs the built-inthumbv7m-none-eabi
).There's one expected change in the specification of the proposed target: the
asm_args
andno_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 thatoccurs the
asm
related fields will change. This change won't break existinguser code.
r? @alexcrichton
cc @brson