From 323658eac5a9f620a6af43fae57a12548178b63c Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Thu, 6 Mar 2003 11:23:46 +0100 Subject: dwarf2out.c (size_of_die): Compute size of external reference to die correctly. * dwarf2out.c (size_of_die): Compute size of external reference to die correctly. From-SVN: r63888 --- gcc/ChangeLog | 5 +++++ gcc/dwarf2out.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa602d4..6cb5a38 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-03-06 Zdenek Dvorak + + * dwarf2out.c (size_of_die): Compute size of external reference to + die correctly. + 2003-03-06 Hans-Peter Nilsson * config/mmix/mmix.md ("*movcc_expanded"): New pattern. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 5a515e3..e5f81f2 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -6349,7 +6349,10 @@ size_of_die (die) size += 1; break; case dw_val_class_die_ref: - size += DWARF_OFFSET_SIZE; + if (AT_ref_external (a)) + size += DWARF2_ADDR_SIZE; + else + size += DWARF_OFFSET_SIZE; break; case dw_val_class_fde_ref: size += DWARF_OFFSET_SIZE; -- cgit v1.1