re PR debug/43540 (ICE: vector VEC(dw_cfi_ref,heap) grow domain error, in output_cfis...
authorJakub Jelinek <jakub@redhat.com>
Fri, 26 Mar 2010 20:53:58 +0000 (21:53 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 26 Mar 2010 20:53:58 +0000 (21:53 +0100)
commit89245ef27b0846d47bceab52811ec6e529caa272
tree6dd175a70af2ad8f1a914a721882ba021f783b6f
parentc5e43cc45b27e39016aa1dead023dc5edbd34eb2
re PR debug/43540 (ICE: vector VEC(dw_cfi_ref,heap) grow domain error, in output_cfis at dwarf2out.c:3346 or OOM-killed)

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.

From-SVN: r157762
gcc/ChangeLog
gcc/dwarf2out.c