OSDN Git Service

* dbxout.c (dbxout_type_fields): Don't segfault on fields with
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jun 2000 14:33:04 +0000 (14:33 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jun 2000 14:33:04 +0000 (14:33 +0000)
incomplete types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34453 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dbxout.c

index 51e6599..b47a92a 100644 (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.
index c34d1a1..f0b9860 100644 (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))