diff options
author | Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> | 2003-03-06 11:23:46 +0100 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2003-03-06 10:23:46 +0000 |
commit | 323658eac5a9f620a6af43fae57a12548178b63c (patch) | |
tree | 6550e7c99524752e6e6dc9c9a1f4f24b78924ec7 /gcc | |
parent | 2b18b49bb8b3a4604aa4bbf835a82622a3cc2029 (diff) | |
download | gcc-323658eac5a9f620a6af43fae57a12548178b63c.zip gcc-323658eac5a9f620a6af43fae57a12548178b63c.tar.gz gcc-323658eac5a9f620a6af43fae57a12548178b63c.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 5 |
2 files changed, 9 insertions, 1 deletions
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 <rakdver@atrey.karlin.mff.cuni.cz> + + * dwarf2out.c (size_of_die): Compute size of external reference to + die correctly. + 2003-03-06 Hans-Peter Nilsson <hp@bitrange.com> * 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; |