Remove bogus usage of TREE_ADDRESSABLE in tree.h

Eric Botcazou ebotcazou@adacore.com
Fri May 14 19:28:00 GMT 2010


This reads:

   In a FIELD_DECL node, it means that the programmer is permitted to
   construct the address of this field.  This is used for aliasing
   purposes: see record_component_aliases.

That's bogus, the above description is that of DECL_NONADDRESSABLE_P (or 
rather that of its opposite).  There is no reference to TREE_ADDRESSABLE in 
record_component_aliases.  Moreover mark_addressable is explicit:

void
mark_addressable (tree x)
{
  while (handled_component_p (x))
    x = TREE_OPERAND (x, 0);
  if (TREE_CODE (x) != VAR_DECL
      && TREE_CODE (x) != PARM_DECL
      && TREE_CODE (x) != RESULT_DECL)
    return ;
  TREE_ADDRESSABLE (x) = 1;
}

Applied on the mainline as obvious.


2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>

	* tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 1185 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100514/116b118b/attachment.bin>


More information about the Gcc-patches mailing list