From: Tristan Gingold Date: Thu, 15 Mar 2012 08:44:42 +0000 (+0000) Subject: dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to use DW_OP_call_frame_cfa. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b763dcaaec9267f0b46019a9f4d83bf37e616385;p=gcc.git dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to use DW_OP_call_frame_cfa. 2012-03-15 Tristan Gingold * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to use DW_OP_call_frame_cfa. From-SVN: r185411 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5999104d6cc..3d5ecf7e38d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-03-15 Tristan Gingold + + * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to + use DW_OP_call_frame_cfa. + 2012-03-14 H.J. Lu PR target/50797 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index b3dcf9c2f02..264edd7ceac 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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 code that determines the CFA position at various points in the 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); add_AT_loc (subr_die, DW_AT_frame_base, op);