-
Notifications
You must be signed in to change notification settings - Fork 3k
Force callback non-trivial for IAR #13015
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
Conversation
#ifdef __ICCARM__ | ||
/* Force callback.non-trivial for IAR */ | ||
#undef MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL | ||
#define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redefining config options is icky, so I'd rather not. Can be confusing for any third parties (people or code) checking the option, potentially without looking or including here.
But I don't have a better suggestion. Don't think we can have a "toolchain override" for the JSON. I can live with this.
platform/Callback.h
Outdated
@@ -30,6 +30,13 @@ | |||
// MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL - support storing non-trivial function objects | |||
// MBED_CONF_PLATFORM_CALLBACK_COMPARABLE - support memcmp comparing stored objects (requires zero padding) | |||
|
|||
#ifdef __ICCARM__ | |||
/* Force callback.non-trivial for IAR */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
platform.callback-nontrivial
?
@jeromecoutant, thank you for your changes. |
1bd4e01
to
d8fc1e9
Compare
CI started |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
This PR does not contain release version label after merging. |
Summary of changes
This fixes #12932
#12761 optimisation is disabled for IAR
Impact of changes
IAR tests are now OK
Migration actions required
Documentation
Pull request type
Test results
Reviewers