On 22/01/2021 11:42, Andrew Stubbs wrote:
@@ -20294,15 +20315,6 @@ add_location_or_const_value_attribute (dw_die_ref die, 
tree decl, bool cache_p)
    if (list)
      {
        add_AT_location_description (die, DW_AT_location, list);
-
-      addr_space_t as = TYPE_ADDR_SPACE (TREE_TYPE (decl));
-      if (!ADDR_SPACE_GENERIC_P (as))
-       {
-         int action = targetm.addr_space.debug (as);
-         /* Positive values indicate an address_class.  */
-         if (action >= 0)
-           add_AT_unsigned (die, DW_AT_address_class, action);
-       }
        return true;
      }
    /* None of that worked, so it must not really have a location;

Sorry, this part was from an earlier attempt to fix the problem and should have been cleaned up. I suppose it serves to show how not to do it.

Andrew

Reply via email to