summaryrefslogtreecommitdiff
path: root/gcc/sdbout.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-30 01:26:25 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-30 01:26:25 +0000
commit9d7fa7f01bb31739269d9e88ca11bdbc6e6a01d2 (patch)
treeb536c1d141dc736729b2dea1eda6a82d877ada69 /gcc/sdbout.c
parent76c60ef317bd44579f63b12d437ba163b7b04541 (diff)
downloadgcc-9d7fa7f01bb31739269d9e88ca11bdbc6e6a01d2.tar.gz
* sdbout.c (sdbout_one_type): Skip types with indeterminate size.
(sdbout_field_types): Likwise. Fix use of host_integerp. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39339 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r--gcc/sdbout.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index 63472afcce4..944651f3ddd 100644
--- a/gcc/sdbout.c
+++ b/gcc/sdbout.c
@@ -1053,12 +1053,13 @@ sdbout_field_types (type)
tree tail;
for (tail = TYPE_FIELDS (type); tail; tail = TREE_CHAIN (tail))
- /* This condition should match the one for emitting the actual members
- below. */
+ /* This condition should match the one for emitting the actual
+ members below. */
if (TREE_CODE (tail) == FIELD_DECL
- && DECL_NAME (tail) != 0
- && ! host_integerp (DECL_SIZE (tail), 1)
- && ! host_integerp (bit_position (tail), 0))
+ && DECL_NAME (tail)
+ && DECL_SIZE (tail)
+ && host_integerp (DECL_SIZE (tail), 1)
+ && host_integerp (bit_position (tail), 0))
{
if (POINTER_TYPE_P (TREE_TYPE (tail)))
sdbout_one_type (TREE_TYPE (TREE_TYPE (tail)));
@@ -1237,7 +1238,8 @@ sdbout_one_type (type)
Also omit fields with variable size or position.
Also omit non FIELD_DECL nodes that GNU C++ may put here. */
if (TREE_CODE (tem) == FIELD_DECL
- && DECL_NAME (tem) != 0
+ && DECL_NAME (tem)
+ && DECL_SIZE (tem)
&& host_integerp (DECL_SIZE (tem), 1)
&& host_integerp (bit_position (tem), 0))
{