re PR debug/9039 (ICE, anonymous union, gen_decl_die, dwarf2out.c:11974)

PR debug/9039
        * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.

From-SVN: r64412
This commit is contained in:
Jason Merrill 2003-03-15 12:41:35 -05:00 committed by Jason Merrill
parent bac06cd3c4
commit ae0e598210
3 changed files with 20 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2003-03-15 Jason Merrill <jason@redhat.com>
PR debug/9039
* dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
PR debug/6387
* dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
function DIEs at toplevel.

View File

@ -12194,6 +12194,9 @@ gen_decl_die (decl, context_die)
break;
default:
if ((int)TREE_CODE (decl) > NUM_TREE_CODES)
/* Probably some frontend-internal decl. Assume we don't care. */
break;
abort ();
}
}

View File

@ -0,0 +1,14 @@
// PR debug/9039
// Verify that the debugging backends don't get confused by ALIAS_DECLs.
int foo()
{
union
{
int z;
unsigned int w;
};
w = 0;
return 0;
}