From ba5f0fda8626f08b75117e8361a18497b4e0a1c4 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Thu, 26 Oct 2006 00:16:50 +0000 Subject: [PATCH] * dw2gencfi.c (cfi_add_CFA_offset): Assert DWARF2_CIE_DATA_ALIGNMENT is non-zero. --- gas/ChangeLog | 5 +++++ gas/dw2gencfi.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index bb58516c373..edfdd6658b6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2006-10-26 Ben Elliston + + * dw2gencfi.c (cfi_add_CFA_offset): + Assert DWARF2_CIE_DATA_ALIGNMENT is non-zero. + 2006-10-25 Trevor Smigiel Yukishige Shibata Nobuhisa Fujinami diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c index bfa5d5cf45a..4732dbb3e01 100644 --- a/gas/dw2gencfi.c +++ b/gas/dw2gencfi.c @@ -252,6 +252,7 @@ cfi_add_CFA_offset (unsigned regno, offsetT offset) { unsigned int abs_data_align; + assert (DWARF2_CIE_DATA_ALIGNMENT != 0); cfi_add_CFA_insn_reg_offset (DW_CFA_offset, regno, offset); abs_data_align = (DWARF2_CIE_DATA_ALIGNMENT < 0 -- 2.30.2