aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2005-05-16 15:11:33 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-05-16 15:11:33 +0000
commita1bbd445e2f512343859ddcd2676aefb61c6ddfe (patch)
tree694b752570473b3baad841f81f7f518d4fffa7a3 /gcc/dwarf2out.c
parent99e4078fec82463d0d2547504ad85b134739a521 (diff)
downloadgcc-a1bbd445e2f512343859ddcd2676aefb61c6ddfe.zip
gcc-a1bbd445e2f512343859ddcd2676aefb61c6ddfe.tar.gz
gcc-a1bbd445e2f512343859ddcd2676aefb61c6ddfe.tar.bz2
dwarf2out.c (used_rtx_varray): Rename to used_rtx_array.
* dwarf2out.c (used_rtx_varray): Rename to used_rtx_array. Change the type to VEC(rtx,gc)*. (mem_loc_descriptor, add_const_value_attributes, dwarf2out_init): Adjust uses of used_rtx_varray. From-SVN: r99777
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 9804bcf..aee1c2f 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -170,9 +170,12 @@ default_eh_frame_section (void)
#endif
}
+DEF_VEC_P(rtx);
+DEF_VEC_ALLOC_P(rtx,gc);
+
/* Array of RTXes referenced by the debugging information, which therefore
must be kept around forever. */
-static GTY(()) varray_type used_rtx_varray;
+static GTY(()) VEC(rtx,gc) *used_rtx_array;
/* A pointer to the base of a list of incomplete types which might be
completed at some later time. incomplete_types_list needs to be a
@@ -8680,7 +8683,7 @@ mem_loc_descriptor (rtx rtl, enum machine_mode mode, bool can_use_fbreg)
mem_loc_result = new_loc_descr (DW_OP_addr, 0, 0);
mem_loc_result->dw_loc_oprnd1.val_class = dw_val_class_addr;
mem_loc_result->dw_loc_oprnd1.v.val_addr = rtl;
- VARRAY_PUSH_RTX (used_rtx_varray, rtl);
+ VEC_safe_push (rtx, gc, used_rtx_array, rtl);
break;
case PRE_MODIFY:
@@ -9772,7 +9775,7 @@ add_const_value_attribute (dw_die_ref die, rtx rtl)
case LABEL_REF:
case CONST:
add_AT_addr (die, DW_AT_const_value, rtl);
- VARRAY_PUSH_RTX (used_rtx_varray, rtl);
+ VEC_safe_push (rtx, gc, used_rtx_array, rtl);
break;
case PLUS:
@@ -10660,7 +10663,7 @@ add_name_and_src_coords_attributes (dw_die_ref die, tree decl)
{
add_AT_addr (die, DW_AT_VMS_rtnbeg_pd_address,
XEXP (DECL_RTL (decl), 0));
- VARRAY_PUSH_RTX (used_rtx_varray, XEXP (DECL_RTL (decl), 0));
+ VEC_safe_push (tree, gc, used_rtx_array, XEXP (DECL_RTL (decl), 0));
}
#endif
}
@@ -13506,7 +13509,7 @@ dwarf2out_init (const char *filename ATTRIBUTE_UNUSED)
incomplete_types = VEC_alloc (tree, gc, 64);
- VARRAY_RTX_INIT (used_rtx_varray, 32, "used_rtx_varray");
+ used_rtx_array = VEC_alloc (rtx, gc, 32);
ASM_GENERATE_INTERNAL_LABEL (text_end_label, TEXT_END_LABEL, 0);
ASM_GENERATE_INTERNAL_LABEL (abbrev_section_label,