aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2002-03-12 09:30:42 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2002-03-12 09:30:42 +0000
commit1e16b528ebb43965ad8cd0771e3080efe713f7d2 (patch)
tree214fb5c974ee47fc8983167d00c2a59885d8b94c /gas
parent3daeddf6b0fc94547805fce70c7a740a7b1a8a1c (diff)
downloadgdb-1e16b528ebb43965ad8cd0771e3080efe713f7d2.zip
gdb-1e16b528ebb43965ad8cd0771e3080efe713f7d2.tar.gz
gdb-1e16b528ebb43965ad8cd0771e3080efe713f7d2.tar.bz2
* config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
body record so that an error is given for misplaced .save pseudo-ops.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-ia64.c6
2 files changed, 11 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 3b83366..3c8622c 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2002-03-12 Andreas Schwab <schwab@suse.de>
+
+ * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
+ body record so that an error is given for misplaced .save
+ pseudo-ops.
+
2002-03-09 Alan Modra <amodra@bigpond.net.au>
* config/tc-i386.h (REX_OPCODE): Define.
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c
index 88905b8..fbb166f 100644
--- a/gas/config/tc-ia64.c
+++ b/gas/config/tc-ia64.c
@@ -2709,7 +2709,11 @@ fixup_unw_records (list)
size = (slot_index (last_addr, last_frag, first_addr, first_frag)
+ dir_len);
rlen = ptr->r.record.r.rlen = size;
- region = ptr;
+ if (ptr->r.type == body)
+ /* End of region. */
+ region = 0;
+ else
+ region = ptr;
break;
}
case epilogue: