Commit b763dcaa by Tristan Gingold Committed by Tristan Gingold

dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to use DW_OP_call_frame_cfa.

2012-03-15  Tristan Gingold  <gingold@adacore.com>

        * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
        use DW_OP_call_frame_cfa.

From-SVN: r185411
parent f307415a
2012-03-15 Tristan Gingold <gingold@adacore.com>
* dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
use DW_OP_call_frame_cfa.
2012-03-14 H.J. Lu <hongjiu.lu@intel.com> 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
PR target/50797 PR target/50797
......
...@@ -17443,7 +17443,7 @@ gen_subprogram_die (tree decl, dw_die_ref context_die) ...@@ -17443,7 +17443,7 @@ gen_subprogram_die (tree decl, dw_die_ref context_die)
(3) We can at least reuse the code inspection and interpretation (3) We can at least reuse the code inspection and interpretation
code that determines the CFA position at various points in the code that determines the CFA position at various points in the
function. */ function. */
if (dwarf_version >= 3) if (dwarf_version >= 3 && targetm.debug_unwind_info () == UI_DWARF2)
{ {
dw_loc_descr_ref op = new_loc_descr (DW_OP_call_frame_cfa, 0, 0); dw_loc_descr_ref op = new_loc_descr (DW_OP_call_frame_cfa, 0, 0);
add_AT_loc (subr_die, DW_AT_frame_base, op); add_AT_loc (subr_die, DW_AT_frame_base, op);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment