rtx shallow_copy_rtx_stat (const_rtx orig MEM_STAT_DECL) { const unsigned int size = rtx_size (orig); rtx const copy = (rtx) ggc_alloc_zone_pass_stat (size, &rtl_zone); return (rtx) memcpy (copy, orig, size); }
rtx shallow_copy_rtx_stat (rtx orig MEM_STAT_DECL) { unsigned int size; rtx copy; size = rtx_size (orig); copy = (rtx) ggc_alloc_zone_pass_stat (size, &rtl_zone); memcpy (copy, orig, size); return copy; }
rtx rtx_alloc_stat (RTX_CODE code MEM_STAT_DECL) { rtx rt; rt = (rtx) ggc_alloc_zone_pass_stat (RTX_CODE_SIZE (code), &rtl_zone); /* We want to clear everything up to the FLD array. Normally, this is one int, but we don't want to assume that and it isn't very portable anyway; this is. */ memset (rt, 0, RTX_HDR_SIZE); PUT_CODE (rt, code); #ifdef GATHER_STATISTICS rtx_alloc_counts[code]++; rtx_alloc_sizes[code] += RTX_CODE_SIZE (code); #endif return rt; }