[PATCH] Fix debug info for expr and jump stmt

Dehao Chen dehao@google.com
Tue Oct 30 17:55:00 GMT 2012


> gcc/ChangeLog:
> 2012-10-25  Dehao Chen  <dehao@google.com>
>
>         * tree-eh.c (do_return_redirection): Set location for jump statement.
>         (do_goto_redirection): Likewise.
>         (frob_into_branch_around): Likewise.
>         (lower_try_finally_nofallthru): Likewise.
>         (lower_try_finally_copy): Likewise.
>         (lower_try_finally_switch): Likewise.
>         * expr.c (store_expr): Use current insn location instead of expr
>         location.
>         (expand_expr_real): Likewise.
>         (expand_expr_real_1): Likewise.
>
> gcc/testsuite/ChangeLog:
> 2012-10-25  Dehao Chen  <dehao@google.com>
>
>         * g++.dg/debug/dwarf2/block.C: New testcase.

This patch bootstrapped and passed gcc regression tests.

Okay for trunk?

Thanks,
Dehao



More information about the Gcc-patches mailing list