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

Add -moutline-atomics support for GCC10, Clang12 #135

Open
MattWindsor91 opened this issue May 19, 2021 · 0 comments
Open

Add -moutline-atomics support for GCC10, Clang12 #135

MattWindsor91 opened this issue May 19, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@MattWindsor91
Copy link
Collaborator

Per Arm's blog post, there is now a feature -moutline-atomics in GCC10 (and, I think, Clang12) that implements out-of-line atomics - eg, certain atomic actions in armv8 (not armv8.1) compile to runtime calls that check whether the processor is new enough to use LSE atomics (or needs LL/SC). Ideally, c4t should be able to pass -moutline-atomics or -mno-outline-atomics when on armv8 and a sufficiently recent compiler version.

This might be a turning point to consider a more principled way of teaching c4t about perturbable compiler optimisations. I'll sketch a new issue for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant