re PR rtl-optimization/36419 (Wrong unwind info with -Os -fasynchronous-unwind-tables)
authorJakub Jelinek <jakub@redhat.com>
Thu, 31 Jul 2008 18:08:36 +0000 (20:08 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 31 Jul 2008 18:08:36 +0000 (20:08 +0200)
commit88e2c8107b5faaa2b2bee01ee6e6f51522b4e5dd
tree9ac1473b1819c6c87fa2981649c1d918ce6b312a
parent41b059f3d869b456bec3eee7e3eb0ed5ba0a9300
re PR rtl-optimization/36419 (Wrong unwind info with -Os -fasynchronous-unwind-tables)

PR rtl-optimization/36419
* dwarf2out.c (barrier_args_size): New variable.
(compute_barrier_args_size, compute_barrier_args_size_1): New
functions.
(dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
if not called yet in the current function, use barrier_args_size
array to find the new args_size value.
(dwarf2out_frame_debug): Free and clear barrier_args_size.

* g++.dg/eh/async-unwind2.C: New test.

From-SVN: r138427
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/eh/async-unwind2.C [new file with mode: 0644]