gcc/upc/
commit2d27134084de7f5742fbd2379b51ac5d040245a7
authorgfunck <gfunck@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jul 2012 23:30:09 +0000 (24 23:30 +0000)
committergfunck <gfunck@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jul 2012 23:30:09 +0000 (24 23:30 +0000)
tree27789277f23a0d2b3fe1cfa088f042bfe614821d
parenta78d67062dfbc0f5d063477c5d75c9757abc0486
gcc/upc/
Per UPC spec. 6.4.2p6, ignore the value of the
phase of a pointer-to-shared, when comparing for
equal or not equal.
* upc-pts-packed.c (upc_pts_packed_build_cond_expr):
Use bit-wise comparison only if the UPC pointer-to-shared
target type has a block size <= 1 and the representation
has vaddr first or the comparison is for equality/inequality.
* upc-pts-struct.c (upc_pts_struct_build_cond_expr):
Use (vaddr, thread) comparison only if the UPC pointer-to-shared
has a block size <= 1 or the comparison is for equality/inequality.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gupc@189829 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/upc/ChangeLog
gcc/upc/upc-pts-packed.c
gcc/upc/upc-pts-struct.c