-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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: cmse: re-introduce workaround for typeof #19195
arch: arm: cmse: re-introduce workaround for typeof #19195
Conversation
Relates to #19182 |
Can we add some gcc version checking. Thus it will be clear if/when we might want to remove this in the future. |
077cb40
to
00c1d83
Compare
That's what I wanted to avoid, @galak ; have ifdefs with toolchain versions. Like this , the workaround is more generic and not strictly coupled with a GCC release. It, simply, defines the intrinsic if not already defined |
Hmm, than maybe a comment about some versions of gcc-8 being broken. |
@galak something like:
??? |
Yes, but something like |
Right, I 'l ll add the minor versions, too. |
The GNU ARM Embedded "8-2019-q3-update" toolchain erroneously uses "typeof" instead of "__typeof__". To work around this we define typeof to be able to support it. This reverts commit 01a71ea. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
@galak No I had patched my toolchain files when I tried it yesterday, forgot I had done that. So all versions of arm-none-eabi-gcc 8 are bad for |
00c1d83
to
d780c12
Compare
@galak I updated the comment based on the feedback from @sigvartmh |
The GNU ARM Embedded "8-2019-q3-update" toolchain
erroneously uses "typeof" instead of "typeof".
To work around this we define typeof to be able to
support it.
This reverts commit 01a71ea.
Signed-off-by: Ioannis Glaropoulos Ioannis.Glaropoulos@nordicsemi.no