Work around C++14 assert problem#12906
Merged
Merged
Conversation
ARMC6's assert macro does not work in C++14 constexpr context as it should. By defining __DO_NOT_LINK_PROMISE_WITH_ASSERT, we deactivate the extension that breaks it (having `__promise` inside `assert` - see the compiler manual). The extension does not appear to be useful - we have no code using ARMC6's `__promise` directly, and putting a `__promise` inside the assert does not appear to affect code generation in my tests.
Now that we've got a workaround for ARMC6, asserts can be restored.
0xc0170
approved these changes
Apr 30, 2020
Contributor
|
CI started |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary of changes
During testing of #12425, a problem in ARM Compiler 6.13's
assertwas identified. This adds a general workaround and restores original code from that PR.(Problem will ultimately be fixed in ARM Compiler 6.15, but the workaround seems to have no downside)
Impact of changes
Migration actions required
n/a
Documentation
None
Pull request type
Feature update because it's changing #12425
Test results
Reviewers