On 08/17/11 08:38:44, Gary Funck wrote:
> 
> I have been looking at changing UPC's method of 
> recording the blocking factor so that it uses less space
> in the tree type node.  The suggested method for
> achieving this space reduction is to use a hash table to
> map pointers to type nodes into UPC blocking factors
> (for less commonly used blocking factor values). 
[...]
> The issue that I'm running into, however, is that the
> re-implementation of UPC_TYPE_BLOCK_FACTOR() is not
> plug-and-play with its previous version that used
> a tree pointer in the node to record the blocking factor.
[...]

As a follow up, I wasn't able to find an alternative method
that preserved the const'ness of the API's involved in
the change, so ended up reverting them back to regular tree pointers.
The following change was committed to the GUPC branch.

2011-08-30  Gary Funck  <g...@intrepid.com>

        * tree.h (check_qualified_type): Change 'const_tree'
        argument types back to 'tree' to avoid complaints
        of assignment drops qualifiers for invocations of the
        newly implemented TYPE_BLOCK_FACTOR() macro, which
        invokes hash functions with 'tree' pointer values that
        are not const qualified.
        * tree.c (check_qualified_type, check_aligned_type): Ditto.
        * c-typeck.c (comptypes_internal): Ditto.

Reply via email to