clangupc / clang-upc

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

Proposed fix for upc2c issue #78 on ppc64 #80

Closed PHHargrove closed 9 years ago

PHHargrove commented 9 years ago

This commit corrects the reported alignment for the struct PTS on a target with 32-bit pointers. It should be the same as a 32-bit integer, not a 64-bit one as was the case previously.

This did not show on x86_64, where the ILP32 ABI (x86) requires only 4-byte alignment for both 32- and 64-bit integers. However on PPC64 both the LP64 and ILP32 ABIs specify 8-byte alignment of 8-byte integers, leading to a mismatch between clang-upc and the C code in UPCR.

PHHargrove commented 9 years ago

Merged manually