dwarf2out.c (size_of_die): Compute size of external reference to die correctly.
authorZdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
Thu, 6 Mar 2003 10:23:46 +0000 (11:23 +0100)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Thu, 6 Mar 2003 10:23:46 +0000 (10:23 +0000)
* dwarf2out.c (size_of_die): Compute size of external reference to
die correctly.

From-SVN: r63888

gcc/ChangeLog
gcc/dwarf2out.c

index fa602d4f28b456d53fa336dd9435ccd4bb992407..6cb5a3841b67b05806e089390b13f23d54493f60 100644 (file)
@@ -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.
index 5a515e3fb4166be40d6eb9233e027e98a2c9a605..e5f81f2c27f8dec567ce0333687fa576b938521f 100644 (file)
@@ -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;