From: aph Date: Tue, 19 Apr 2005 15:42:13 +0000 (+0000) Subject: 2005-04-19 Andrew Haley X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=26355ad65be9f252c645fd5e0a7e414e67760aa1;ds=sidebyside 2005-04-19 Andrew Haley PR java/21022 * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before looking at a field's bitpos. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98412 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e1b7265e6f2..fdbb23c2160 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-04-19 Andrew Haley + + PR java/21022 + * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before + looking at a field's bitpos. + 2005-04-19 Kaveh R. Ghazi * system.h (fopen, fdopen, freopen): Define these to the unlocked diff --git a/gcc/dbxout.c b/gcc/dbxout.c index c645edbeec2..f2f5eb8d9e9 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)