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

Linking fails on PCC #98

Open
dargueta opened this issue Sep 17, 2023 · 0 comments
Open

Linking fails on PCC #98

dargueta opened this issue Sep 17, 2023 · 0 comments

Comments

@dargueta
Copy link

Despite having __GNUC__ set to 4, the standard library of the latest version of PCC doesn't have __sync_bool_compare_and_swap(). The simplest solution would be to explicitly exclude it:

#elif defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__PCC__)
//                                         ^^^^^^^^^^^^^^^^^^^^

I have a feeling there are other compilers that define __GNUC__ that aren't fully compatible with it (e.g. Clang's function attributes differ). This may bite us later.

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

No branches or pull requests

1 participant