Commit 50352c9c by Brendan Kehoe Committed by Brendan Kehoe

dwarf2out.c (field_byte_offset): As with dwarfout.c, size can be zero if there was an error.

    * dwarf2out.c (field_byte_offset): As with dwarfout.c, size can be
    zero if there was an error.

From-SVN: r30804
parent dcee55a2
1999-12-06 Brendan Kehoe <brendan@cygnus.com>
* dwarf2out.c (field_byte_offset): As with dwarfout.c, size can be
zero if there was an error.
1999-12-06 Jakub Jelinek <jakub@redhat.com>
* config/sparc/sparc.md (return_losum_di): Fix typo in asm
......
......@@ -6695,6 +6695,14 @@ field_byte_offset (decl)
bitpos_tree = DECL_FIELD_BITPOS (decl);
field_size_tree = DECL_SIZE (decl);
/* If there was an error, the size could be zero. */
if (! field_size_tree)
{
if (errorcount)
return 0;
abort ();
}
/* We cannot yet cope with fields whose positions are variable, so
for now, when we see such things, we simply return 0. Someday, we may
be able to handle such cases, but it will be damn difficult. */
......
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