re PR debug/66535 (segfault in gen_subprogram_die after debug-early merge)
authorAldy Hernandez <aldyh@redhat.com>
Mon, 15 Jun 2015 16:34:53 +0000 (16:34 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Mon, 15 Jun 2015 16:34:53 +0000 (16:34 +0000)
commit8e6dce3de77bcb858920d02e0f4e00159658d555
treebe9d1723f1337dc4aa9bdc5c56ce111f2bb5937a
parentfb5b53524691063bc8dd9014b5f1b05ce3d1c0aa
re PR debug/66535 (segfault in gen_subprogram_die after debug-early merge)

PR debug/66535
* dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
there is no parent.

From-SVN: r224486
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/gnat.dg/debug4.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/debug4_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/debug4_pkg.ads [new file with mode: 0644]