aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-07-15 16:56:49 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-07-15 16:56:49 +0000
commitb0afa2fca4c6d9c209fab1d15cbbe777ee616ba4 (patch)
tree0cc5a9bc6ef1f8b7d528b6ab27ba16008cd9efda /gcc
parent2a868facf522a905e998461a8c5e7fe6762d9320 (diff)
downloadgcc-b0afa2fca4c6d9c209fab1d15cbbe777ee616ba4.zip
gcc-b0afa2fca4c6d9c209fab1d15cbbe777ee616ba4.tar.gz
gcc-b0afa2fca4c6d9c209fab1d15cbbe777ee616ba4.tar.bz2
re PR debug/11473 (ICE with -gstabs when empty struct inheits from an empty struct)
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dbxout.c4
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/debug/debug8.C2
4 files changed, 14 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f521aee..5c64b86 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 618094d..770b0be 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -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);
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 2f10515..7664c0c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..1f8a18a
--- /dev/null
+++ b/gcc/testsuite/g++.dg/debug/debug8.C
@@ -0,0 +1,2 @@
+struct t{};
+struct g : public t{};