From 20faba6ddf316ea84b764b305ec1f9372f7f0ebd Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 7 Mar 2019 14:47:53 +0100 Subject: [PATCH] Revert function removal made in r264561. 2019-03-07 Martin Liska * dwarf2out.c (add_AT_vms_delta): Revert function removal. From-SVN: r269454 --- gcc/ChangeLog | 4 ++++ gcc/dwarf2out.c | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 544d3ea275d..b7244461267 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-03-07 Martin Liska + + * dwarf2out.c (add_AT_vms_delta): Revert function removal. + 2019-03-07 Richard Biener PR tree-optimization/89595 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 1b17f2bc1d5..e074ee3fcd1 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -3907,6 +3907,8 @@ static void prune_unused_types (void); static int maybe_emit_file (struct dwarf_file_data *fd); static inline const char *AT_vms_delta1 (dw_attr_node *); static inline const char *AT_vms_delta2 (dw_attr_node *); +static inline void add_AT_vms_delta (dw_die_ref, enum dwarf_attribute, + const char *, const char *); static void append_entry_to_tmpl_value_parm_die_table (dw_die_ref, tree); static void gen_remaining_tmpl_value_param_die_attribute (void); static bool generic_type_p (tree); @@ -5142,6 +5144,22 @@ AT_file (dw_attr_node *a) return a->dw_attr_val.v.val_file; } +/* Add a vms delta attribute value to a DIE. */ + +static inline void +add_AT_vms_delta (dw_die_ref die, enum dwarf_attribute attr_kind, + const char *lbl1, const char *lbl2) +{ + dw_attr_node attr; + + attr.dw_attr = attr_kind; + attr.dw_attr_val.val_class = dw_val_class_vms_delta; + attr.dw_attr_val.val_entry = NULL; + attr.dw_attr_val.v.val_vms_delta.lbl1 = xstrdup (lbl1); + attr.dw_attr_val.v.val_vms_delta.lbl2 = xstrdup (lbl2); + add_dwarf_attr (die, &attr); +} + /* Add a symbolic view identifier attribute value to a DIE. */ static inline void -- 2.30.2