OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [unwind-compat.c] - Diff between revs 816 and 826

Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 826
/* Backward compatibility unwind routines.
/* Backward compatibility unwind routines.
   Copyright (C) 2004, 2005, 2006, 2009
   Copyright (C) 2004, 2005, 2006, 2009
   Free Software Foundation, Inc.
   Free Software Foundation, Inc.
 
 
   This file is part of GCC.
   This file is part of GCC.
 
 
   GCC is free software; you can redistribute it and/or modify it
   GCC is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published by
   under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 3, or (at your option)
   the Free Software Foundation; either version 3, or (at your option)
   any later version.
   any later version.
 
 
   GCC is distributed in the hope that it will be useful, but WITHOUT
   GCC is distributed in the hope that it will be useful, but WITHOUT
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
   License for more details.
   License for more details.
 
 
   Under Section 7 of GPL version 3, you are granted additional
   Under Section 7 of GPL version 3, you are granted additional
   permissions described in the GCC Runtime Library Exception, version
   permissions described in the GCC Runtime Library Exception, version
   3.1, as published by the Free Software Foundation.
   3.1, as published by the Free Software Foundation.
 
 
   You should have received a copy of the GNU General Public License and
   You should have received a copy of the GNU General Public License and
   a copy of the GCC Runtime Library Exception along with this program;
   a copy of the GCC Runtime Library Exception along with this program;
   see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   <http://www.gnu.org/licenses/>.  */
   <http://www.gnu.org/licenses/>.  */
 
 
#if defined (USE_GAS_SYMVER) && defined (USE_LIBUNWIND_EXCEPTIONS)
#if defined (USE_GAS_SYMVER) && defined (USE_LIBUNWIND_EXCEPTIONS)
#include "tconfig.h"
#include "tconfig.h"
#include "tsystem.h"
#include "tsystem.h"
#include "unwind.h"
#include "unwind.h"
#include "unwind-dw2-fde.h"
#include "unwind-dw2-fde.h"
#include "unwind-compat.h"
#include "unwind-compat.h"
 
 
extern _Unwind_Reason_Code __libunwind_Unwind_Backtrace
extern _Unwind_Reason_Code __libunwind_Unwind_Backtrace
  (_Unwind_Trace_Fn, void *);
  (_Unwind_Trace_Fn, void *);
 
 
_Unwind_Reason_Code LIBGCC2_UNWIND_ATTRIBUTE
_Unwind_Reason_Code LIBGCC2_UNWIND_ATTRIBUTE
_Unwind_Backtrace (_Unwind_Trace_Fn trace, void *trace_argument)
_Unwind_Backtrace (_Unwind_Trace_Fn trace, void *trace_argument)
{
{
  return __libunwind_Unwind_Backtrace (trace, trace_argument);
  return __libunwind_Unwind_Backtrace (trace, trace_argument);
}
}
symver (_Unwind_Backtrace, GCC_3.3);
symver (_Unwind_Backtrace, GCC_3.3);
 
 
extern void __libunwind_Unwind_DeleteException
extern void __libunwind_Unwind_DeleteException
  (struct _Unwind_Exception *);
  (struct _Unwind_Exception *);
 
 
void
void
_Unwind_DeleteException (struct _Unwind_Exception *exc)
_Unwind_DeleteException (struct _Unwind_Exception *exc)
{
{
  return __libunwind_Unwind_DeleteException (exc);
  return __libunwind_Unwind_DeleteException (exc);
}
}
symver (_Unwind_DeleteException, GCC_3.0);
symver (_Unwind_DeleteException, GCC_3.0);
 
 
extern void * __libunwind_Unwind_FindEnclosingFunction (void *);
extern void * __libunwind_Unwind_FindEnclosingFunction (void *);
 
 
void *
void *
_Unwind_FindEnclosingFunction (void *pc)
_Unwind_FindEnclosingFunction (void *pc)
{
{
  return __libunwind_Unwind_FindEnclosingFunction (pc);
  return __libunwind_Unwind_FindEnclosingFunction (pc);
}
}
symver (_Unwind_FindEnclosingFunction, GCC_3.3);
symver (_Unwind_FindEnclosingFunction, GCC_3.3);
 
 
extern _Unwind_Reason_Code __libunwind_Unwind_ForcedUnwind
extern _Unwind_Reason_Code __libunwind_Unwind_ForcedUnwind
  (struct _Unwind_Exception *, _Unwind_Stop_Fn, void *);
  (struct _Unwind_Exception *, _Unwind_Stop_Fn, void *);
 
 
_Unwind_Reason_Code LIBGCC2_UNWIND_ATTRIBUTE
_Unwind_Reason_Code LIBGCC2_UNWIND_ATTRIBUTE
_Unwind_ForcedUnwind (struct _Unwind_Exception *exc,
_Unwind_ForcedUnwind (struct _Unwind_Exception *exc,
                      _Unwind_Stop_Fn stop, void * stop_argument)
                      _Unwind_Stop_Fn stop, void * stop_argument)
{
{
  return __libunwind_Unwind_ForcedUnwind (exc, stop, stop_argument);
  return __libunwind_Unwind_ForcedUnwind (exc, stop, stop_argument);
}
}
symver (_Unwind_ForcedUnwind, GCC_3.0);
symver (_Unwind_ForcedUnwind, GCC_3.0);
 
 
extern _Unwind_Word __libunwind_Unwind_GetCFA
extern _Unwind_Word __libunwind_Unwind_GetCFA
  (struct _Unwind_Context *);
  (struct _Unwind_Context *);
 
 
_Unwind_Word
_Unwind_Word
_Unwind_GetCFA (struct _Unwind_Context *context)
_Unwind_GetCFA (struct _Unwind_Context *context)
{
{
  return __libunwind_Unwind_GetCFA (context);
  return __libunwind_Unwind_GetCFA (context);
}
}
symver (_Unwind_GetCFA, GCC_3.3);
symver (_Unwind_GetCFA, GCC_3.3);
 
 
#ifdef __ia64__
#ifdef __ia64__
extern _Unwind_Word __libunwind_Unwind_GetBSP
extern _Unwind_Word __libunwind_Unwind_GetBSP
  (struct _Unwind_Context *);
  (struct _Unwind_Context *);
 
 
_Unwind_Word
_Unwind_Word
_Unwind_GetBSP (struct _Unwind_Context * context)
_Unwind_GetBSP (struct _Unwind_Context * context)
{
{
  return __libunwind_Unwind_GetBSP (context);
  return __libunwind_Unwind_GetBSP (context);
}
}
symver (_Unwind_GetBSP, GCC_3.3.2);
symver (_Unwind_GetBSP, GCC_3.3.2);
#else
#else
extern _Unwind_Ptr __libunwind_Unwind_GetDataRelBase
extern _Unwind_Ptr __libunwind_Unwind_GetDataRelBase
  (struct _Unwind_Context *);
  (struct _Unwind_Context *);
 
 
_Unwind_Ptr
_Unwind_Ptr
_Unwind_GetDataRelBase (struct _Unwind_Context *context)
_Unwind_GetDataRelBase (struct _Unwind_Context *context)
{
{
  return __libunwind_Unwind_GetDataRelBase (context);
  return __libunwind_Unwind_GetDataRelBase (context);
}
}
symver (_Unwind_GetDataRelBase, GCC_3.0);
symver (_Unwind_GetDataRelBase, GCC_3.0);
 
 
extern _Unwind_Ptr __libunwind_Unwind_GetTextRelBase
extern _Unwind_Ptr __libunwind_Unwind_GetTextRelBase
  (struct _Unwind_Context *);
  (struct _Unwind_Context *);
 
 
_Unwind_Ptr
_Unwind_Ptr
_Unwind_GetTextRelBase (struct _Unwind_Context *context)
_Unwind_GetTextRelBase (struct _Unwind_Context *context)
{
{
  return __libunwind_Unwind_GetTextRelBase (context);
  return __libunwind_Unwind_GetTextRelBase (context);
}
}
symver (_Unwind_GetTextRelBase, GCC_3.0);
symver (_Unwind_GetTextRelBase, GCC_3.0);
#endif
#endif
 
 
extern _Unwind_Word __libunwind_Unwind_GetGR
extern _Unwind_Word __libunwind_Unwind_GetGR
  (struct _Unwind_Context *, int );
  (struct _Unwind_Context *, int );
 
 
_Unwind_Word
_Unwind_Word
_Unwind_GetGR (struct _Unwind_Context *context, int index)
_Unwind_GetGR (struct _Unwind_Context *context, int index)
{
{
  return __libunwind_Unwind_GetGR (context, index);
  return __libunwind_Unwind_GetGR (context, index);
}
}
symver (_Unwind_GetGR, GCC_3.0);
symver (_Unwind_GetGR, GCC_3.0);
 
 
extern _Unwind_Ptr __libunwind_Unwind_GetIP (struct _Unwind_Context *);
extern _Unwind_Ptr __libunwind_Unwind_GetIP (struct _Unwind_Context *);
 
 
_Unwind_Ptr
_Unwind_Ptr
_Unwind_GetIP (struct _Unwind_Context *context)
_Unwind_GetIP (struct _Unwind_Context *context)
{
{
  return __libunwind_Unwind_GetIP (context);
  return __libunwind_Unwind_GetIP (context);
}
}
symver (_Unwind_GetIP, GCC_3.0);
symver (_Unwind_GetIP, GCC_3.0);
 
 
_Unwind_Ptr
_Unwind_Ptr
_Unwind_GetIPInfo (struct _Unwind_Context *context, int *ip_before_insn)
_Unwind_GetIPInfo (struct _Unwind_Context *context, int *ip_before_insn)
{
{
  *ip_before_insn = 0;
  *ip_before_insn = 0;
  return __libunwind_Unwind_GetIP (context);
  return __libunwind_Unwind_GetIP (context);
}
}
 
 
extern void *__libunwind_Unwind_GetLanguageSpecificData
extern void *__libunwind_Unwind_GetLanguageSpecificData
  (struct _Unwind_Context *);
  (struct _Unwind_Context *);
 
 
void *
void *
_Unwind_GetLanguageSpecificData (struct _Unwind_Context *context)
_Unwind_GetLanguageSpecificData (struct _Unwind_Context *context)
{
{
  return __libunwind_Unwind_GetLanguageSpecificData (context);
  return __libunwind_Unwind_GetLanguageSpecificData (context);
}
}
symver (_Unwind_GetLanguageSpecificData, GCC_3.0);
symver (_Unwind_GetLanguageSpecificData, GCC_3.0);
 
 
extern _Unwind_Ptr __libunwind_Unwind_GetRegionStart
extern _Unwind_Ptr __libunwind_Unwind_GetRegionStart
  (struct _Unwind_Context *);
  (struct _Unwind_Context *);
 
 
_Unwind_Ptr
_Unwind_Ptr
_Unwind_GetRegionStart (struct _Unwind_Context *context)
_Unwind_GetRegionStart (struct _Unwind_Context *context)
{
{
  return __libunwind_Unwind_GetRegionStart (context);
  return __libunwind_Unwind_GetRegionStart (context);
}
}
symver (_Unwind_GetRegionStart, GCC_3.0);
symver (_Unwind_GetRegionStart, GCC_3.0);
 
 
extern _Unwind_Reason_Code __libunwind_Unwind_RaiseException
extern _Unwind_Reason_Code __libunwind_Unwind_RaiseException
  (struct _Unwind_Exception *);
  (struct _Unwind_Exception *);
 
 
_Unwind_Reason_Code LIBGCC2_UNWIND_ATTRIBUTE
_Unwind_Reason_Code LIBGCC2_UNWIND_ATTRIBUTE
_Unwind_RaiseException(struct _Unwind_Exception *exc)
_Unwind_RaiseException(struct _Unwind_Exception *exc)
{
{
  return __libunwind_Unwind_RaiseException (exc);
  return __libunwind_Unwind_RaiseException (exc);
}
}
symver (_Unwind_RaiseException, GCC_3.0);
symver (_Unwind_RaiseException, GCC_3.0);
 
 
extern void __libunwind_Unwind_Resume (struct _Unwind_Exception *);
extern void __libunwind_Unwind_Resume (struct _Unwind_Exception *);
 
 
void LIBGCC2_UNWIND_ATTRIBUTE
void LIBGCC2_UNWIND_ATTRIBUTE
_Unwind_Resume (struct _Unwind_Exception *exc)
_Unwind_Resume (struct _Unwind_Exception *exc)
{
{
  __libunwind_Unwind_Resume (exc);
  __libunwind_Unwind_Resume (exc);
}
}
symver (_Unwind_Resume, GCC_3.0);
symver (_Unwind_Resume, GCC_3.0);
 
 
extern _Unwind_Reason_Code __libunwind_Unwind_Resume_or_Rethrow
extern _Unwind_Reason_Code __libunwind_Unwind_Resume_or_Rethrow
   (struct _Unwind_Exception *);
   (struct _Unwind_Exception *);
 
 
_Unwind_Reason_Code LIBGCC2_UNWIND_ATTRIBUTE
_Unwind_Reason_Code LIBGCC2_UNWIND_ATTRIBUTE
_Unwind_Resume_or_Rethrow (struct _Unwind_Exception *exc)
_Unwind_Resume_or_Rethrow (struct _Unwind_Exception *exc)
{
{
  return __libunwind_Unwind_Resume_or_Rethrow (exc);
  return __libunwind_Unwind_Resume_or_Rethrow (exc);
}
}
symver (_Unwind_Resume_or_Rethrow, GCC_3.3);
symver (_Unwind_Resume_or_Rethrow, GCC_3.3);
 
 
extern void __libunwind_Unwind_SetGR
extern void __libunwind_Unwind_SetGR
  (struct _Unwind_Context *, int, _Unwind_Word);
  (struct _Unwind_Context *, int, _Unwind_Word);
 
 
void
void
_Unwind_SetGR (struct _Unwind_Context *context, int index,
_Unwind_SetGR (struct _Unwind_Context *context, int index,
               _Unwind_Word val)
               _Unwind_Word val)
{
{
  __libunwind_Unwind_SetGR (context, index, val);
  __libunwind_Unwind_SetGR (context, index, val);
}
}
symver (_Unwind_SetGR, GCC_3.0);
symver (_Unwind_SetGR, GCC_3.0);
 
 
extern void __libunwind_Unwind_SetIP
extern void __libunwind_Unwind_SetIP
  (struct _Unwind_Context *, _Unwind_Ptr);
  (struct _Unwind_Context *, _Unwind_Ptr);
 
 
void
void
_Unwind_SetIP (struct _Unwind_Context *context, _Unwind_Ptr val)
_Unwind_SetIP (struct _Unwind_Context *context, _Unwind_Ptr val)
{
{
  return __libunwind_Unwind_SetIP (context, val);
  return __libunwind_Unwind_SetIP (context, val);
}
}
symver (_Unwind_SetIP, GCC_3.0);
symver (_Unwind_SetIP, GCC_3.0);
#endif
#endif
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.