Skip to content
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

tests: arm: remove GNUC ifdef #82348

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RobinKastberg
Copy link
Contributor

Porting zephyr to IAR I stumbled onto this test.
I think these ifdefs are guarding the inline assembly in this test.
But it is better to get compile error rather than #error. (We can handle this inline assembly almost just fine)
Does this actually happen to any other toolchain?
Maybe this test should filter on CONFIG_TOOLCHAIN_HAS_GNU_EXTENSIONS or similar instead?

It is better to get compile error rather than #error

Signed-off-by: Robin Kastberg <[email protected]>
Copy link
Collaborator

@tejlmand tejlmand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

If we want to increase support for more toolchains in Zephyr then avoiding GNUC checks in test code like this seems a logical step.

Long term we can consider a Zephyr specific flag which the Zephyr toolchain integration can set for test compatible checks, but such future work should not block this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ARM ARM (32-bit) Architecture
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants