From 5154b05d15e7334abb59366131744a9f0e463513 Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Wed, 27 Nov 2002 10:33:56 +0000 Subject: [PATCH] unwind-sjlj.c (_Unwind_FindEnclosingFunction): Rename from_Unwind_Find_Enclosing_Function. 2002-11-26 Andrew Haley * unwind-sjlj.c (_Unwind_FindEnclosingFunction): Rename from_Unwind_Find_Enclosing_Function. * unwind-dw2.c (_Unwind_FindEnclosingFunction): Likewise. * config/ia64/unwind-ia64.c (_Unwind_FindEnclosingFunction): Likewise. * libgcc-std.ver (_Unwind_FindEnclosingFunction): Rename from _Unwind_Find_Enclosing_Function, export @@GCC_3.3. * unwind.h (_Unwind_FindEnclosingFunction): Add. From-SVN: r59568 --- gcc/ChangeLog | 10 ++++++++++ gcc/config/ia64/unwind-ia64.c | 2 +- gcc/libgcc-std.ver | 5 ++++- gcc/unwind-dw2.c | 2 +- gcc/unwind-sjlj.c | 2 +- gcc/unwind.h | 4 ++++ 6 files changed, 21 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5764f8949a3..f140ceaf629 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2002-11-26 Andrew Haley + + * unwind-sjlj.c (_Unwind_FindEnclosingFunction): Rename + from_Unwind_Find_Enclosing_Function. + * unwind-dw2.c (_Unwind_FindEnclosingFunction): Likewise. + * config/ia64/unwind-ia64.c (_Unwind_FindEnclosingFunction): Likewise. + * libgcc-std.ver (_Unwind_FindEnclosingFunction): Rename from + _Unwind_Find_Enclosing_Function, export @@GCC_3.3. + * unwind.h (_Unwind_FindEnclosingFunction): Add. + 2002-11-26 Hartmut Penner * config/s390/s390.c (390_output_constant_pool): Set alignment diff --git a/gcc/config/ia64/unwind-ia64.c b/gcc/config/ia64/unwind-ia64.c index eba9df0b66d..b3ba9333bcc 100644 --- a/gcc/config/ia64/unwind-ia64.c +++ b/gcc/config/ia64/unwind-ia64.c @@ -1643,7 +1643,7 @@ _Unwind_GetRegionStart (struct _Unwind_Context *context) } void * -_Unwind_Find_Enclosing_Function (void *pc) +_Unwind_FindEnclosingFunction (void *pc) { return NULL; } diff --git a/gcc/libgcc-std.ver b/gcc/libgcc-std.ver index d448567f822..45080fa1a52 100644 --- a/gcc/libgcc-std.ver +++ b/gcc/libgcc-std.ver @@ -158,7 +158,6 @@ GCC_3.0 { _Unwind_Resume _Unwind_SetGR _Unwind_SetIP - _Unwind_Find_Enclosing_Function __deregister_frame __deregister_frame_info __deregister_frame_info_bases @@ -176,3 +175,7 @@ GCC_3.0 { _Unwind_SjLj_ForcedUnwind _Unwind_SjLj_Resume } + +GCC_3.3 { + _Unwind_FindEnclosingFunction +} diff --git a/gcc/unwind-dw2.c b/gcc/unwind-dw2.c index 41db09248a7..3c5feea4e03 100644 --- a/gcc/unwind-dw2.c +++ b/gcc/unwind-dw2.c @@ -203,7 +203,7 @@ _Unwind_GetRegionStart (struct _Unwind_Context *context) } void * -_Unwind_Find_Enclosing_Function (void *pc) +_Unwind_FindEnclosingFunction (void *pc) { struct dwarf_eh_bases bases; struct dwarf_fde *fde = _Unwind_Find_FDE (pc-1, &bases); diff --git a/gcc/unwind-sjlj.c b/gcc/unwind-sjlj.c index 59b54154ea3..e1063b4a9c1 100644 --- a/gcc/unwind-sjlj.c +++ b/gcc/unwind-sjlj.c @@ -209,7 +209,7 @@ _Unwind_GetRegionStart (struct _Unwind_Context *context __attribute__((unused)) } void * -_Unwind_Find_Enclosing_Function (void *pc) +_Unwind_FindEnclosingFunction (void *pc) { return NULL; } diff --git a/gcc/unwind.h b/gcc/unwind.h index 3002d504174..218181c218c 100644 --- a/gcc/unwind.h +++ b/gcc/unwind.h @@ -192,6 +192,10 @@ extern _Unwind_Ptr _Unwind_GetDataRelBase (struct _Unwind_Context *); extern _Unwind_Ptr _Unwind_GetTextRelBase (struct _Unwind_Context *); #endif +/* @@@ Given an address, return the entry point of the function that + contains it. */ +extern void * _Unwind_FindEnclosingFunction (void *pc); + #ifdef __cplusplus } #endif