* 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
+2010-03-26 Jakub Jelinek <jakub@redhat.com>
+
+ 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 <ubizjak@gmail.com>
PR target/42113
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