re PR fortran/50327 (Front-end optimization generates wrong code for BLAS's srotmg)
[official-gcc.git] / libgcc / config / ia64 / unwind-ia64.h
blobb98f048fdb500c2395cd387a610354c8385d0c5f
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>
5 This file is part of GCC.
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.
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.
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/>. */
21 struct unw_table_entry
23 unsigned long start_offset;
24 unsigned long end_offset;
25 unsigned long info_offset;
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. */
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
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")));