aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2004-12-16 08:53:43 +0000
committerJan Beulich <jbeulich@novell.com>2004-12-16 08:53:43 +0000
commitdcb45a0623c00ed8928d92efa891e623fc41dfbe (patch)
treec8ce1e737d970a42063239495137107f98da6579 /gas
parent120398a2fc55d3a2bc0f2827854eca71167cfc1e (diff)
downloadgdb-dcb45a0623c00ed8928d92efa891e623fc41dfbe.zip
gdb-dcb45a0623c00ed8928d92efa891e623fc41dfbe.tar.gz
gdb-dcb45a0623c00ed8928d92efa891e623fc41dfbe.tar.bz2
gas/
2004-12-15 Jan Beulich <jbeulich@novell.com> * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf generation to emit a factored offset.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/dw2gencfi.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index ec03c7a..851e4d4 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2004-12-15 Jan Beulich <jbeulich@novell.com>
+
+ * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation
+ to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf
+ generation to emit a factored offset.
+
2004-12-10 Ian Lance Taylor <ian@wasabisystems.com>
* config/tc-mips.c (macro) [M_LA_AB]: Give an error for a offset
diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c
index 3bfd14f..687815c 100644
--- a/gas/dw2gencfi.c
+++ b/gas/dw2gencfi.c
@@ -728,7 +728,7 @@ output_cfi_insn (struct cfi_insn_data *insn)
{
out_one (DW_CFA_def_cfa_sf);
out_uleb128 (insn->u.ri.reg);
- out_uleb128 (offset);
+ out_sleb128 (offset / DWARF2_CIE_DATA_ALIGNMENT);
}
else
{
@@ -750,7 +750,7 @@ output_cfi_insn (struct cfi_insn_data *insn)
if (offset < 0)
{
out_one (DW_CFA_def_cfa_offset_sf);
- out_sleb128 (offset);
+ out_sleb128 (offset / DWARF2_CIE_DATA_ALIGNMENT);
}
else
{