aboutsummaryrefslogtreecommitdiff
path: root/gcc/frame.h
diff options
context:
space:
mode:
authorMartin v. Loewis <martin@loewis.home.cs.tu-berlin.de>1999-12-29 20:44:13 -0700
committerJeff Law <law@gcc.gnu.org>1999-12-29 20:44:13 -0700
commit3073d01c3d1c3b759800a3fc2f61b92b02e8688b (patch)
treeeefe171f502d384bf2c0b7cd9b7fbfe932b3f202 /gcc/frame.h
parent87ad679bfb5aecb457aab8e7abf6030b82a020d6 (diff)
downloadgcc-3073d01c3d1c3b759800a3fc2f61b92b02e8688b.zip
gcc-3073d01c3d1c3b759800a3fc2f61b92b02e8688b.tar.gz
gcc-3073d01c3d1c3b759800a3fc2f61b92b02e8688b.tar.bz2
Restore i386 binary compatibility in Dwarf EH info.
* config/i386/i386.h (DWARF_FRAME_REGISTERS): Define as 17, the old value of FIRST_PSEUDO_REGISTER. * frame.h (DWARF_FRAME_REGISTERS): Default to FIRST_PSEUDO_REGISTER. (struct frame_state): Use DWARF_FRAME_REGISTERS. * dwarfout.c (output_reg_number): Ditto. * dwarf2out.c (reg_number, expand_builtin_init_dwarf_reg_sizes): Ditto. (DWARF_FRAME_RETURN_COLUMN): Default to DWARF_FRAME_REGISTERS. From-SVN: r31127
Diffstat (limited to 'gcc/frame.h')
-rw-r--r--gcc/frame.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/frame.h b/gcc/frame.h
index 985416c..330277c 100644
--- a/gcc/frame.h
+++ b/gcc/frame.h
@@ -1,6 +1,6 @@
/* Header file for unwinding stack frames for exception handling. */
/* Compile this one with gcc. */
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
Contributed by Jason Merrill <jason@cygnus.com>.
This file is part of GNU CC.
@@ -21,16 +21,20 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#ifndef DWARF_FRAME_REGISTERS
+#define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER
+#endif
+
typedef struct frame_state
{
void *cfa;
void *eh_ptr;
long cfa_offset;
long args_size;
- long reg_or_offset[FIRST_PSEUDO_REGISTER+1];
+ long reg_or_offset[DWARF_FRAME_REGISTERS+1];
unsigned short cfa_reg;
unsigned short retaddr_column;
- char saved[FIRST_PSEUDO_REGISTER+1];
+ char saved[DWARF_FRAME_REGISTERS+1];
} frame_state;
/* Values for 'saved' above. */