]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/config/ia64/unwind-ia64.h
Update copyright years.
[thirdparty/gcc.git] / libgcc / config / ia64 / unwind-ia64.h
CommitLineData
a945c346 1/* Copyright (C) 1999-2024 Free Software Foundation, Inc.
fee0225a
RH
2 Contributed by Andrew MacLeod <amacleod@cygnus.com>
3 Andrew Haley <aph@cygnus.com>
4
46549c20
MK
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free
9Software Foundation; either version 3, or (at your option) any later
10version.
11
12GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or
14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15for more details.
16
17Under Section 7 of GPL version 3, you are granted additional
18permissions described in the GCC Runtime Library Exception, version
193.1, as published by the Free Software Foundation.
20
21You should have received a copy of the GNU General Public License and
22a copy of the GCC Runtime Library Exception along with this program;
23see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24<http://www.gnu.org/licenses/>. */
fee0225a 25
9e916de7
TG
26#ifdef __VMS__
27/* On VMS, long is a 32 bit type. */
28typedef unsigned long long unw_word;
29typedef long long unw_sword;
30#else
31typedef unsigned long unw_word;
32typedef long unw_sword;
33#endif
34
2a1ee410 35struct unw_table_entry
fee0225a 36{
9e916de7
TG
37 unw_word start_offset;
38 unw_word end_offset;
39 unw_word info_offset;
2a1ee410 40};
fee0225a 41
b874a90d
DR
42/* Accessors to fields of an unwind info block header. In this common file to
43 be visible from all the units involved in a target implementation. */
44
45#ifndef __USING_SJLJ_EXCEPTIONS__
46#define UNW_VER(x) ((x) >> 48)
47#define UNW_FLAG_MASK 0x0000ffff00000000
48#define UNW_FLAG_OSMASK 0x0000f00000000000
49#define UNW_FLAG_EHANDLER(x) ((x) & 0x0000000100000000L)
50#define UNW_FLAG_UHANDLER(x) ((x) & 0x0000000200000000L)
51#define UNW_LENGTH(x) ((x) & 0x00000000ffffffffL)
52#endif
53
2a1ee410 54extern struct unw_table_entry *
9e916de7
TG
55_Unwind_FindTableEntry (void *pc, unw_word *segment_base,
56 unw_word *gp, struct unw_table_entry *ent)
780f9446 57 __attribute__ ((__visibility__ ("hidden")));