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

benchmarks: Various fixes for compiling with Clang #502

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

widlarizer
Copy link

#225 except -T behaves just fine with clang so we don't have to mess with that. Also renamed references to GCC to CC

jrtc27 and others added 3 commits September 20, 2023 13:57
It's unnecessary and non-portable; Clang doesn't even implement that
part of GNU C.

(cherry picked from commit 50d75cb)
Clang only supports register variables when declared at global scope
(and only for non-allocatable registers, which is fine for tp), so move
thread_pointer. This does not make thread_pointer visible outside the
translation unit, it merely acts as a C alias for tp, so the semantics
remain unchanged.

(cherry picked from commit 20378c0)
Copy link
Collaborator

@aswaterman aswaterman left a comment

Choose a reason for hiding this comment

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

Did you verify this all still works with GCC?

I think the replacement of RISCV_GCC with RISCV_CC is a little too ideological for a PR whose purpose is to fix things, but I guess it's OK.

@widlarizer
Copy link
Author

I can't address this immediately but I hope to play with riscv-tests some more next week and let you know

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

Successfully merging this pull request may close these issues.

3 participants