re PR debug/80321 (infinite recursion with inlining of nested function and debug...
authorJakub Jelinek <jakub@gcc.gnu.org>
Thu, 13 Apr 2017 11:05:09 +0000 (13:05 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 13 Apr 2017 11:05:09 +0000 (13:05 +0200)
commit031fbdb9c9754bf028dffafa43508d3525428327
tree38e799865db0b59b04bdcba32e7ec66bb0463b8c
parentfb81a61b15689be318482bdecb8bbbb2017523ed
re PR debug/80321 (infinite recursion with inlining of nested function and debug info)

PR debug/80321
* dwarf2out.c (decls_for_scope): Ignore declarations of
current_function_decl in BLOCK_NONLOCALIZED_VARS.

* gcc.dg/debug/pr80321.c: New test.

2017-04-13  Eric Botcazou  <ebotcazou@adacore.com>

* gnat.dg/debug10.adb: New test.
* gnat.dg/debug10_pkg.ads: New helper.

From-SVN: r246900
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/pr80321.c [new file with mode: 0644]
gcc/testsuite/gnat.dg/debug10.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/debug10_pkg.ads [new file with mode: 0644]