mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-15 22:21:53 +08:00
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:
parent
bac06cd3c4
commit
ae0e598210
@ -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.
|
||||
|
@ -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 ();
|
||||
}
|
||||
}
|
||||
|
14
gcc/testsuite/g++.dg/debug/anonunion1.C
Normal file
14
gcc/testsuite/g++.dg/debug/anonunion1.C
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user