Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / config / xtensa / unwind-dw2-xtensa.h
blobf88f7f3a84aba7908445ab41597a724d88b483da
1 /* DWARF2 frame unwind data structure for Xtensa.
2 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2007, 2008
3 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
12 In addition to the permissions in the GNU General Public License, the
13 Free Software Foundation gives you unlimited permission to link the
14 compiled version of this file into combinations with other programs,
15 and to distribute those combinations without any restriction coming
16 from the use of this file. (The General Public License restrictions
17 do apply in other respects; for example, they cover modification of
18 the file, and distribution when not linked into a combined
19 executable.)
21 GCC is distributed in the hope that it will be useful, but WITHOUT
22 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
24 License for more details.
26 You should have received a copy of the GNU General Public License
27 along with GCC; see the file COPYING. If not, write to the Free
28 Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
29 02110-1301, USA. */
31 /* A target can override (perhaps for backward compatibility) how
32 many dwarf2 columns are unwound. */
33 #ifndef DWARF_FRAME_REGISTERS
34 #define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER
35 #endif
37 /* Xtensa's variable-size register window save areas can be unwound without
38 any unwind info. This is a stripped down version of the standard DWARF
39 _Unwind_FrameState. */
40 typedef struct
42 /* The information we care about from the CIE/FDE. */
43 _Unwind_Personality_Fn personality;
44 _Unwind_Word retaddr_column;
45 unsigned char fde_encoding;
46 unsigned char lsda_encoding;
47 unsigned char saw_z;
48 unsigned char signal_frame;
49 void *eh_ptr;
51 /* Saved registers for a signal frame. */
52 _Unwind_Word *signal_regs;
53 _Unwind_Word signal_ra;
54 } _Unwind_FrameState;