clangupc / clang-upc

Clang UPC Front-End
https://clangupc.github.io/
Other
16 stars 5 forks source link

Allow build w/o __GCC_HAVE_SYNC_COMPARE_AND_SWAP_[48] #28

Closed PHHargrove closed 10 years ago

PHHargrove commented 10 years ago

Please consider pulling this commit which partially addresses the problem I reported in issue27.

This commit resolves compilation errors in the generated clang-upc-lib.h for the case where GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 and GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is missing. Specifically, this ensures inclusion of the typedefs required for the prototype of the external __upc_atomic_cas().

PHHargrove commented 10 years ago

Second commit fixes the "real problem" of clang for PowerPC not providing the sync... operations, while is does provide the atomic... ones.