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 #225

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

Conversation

jrtc27
Copy link
Contributor

@jrtc27 jrtc27 commented Dec 11, 2019

No description provided.

It's unnecessary and non-portable; Clang doesn't even implement that
part of GNU C.
Clang's driver does not seem to forward this on, unlike GCC's, so
instead ensure the linker sees it by using -Wl.
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.
@jrtc27
Copy link
Contributor Author

jrtc27 commented Feb 12, 2020

Ping?

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.

LGTM. Can you fix the merge conflict?

@geekLucian geekLucian mentioned this pull request Sep 15, 2022
@widlarizer
Copy link

Bump, we are STILL seeing the nested function definition error three years later!

@aswaterman
Copy link
Collaborator

There's a merge conflict, so I can't merge it. Please contact the original author so they can fix it, or submit a new PR.

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