re PR bootstrap/79255 (PGO bootstrap fails on x86_64/ppc64le building Ada)
authorJakub Jelinek <jakub@redhat.com>
Fri, 31 Mar 2017 18:40:35 +0000 (20:40 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 31 Mar 2017 18:40:35 +0000 (20:40 +0200)
commiteee3756de395ab6220f78b471a7cd877301455a2
tree2542ad7a6c94a0dcd240765a7c63e117419e2992
parent6f3af3562804db0ef656dcc02b1e192c8f7fc8cc
re PR bootstrap/79255 (PGO bootstrap fails on x86_64/ppc64le building Ada)

PR debug/79255
* dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
a FUNCTION_DECL, pass it as decl instead of origin to
process_scope_var.

* gcc.dg/pr79255.c: New test.

From-SVN: r246622
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr79255.c [new file with mode: 0644]