re PR debug/11473 (ICE with -gstabs when empty struct inheits from an empty struct)
authorMark Mitchell <mark@codesourcery.com>
Tue, 15 Jul 2003 16:56:49 +0000 (16:56 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 15 Jul 2003 16:56:49 +0000 (16:56 +0000)
PR debug/11473
* dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
base classes.

PR debug/11473
* g++.dg/debug/debug8.C: New test.

From-SVN: r69414

gcc/ChangeLog
gcc/dbxout.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/debug8.C [new file with mode: 0644]

index f521aee55d79541abd644e773b5a6c2380b2b839..5c64b864e674cca7a8c600e983556023933523fd 100644 (file)
@@ -1,3 +1,9 @@
+2003-07-15  Mark Mitchell  <mark@codesourcery.com>
+
+       PR debug/11473
+       * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
+       base classes.
+
 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
 
        PR target/10795
index 618094d2d5b7eb8ae60780ba1026389f633f303b..770b0be14c112a5ece50ff172e943a89111ee710 100644 (file)
@@ -1756,9 +1756,7 @@ dbxout_type (tree type, int full)
                                * BITS_PER_UNIT);
                putc (',', asmfile);
                CHARS (1);
-               print_wide_int (tree_low_cst (DECL_SIZE
-                                             (TYPE_NAME
-                                              (BINFO_TYPE (child))),
+               print_wide_int (tree_low_cst (TYPE_SIZE (BINFO_TYPE (child)),
                                              0)
                                * BITS_PER_UNIT);
                putc (';', asmfile);
index 2f10515a51e994027b79039ec193e365e430564a..7664c0c8f7c6ec67abcaf49108235153282cdd99 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-15  Mark Mitchell  <mark@codesourcery.com>
+
+       PR debug/11473
+       * g++.dg/debug/debug8.C: New test.
+
 2003-07-15  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        PR c++/10108
diff --git a/gcc/testsuite/g++.dg/debug/debug8.C b/gcc/testsuite/g++.dg/debug/debug8.C
new file mode 100644 (file)
index 0000000..1f8a18a
--- /dev/null
@@ -0,0 +1,2 @@
+struct t{};
+struct g : public t{};