OSDN Git Service

b98f048fdb500c2395cd387a610354c8385d0c5f
[pf3gnuchains/gcc-fork.git] / libgcc / config / ia64 / unwind-ia64.h
1 /* Copyright (C) 1999, 2000, 2001, 2007, 2009 Free Software Foundation, Inc.
2    Contributed by Andrew MacLeod  <amacleod@cygnus.com>
3                   Andrew Haley  <aph@cygnus.com>
4
5    This file is part of GCC.
6
7    GCC is free software; you can redistribute it and/or modify
8    it 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,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with GCC; see the file COPYING3.  If not see
19    <http://www.gnu.org/licenses/>.  */
20
21 struct unw_table_entry
22 {
23   unsigned long start_offset;
24   unsigned long end_offset;
25   unsigned long info_offset;
26 };
27
28 /* Accessors to fields of an unwind info block header.  In this common file to
29    be visible from all the units involved in a target implementation.  */
30    
31 #ifndef __USING_SJLJ_EXCEPTIONS__
32 #define UNW_VER(x)              ((x) >> 48)
33 #define UNW_FLAG_MASK           0x0000ffff00000000
34 #define UNW_FLAG_OSMASK         0x0000f00000000000
35 #define UNW_FLAG_EHANDLER(x)    ((x) & 0x0000000100000000L)
36 #define UNW_FLAG_UHANDLER(x)    ((x) & 0x0000000200000000L)
37 #define UNW_LENGTH(x)           ((x) & 0x00000000ffffffffL)
38 #endif
39
40 extern struct unw_table_entry *
41 _Unwind_FindTableEntry (void *pc, unsigned long *segment_base,
42                         unsigned long *gp, struct unw_table_entry *ent)
43                         __attribute__ ((__visibility__ ("hidden")));