From ec6165f8528e46fe0dc3fcd9c6539171e8b2f315 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 25 Mar 2011 10:06:13 +0000 Subject: [PATCH] Remove deprecated DW_FORM_sig8 define. * dwarf2.h (dwarf_form): Remove deprecated DW_FORM_sig8 define. * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8. (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8. From-SVN: r171442 --- gcc/ChangeLog | 5 +++++ gcc/dwarf2out.c | 4 ++-- include/ChangeLog | 4 ++++ include/dwarf2.h | 1 - 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 05877e1ee8c..228f3e2b3db 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-03-24 Mark Wielaard + + * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8. + (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8. + 2011-03-24 Mark Wielaard PR debug/48041 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 06dcf9c79d1..e57b9a1a0ea 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -10729,7 +10729,7 @@ size_of_die (dw_die_ref die) case dw_val_class_die_ref: if (AT_ref_external (a)) { - /* In DWARF4, we use DW_FORM_sig8; for earlier versions + /* In DWARF4, we use DW_FORM_ref_sig8; for earlier versions we use DW_FORM_ref_addr. In DWARF2, DW_FORM_ref_addr is sized by target address length, whereas in DWARF3 it's always sized as an offset. */ @@ -11005,7 +11005,7 @@ value_format (dw_attr_ref a) return DW_FORM_flag; case dw_val_class_die_ref: if (AT_ref_external (a)) - return dwarf_version >= 4 ? DW_FORM_sig8 : DW_FORM_ref_addr; + return dwarf_version >= 4 ? DW_FORM_ref_sig8 : DW_FORM_ref_addr; else return DW_FORM_ref; case dw_val_class_fde_ref: diff --git a/include/ChangeLog b/include/ChangeLog index a0585b08167..a6adcc3ec32 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2011-03-24 Mark Wielaard + + * dwarf2.h (dwarf_form): Remove deprecated DW_FORM_sig8 define. + 2010-03-23 Rafael Ávila de Espíndola * plugin-api.h (ld_plugin_get_view): New. diff --git a/include/dwarf2.h b/include/dwarf2.h index 46f2291c617..ef0fa5f145f 100644 --- a/include/dwarf2.h +++ b/include/dwarf2.h @@ -189,7 +189,6 @@ enum dwarf_form DW_FORM_exprloc = 0x18, DW_FORM_flag_present = 0x19, DW_FORM_ref_sig8 = 0x20 -#define DW_FORM_sig8 DW_FORM_ref_sig8 /* Note: The use of DW_FORM_sig8 is deprecated. */ }; /* Attribute names and codes. */ -- 2.30.2