1192873Sweongyo/* Backward compatibility unwind routines.
2192873Sweongyo   Copyright (C) 2004
3192873Sweongyo   Free Software Foundation, Inc.
4192873Sweongyo
5192873Sweongyo   This file is part of GCC.
6192873Sweongyo
7192873Sweongyo   GCC is free software; you can redistribute it and/or modify it
8192873Sweongyo   under the terms of the GNU General Public License as published by
9192873Sweongyo   the Free Software Foundation; either version 2, or (at your option)
10192873Sweongyo   any later version.
11192873Sweongyo
12192873Sweongyo   In addition to the permissions in the GNU General Public License, the
13192873Sweongyo   Free Software Foundation gives you unlimited permission to link the
14192873Sweongyo   compiled version of this file into combinations with other programs,
15192873Sweongyo   and to distribute those combinations without any restriction coming
16192873Sweongyo   from the use of this file.  (The General Public License restrictions
17192873Sweongyo   do apply in other respects; for example, they cover modification of
18192873Sweongyo   the file, and distribution when not linked into a combined
19192873Sweongyo   executable.)
20192873Sweongyo
21192873Sweongyo   GCC is distributed in the hope that it will be useful, but WITHOUT
22192873Sweongyo   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23192873Sweongyo   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
24192873Sweongyo   License for more details.
25192873Sweongyo
26192873Sweongyo   You should have received a copy of the GNU General Public License
27192873Sweongyo   along with GCC; see the file COPYING.  If not, write to the Free
28192873Sweongyo   Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
29192873Sweongyo   02110-1301, USA.  */
30192873Sweongyo
31192873Sweongyo#define symver(name, version) \
32192873Sweongyo  __asm__ (".symver " #name"," #name "@" #version)
33192873Sweongyo
34192873Sweongyo#define alias(name) \
35192873Sweongyo  __typeof(name) __libunwind##name __attribute__ ((alias (#name)))
36192873Sweongyo