diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-06-09 15:12:45 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2009-06-09 15:12:45 +0000 |
commit | 32ae0794a29953d605d5b2562df0579b149e66c6 (patch) | |
tree | 8559247f22a647b83a498f9c886ef0272631ee0b /gas/dw2gencfi.c | |
parent | 9a65769b6fd1b09a75c03d9d3f4f1da0c9bb0289 (diff) | |
download | binutils-redhat-32ae0794a29953d605d5b2562df0579b149e66c6.tar.gz |
* dw2gencfi.c (output_cfi_insn): Initialize fragment before rs_cfa
to DW_CFA_advance_loc4.
* gas/cfi/cfi-common-7.d: New test.
* gas/cfi/cfi-common-7.s: New.
* gas/cfi/cfi.exp: Add cfi-common-7 test.
Diffstat (limited to 'gas/dw2gencfi.c')
-rw-r--r-- | gas/dw2gencfi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c index a9b58d4fbb..639362f292 100644 --- a/gas/dw2gencfi.c +++ b/gas/dw2gencfi.c @@ -1,5 +1,6 @@ /* dw2gencfi.c - Support for generating Dwarf2 CFI information. - Copyright 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 + Free Software Foundation, Inc. Contributed by Michal Ludvig <mludvig@suse.cz> This file is part of GAS, the GNU Assembler. @@ -1001,7 +1002,7 @@ output_cfi_insn (struct cfi_insn_data *insn) is already allocated to the frag. This comes from the way that it scans the .eh_frame section looking first for the .byte DW_CFA_advance_loc4. */ - frag_more (1); + *frag_more (1) = DW_CFA_advance_loc4; frag_var (rs_cfa, 4, 0, DWARF2_LINE_MIN_INSN_LENGTH << 3, make_expr_symbol (&exp), frag_now_fix () - 1, |