diff options
| author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-08 14:33:04 +0000 |
|---|---|---|
| committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-08 14:33:04 +0000 |
| commit | 6460676eeb73701c0b0f4e8b894b1a7dc6dff286 (patch) | |
| tree | b7030045abc96860dc5bc0e19c9634080e6354bf | |
| parent | d640ac76f398bdd41d5791c9c8079cd56bf9e9ff (diff) | |
| download | ppe42-gcc-6460676eeb73701c0b0f4e8b894b1a7dc6dff286.tar.gz ppe42-gcc-6460676eeb73701c0b0f4e8b894b1a7dc6dff286.zip | |
* dbxout.c (dbxout_type_fields): Don't segfault on fields with
incomplete types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34453 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/dbxout.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 51e6599575d..b47a92af027 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/dbxout.c b/gcc/dbxout.c index c34d1a1d541..f0b9860df07 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -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)) |

