dbxout.c (dbxout_type_fields): Don't segfault on fields with incomplete types.

* dbxout.c (dbxout_type_fields): Don't segfault on fields with
	incomplete types.

From-SVN: r34453
This commit is contained in:
Jakub Jelinek 2000-06-08 16:33:04 +02:00 committed by Jakub Jelinek
parent 89d7f003d3
commit 06ebf12756
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-06-08 Jakub Jelinek <jakub@redhat.com>
* dbxout.c (dbxout_type_fields): Don't segfault on fields with
incomplete types.
2000-06-08 Nathan Sidwell <nathan@codesourcery.com>
* frame.c (end_fde_sort): Remove extraneous erratic array test.

View File

@ -634,6 +634,7 @@ dbxout_type_fields (type)
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))