-
Notifications
You must be signed in to change notification settings - Fork 7.3k
arch: arm: include: cortex_m: tz: Patch cmse_nsfptr_create for gcc 8 #19182
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
arch: arm: include: cortex_m: tz: Patch cmse_nsfptr_create for gcc 8 #19182
Conversation
arm-none-eabi-gcc 8 has a bug in the `cmse_nsfptr_create` macro. This patch undefs the symbol and patches it with the corrected version which is present in version 7.2 and 9.2. Signed-off-by: Sigvart Hovland <[email protected]>
When trying to use
This is due to the header of The actual root cause of the bug is |
Thanks for the patch @sigvartmh . Since our SDK makes it work, I am not sure we want to have these work-around |
It's only related to 8.0-8.2 gcc so I guess just stating it in the docs would be sufficient. |
Curious which GCC you might have hit this with? Its probably not a terrible "fix" to have for toolchains out of our control. |
I hit it with gcc 8.2 didn't realize 8.3 was released in july so I was a bit slow to update it seems. Used 7.2 as a workaround. |
Problem is, if we open this possibility for fixes, just to support existing bugs, we might end up with a lot of noise in the codebase @galak |
This affects the latest released GNU ARM Embedded toolchain. |
Not sure where the problem is. We add workarounds to bugs that affect systems outside of our control all the time. |
Could we revert #16199 ? That seems to me like a more general fix. |
We will revert #16199 instead. |
My fault had the patch in my zephyr branch when i tried 8.3 yeah still broken. |
So 8.0-8.3 broken, 7.x and 9.x OK? |
That's my experience at least |
arm-none-eabi-gcc 8 has a bug in the
cmse_nsfptr_create
macro. Thispatch undefs the symbol and patches it with the corrected version which
is present in version 7.2 and 9.2.
Signed-off-by: Sigvart Hovland [email protected]