* config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 12 Mar 2002 09:30:42 +0000 (09:30 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 12 Mar 2002 09:30:42 +0000 (09:30 +0000)
body record so that an error is given for misplaced .save
pseudo-ops.

gas/ChangeLog
gas/config/tc-ia64.c

index 3b83366b7ba89c7f7d84ffbf7c7054c81d7df43e..3c8622c2ec809fa08ce9d3433a29242a55ff6e36 100644 (file)
@@ -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.
index 88905b87ed0a273dd34b97a9b9a851fd66f695fc..fbb166f0fc0e2119d0820f7ce2577cf0f49a6038 100644 (file)
@@ -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: