Commit 1270a9b3 by Laurynas Biveinis Committed by Richard Henderson

sdbout.c (sdbout_one_type): Skip types with indeterminate size.

        * sdbout.c (sdbout_one_type): Skip types with indeterminate size.
        (sdbout_field_types): Likwise.  Fix use of host_integerp.

From-SVN: r39339
parent eb59e547
2000-11-29 Laurynas Biveinis <lauras@softhome.net>
* sdbout.c (sdbout_one_type): Skip types with indeterminate size.
(sdbout_field_types): Likwise. Fix use of host_integerp.
2001-01-29 Thomas Pfaff <tpfaff@gmx.net> 2001-01-29 Thomas Pfaff <tpfaff@gmx.net>
* mingw32.h: Override STARTFILE_SPEC and LINK_SPEC declared in * mingw32.h: Override STARTFILE_SPEC and LINK_SPEC declared in
......
...@@ -1053,12 +1053,13 @@ sdbout_field_types (type) ...@@ -1053,12 +1053,13 @@ sdbout_field_types (type)
tree tail; tree tail;
for (tail = TYPE_FIELDS (type); tail; tail = TREE_CHAIN (tail)) for (tail = TYPE_FIELDS (type); tail; tail = TREE_CHAIN (tail))
/* This condition should match the one for emitting the actual members /* This condition should match the one for emitting the actual
below. */ members below. */
if (TREE_CODE (tail) == FIELD_DECL if (TREE_CODE (tail) == FIELD_DECL
&& DECL_NAME (tail) != 0 && DECL_NAME (tail)
&& ! host_integerp (DECL_SIZE (tail), 1) && DECL_SIZE (tail)
&& ! host_integerp (bit_position (tail), 0)) && host_integerp (DECL_SIZE (tail), 1)
&& host_integerp (bit_position (tail), 0))
{ {
if (POINTER_TYPE_P (TREE_TYPE (tail))) if (POINTER_TYPE_P (TREE_TYPE (tail)))
sdbout_one_type (TREE_TYPE (TREE_TYPE (tail))); sdbout_one_type (TREE_TYPE (TREE_TYPE (tail)));
...@@ -1237,7 +1238,8 @@ sdbout_one_type (type) ...@@ -1237,7 +1238,8 @@ sdbout_one_type (type)
Also omit fields with variable size or position. Also omit fields with variable size or position.
Also omit non FIELD_DECL nodes that GNU C++ may put here. */ Also omit non FIELD_DECL nodes that GNU C++ may put here. */
if (TREE_CODE (tem) == FIELD_DECL if (TREE_CODE (tem) == FIELD_DECL
&& DECL_NAME (tem) != 0 && DECL_NAME (tem)
&& DECL_SIZE (tem)
&& host_integerp (DECL_SIZE (tem), 1) && host_integerp (DECL_SIZE (tem), 1)
&& host_integerp (bit_position (tem), 0)) && host_integerp (bit_position (tem), 0))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment