* libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Jan 2000 22:33:30 +0000 (22:33 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Jan 2000 22:33:30 +0000 (22:33 +0000)
        (throw_helper): Iterate over DWARF_FRAME_REGISTERS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31576 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/libgcc2.c

index fc63569..e8b5574 100644 (file)
@@ -1,5 +1,10 @@
 2000-01-23  Richard Henderson  <rth@cygnus.com>
 
+       * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
+       (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
+
+2000-01-23  Richard Henderson  <rth@cygnus.com>
+
        * i386.c (dbx_register_map, svr4_dbx_register_map): New.
        * i386.h (DBX_REGISTER_NUMBER): Use them.
        * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
index 8a1b703..5ccd679 100644 (file)
@@ -3241,7 +3241,7 @@ __get_eh_info (void)
 \f
 #ifdef DWARF2_UNWIND_INFO
 static int dwarf_reg_size_table_initialized = 0;
-static char dwarf_reg_size_table[FIRST_PSEUDO_REGISTER];
+static char dwarf_reg_size_table[DWARF_FRAME_REGISTERS];
 
 static void
 init_reg_size_table (void)
@@ -3949,7 +3949,7 @@ throw_helper (struct eh_context *eh, void *pc, frame_state *my_udata,
          udata = next_stack_level (pc, udata, sub_udata);
          sub_udata = p;
 
-         for (i = 0; i < FIRST_PSEUDO_REGISTER; ++i)
+         for (i = 0; i < DWARF_FRAME_REGISTERS; ++i)
            if (i != udata->retaddr_column && udata->saved[i])
              {
                /* If you modify the saved value of the return address