summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgingold <gingold@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-15 08:44:42 +0000
committergingold <gingold@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-15 08:44:42 +0000
commit9e8ac19d1b1757b08e29da89bf5fdc3f77be19ed (patch)
tree0af73ceb5e835961f4e20383d0cc27a142e4880a
parentad3ac5aa76f40fc0af0ee32718983f80cd6051e2 (diff)
downloadppe42-gcc-9e8ac19d1b1757b08e29da89bf5fdc3f77be19ed.tar.gz
ppe42-gcc-9e8ac19d1b1757b08e29da89bf5fdc3f77be19ed.zip
2012-03-15 Tristan Gingold <gingold@adacore.com>
* dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to use DW_OP_call_frame_cfa. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185411 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/dwarf2out.c2
2 files changed, 6 insertions, 1 deletions
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 <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>
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);
OpenPOWER on IntegriCloud