OSDN Git Service

Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception.
[pf3gnuchains/gcc-fork.git] / gcc / config / xtensa / unwind-dw2-xtensa.h
1 /* DWARF2 frame unwind data structure for Xtensa.
2    Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2007, 2008,
3    2009  Free Software Foundation, Inc.
4
5    This file is part of GCC.
6
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 3, or (at your option)
10    any later version.
11
12    GCC is distributed in the hope that it will be useful, but WITHOUT
13    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
15    License for more details.
16
17    Under Section 7 of GPL version 3, you are granted additional
18    permissions described in the GCC Runtime Library Exception, version
19    3.1, as published by the Free Software Foundation.
20
21    You should have received a copy of the GNU General Public License and
22    a copy of the GCC Runtime Library Exception along with this program;
23    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
24    <http://www.gnu.org/licenses/>.  */
25
26 /* A target can override (perhaps for backward compatibility) how
27    many dwarf2 columns are unwound.  */
28 #ifndef DWARF_FRAME_REGISTERS
29 #define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER
30 #endif
31
32 /* Xtensa's variable-size register window save areas can be unwound without
33    any unwind info.  This is a stripped down version of the standard DWARF
34    _Unwind_FrameState.  */
35 typedef struct
36 {
37   /* The information we care about from the CIE/FDE.  */
38   _Unwind_Personality_Fn personality;
39   _Unwind_Word retaddr_column;
40   unsigned char fde_encoding;
41   unsigned char lsda_encoding;
42   unsigned char saw_z;
43   unsigned char signal_frame;
44   void *eh_ptr;
45
46   /* Saved registers for a signal frame.  */
47   _Unwind_Word *signal_regs;
48   _Unwind_Word signal_ra;
49 } _Unwind_FrameState;
50