From 726f569d22caf8c572aa82983bb988b1f5773066 Mon Sep 17 00:00:00 2001 From: jakub Date: Fri, 26 Mar 2010 20:53:58 +0000 Subject: [PATCH] PR debug/43540 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum into first operand and location into second. (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of dw_cfi_oprnd_loc for DW_CFA_expression. (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression. (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression assume first argument is regnum and second argument is location. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157762 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 11 +++++++++++ gcc/dwarf2out.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5b7f01129a2..6fa2dc3d3d1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2010-03-26 Jakub Jelinek + + PR debug/43540 + * dwarf2out.c (reg_save): For DW_CFA_expression put regnum + into first operand and location into second. + (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of + dw_cfi_oprnd_loc for DW_CFA_expression. + (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression. + (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression + assume first argument is regnum and second argument is location. + 2010-03-26 Uros Bizjak PR target/42113 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index e68065b2c1e..49779e7686f 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -5241,7 +5241,7 @@ output_cfa_loc_raw (dw_cfi_ref cfi) if (cfi->dw_cfi_opc == DW_CFA_expression) { - fprintf (asm_out_file, "%#x,", cfi->dw_cfi_oprnd1.dw_cfi_reg_num); + fprintf (asm_out_file, "0x%x,", cfi->dw_cfi_oprnd1.dw_cfi_reg_num); loc = cfi->dw_cfi_oprnd2.dw_cfi_loc; } else -- 2.11.0