aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2005-04-19 15:42:13 +0000
committerAndrew Haley <aph@gcc.gnu.org>2005-04-19 15:42:13 +0000
commitb8621d81e8f6df75c4c25ad39b69acffba3ebf48 (patch)
treedc37e41c769b0133789fba2703898a63c931ab3d /gcc/dbxout.c
parent61e723301ec714803f34953f75e03cc1d08cac2b (diff)
downloadgcc-b8621d81e8f6df75c4c25ad39b69acffba3ebf48.zip
gcc-b8621d81e8f6df75c4c25ad39b69acffba3ebf48.tar.gz
gcc-b8621d81e8f6df75c4c25ad39b69acffba3ebf48.tar.bz2
re PR debug/21022 ([4.0 only] ICE while compiling GdkFontMetrics.class with stabs debugging)
2005-04-19 Andrew Haley <aph@redhat.com> PR java/21022 * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before looking at a field's bitpos. From-SVN: r98412
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index c645edb..f2f5eb8 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -1404,14 +1404,14 @@ dbxout_type_fields (tree type)
/* Omit here local type decls until we know how to support them. */
if (TREE_CODE (tem) == TYPE_DECL
+ /* Omit here the nameless fields that are used to skip bits. */
+ || DECL_IGNORED_P (tem)
/* Omit fields whose position or size are variable or too large to
represent. */
|| (TREE_CODE (tem) == FIELD_DECL
&& (! host_integerp (bit_position (tem), 0)
|| ! DECL_SIZE (tem)
- || ! host_integerp (DECL_SIZE (tem), 1)))
- /* Omit here the nameless fields that are used to skip bits. */
- || DECL_IGNORED_P (tem))
+ || ! host_integerp (DECL_SIZE (tem), 1))))
continue;
else if (TREE_CODE (tem) != CONST_DECL)