summaryrefslogtreecommitdiff
path: root/gas/dw2gencfi.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2004-09-09 13:32:46 +0000
committerAlan Modra <amodra@bigpond.net.au>2004-09-09 13:32:46 +0000
commit2be5c62f1549be4b0675b0e7f6829be68998b95c (patch)
tree69e6a6473a561dbc16fabb05e234884feb8a7c0c /gas/dw2gencfi.c
parent7df36887efb34c20022051de212d2d1f01ccd608 (diff)
downloadbinutils-redhat-2be5c62f1549be4b0675b0e7f6829be68998b95c.tar.gz
* dw2gencfi.c (select_cie_for_fde): When separating CIE out
from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
Diffstat (limited to 'gas/dw2gencfi.c')
-rw-r--r--gas/dw2gencfi.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c
index 05d7e3d60f..3937329e40 100644
--- a/gas/dw2gencfi.c
+++ b/gas/dw2gencfi.c
@@ -975,8 +975,12 @@ select_cie_for_fde (struct fde_entry *fde, struct cfi_insn_data **pfirst)
}
/* Success if we reached the end of the CIE list, and we've either
- run out of FDE entries or we've encountered an advance. */
- if (i == cie->last && (!j || j->insn == DW_CFA_advance_loc))
+ run out of FDE entries or we've encountered an advance or
+ escape. */
+ if (i == cie->last
+ && (!j
+ || j->insn == DW_CFA_advance_loc
+ || j->insn == CFI_escape))
{
*pfirst = j;
return cie;
@@ -992,7 +996,8 @@ select_cie_for_fde (struct fde_entry *fde, struct cfi_insn_data **pfirst)
cie->first = fde->data;
for (i = cie->first; i ; i = i->next)
- if (i->insn == DW_CFA_advance_loc)
+ if (i->insn == DW_CFA_advance_loc
+ || i->insn == CFI_escape)
break;
cie->last = i;