Fix a typo in dwarf2out.c:resolve_args_picking_1
authorPierre-Marie de Rodat <derodat@adacore.com>
Tue, 3 May 2016 16:21:14 +0000 (16:21 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 3 May 2016 16:21:14 +0000 (16:21 +0000)
commit402e89f5986220a96898381cc32f7efe76bd092c
tree07ef90dcc688d65f7ea2112248f2fb748f8ee38c
parent67647f9229c2e88701861eeebde33598ad406bb2
Fix a typo in dwarf2out.c:resolve_args_picking_1

Under specific circumstances for Ada programs, such as in the testcase
this change adds, the DWARF back-end currently crashes because of
inconsistent internal state. This is due to a typo: a local variable is
called frame_offset_ but resolve_args_picking_1 wrongly modifies
emit-rtl.h's frame_offset instead.

This change fixes this typo.

gcc/
* dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
occurence with frame_offset_ ones.

gcc/testsuite/
* gnat.dg/debug5.adb: New testcase.

From-SVN: r235830
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/debug5.adb [new file with mode: 0644]