This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r182519 - in /branches/gupc/libgupc: ChangeLog ...
- From: nenadv at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 20 Dec 2011 06:54:07 -0000
- Subject: r182519 - in /branches/gupc/libgupc: ChangeLog ...
Author: nenadv
Date: Tue Dec 20 06:54:06 2011
New Revision: 182519
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182519
Log:
Improve handling of shared pointer vaddr field. Make sure
that upc_addrfield() always returns an offset of the shared variable
from the beginning of the shared section.
libgupc/
* smp/upc_pts.h (GUPCR_PTS_VADDR): Macro definition returns the
offset of the shared variable in the shared section.
(GUPCR_PTS_SET_VADDR): Macro definition accepts the offset of the
shared variable in the shared section and sets the value of the
vaddr: offset for packed pts rep, address for struct pts rep.
* smp/upc_main.c (__upc_init): Adjust the argument for setting of
pointer-to-shared vaddr field.
* smp/upc_alloc.upc: Adjust the argument for building a
pointer-to-shared to the offset of the shared variable in the
shared section.
Modified:
branches/gupc/libgupc/ChangeLog
branches/gupc/libgupc/smp/upc_alloc.upc
branches/gupc/libgupc/smp/upc_main.c
branches/gupc/libgupc/smp/upc_pts.h