xref: /netbsd-src/external/gpl3/gcc/dist/libgcc/unwind-compat.h (revision b1e838363e3c6fc78a55519254d99869742dd33c)
148fb7bfaSmrg /* Backward compatibility unwind routines.
2*b1e83836Smrg    Copyright (C) 2004-2022 Free Software Foundation, Inc.
348fb7bfaSmrg 
448fb7bfaSmrg    This file is part of GCC.
548fb7bfaSmrg 
648fb7bfaSmrg    GCC is free software; you can redistribute it and/or modify it
748fb7bfaSmrg    under the terms of the GNU General Public License as published by
848fb7bfaSmrg    the Free Software Foundation; either version 3, or (at your option)
948fb7bfaSmrg    any later version.
1048fb7bfaSmrg 
1148fb7bfaSmrg    GCC is distributed in the hope that it will be useful, but WITHOUT
1248fb7bfaSmrg    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1348fb7bfaSmrg    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
1448fb7bfaSmrg    License for more details.
1548fb7bfaSmrg 
1648fb7bfaSmrg    Under Section 7 of GPL version 3, you are granted additional
1748fb7bfaSmrg    permissions described in the GCC Runtime Library Exception, version
1848fb7bfaSmrg    3.1, as published by the Free Software Foundation.
1948fb7bfaSmrg 
2048fb7bfaSmrg    You should have received a copy of the GNU General Public License and
2148fb7bfaSmrg    a copy of the GCC Runtime Library Exception along with this program;
2248fb7bfaSmrg    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
2348fb7bfaSmrg    <http://www.gnu.org/licenses/>.  */
2448fb7bfaSmrg 
2548fb7bfaSmrg #define symver(name, version) \
2648fb7bfaSmrg   __asm__ (".symver " #name"," #name "@" #version)
2748fb7bfaSmrg 
2848fb7bfaSmrg #define alias(name) \
2948fb7bfaSmrg   __typeof(name) __libunwind##name __attribute__ ((alias (#name)))
30