Skip to content

Linking fails on PCC #98

@dargueta

Description

@dargueta

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions