Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

Conversation

japaric
Copy link
Member

@japaric japaric commented Oct 19, 2017

TL;DR thanks to rust-lang/rust#45031 we no longer need this

Now with -C panic=abort all functions are marked with the nouwind attribute in
LLVM-IR. With this change LLVM won't generate undefined references to
__aeabi_unwind_cpp_pr0 et al. which we don't use / supply but are required by
the AEABI standard in the case that a function that throw exceptions
exists (semantically, we never have any of those function with panic=abort but
the LLVM-IR didn't reflect this before).


the downside of this change is that users will need a recent-ish (1 week old or
newer) nightly or will run into linker errors.

So I'll wait a bit before merging this, I think.

TL;DR thanks to rust-lang/rust#45031 we no longer need this

Now with -C panic=abort all functions are marked with the `nouwind` attribute in
LLVM-IR. With this change LLVM won't generate undefined references to
`__aeabi_unwind_cpp_pr0` et al. which we don't use / supply but are required by
the AEABI standard in the case that a function that throw exceptions
exists (semantically, we never have any of those function with panic=abort but
the LLVM-IR didn't reflect this before).
@japaric
Copy link
Member Author

japaric commented Nov 7, 2017

I think enough time has passed by now so let's merge this. (It's not like I totally forgot about this PR 😅)

@japaric japaric merged commit cf50fc8 into master Nov 7, 2017
@japaric japaric deleted the no-discard branch November 7, 2017 23:39
rukai pushed a commit to rukai/cortex-m-rt that referenced this pull request May 1, 2021
41: Bumped linked_list_allocator and added `const_mut_refs` feature r=jonas-schievink a=Spadi0

Fixes rust-embedded#40

Co-authored-by: Sam Jones <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant