This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Marking the end of a function
Richard Henderson writes:
> On Mon, Nov 25, 2002 at 02:10:50PM -0500, Jakub Jelinek wrote:
> > Shouldn't _Unwind_Find_Enclosing_Function be exported @@GCC_3.3, not
> > @@GCC_3.0?
>
> Yes, it should. Thanks for catching this.
I also took the opportunity to rename the function to match the
StudlyCaps (argh) used by the rest of the unwind functions. The
mismatch was an error on my part.
Here's a revised patch.
Andrew.
2002-11-26 Andrew Haley <aph@redhat.com>
* 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.
Index: libgcc-std.ver
===================================================================
RCS file: /cvs/gcc/gcc/gcc/libgcc-std.ver,v
retrieving revision 1.14
diff -u -r1.14 libgcc-std.ver
--- libgcc-std.ver 25 Nov 2002 17:20:09 -0000 1.14
+++ libgcc-std.ver 26 Nov 2002 11:33:40 -0000
@@ -158,7 +158,6 @@
_Unwind_Resume
_Unwind_SetGR
_Unwind_SetIP
- _Unwind_Find_Enclosing_Function
__deregister_frame
__deregister_frame_info
__deregister_frame_info_bases
@@ -175,4 +174,8 @@
_Unwind_SjLj_RaiseException
_Unwind_SjLj_ForcedUnwind
_Unwind_SjLj_Resume
+}
+
+GCC_3.3 {
+ _Unwind_FindEnclosingFunction
}
Index: unwind-dw2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/unwind-dw2.c,v
retrieving revision 1.21
diff -u -r1.21 unwind-dw2.c
--- unwind-dw2.c 25 Nov 2002 17:20:09 -0000 1.21
+++ unwind-dw2.c 26 Nov 2002 11:33:41 -0000
@@ -203,7 +203,7 @@
}
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);
Index: unwind-sjlj.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/unwind-sjlj.c,v
retrieving revision 1.10
diff -u -r1.10 unwind-sjlj.c
--- unwind-sjlj.c 25 Nov 2002 17:20:09 -0000 1.10
+++ unwind-sjlj.c 26 Nov 2002 11:33:41 -0000
@@ -209,7 +209,7 @@
}
void *
-_Unwind_Find_Enclosing_Function (void *pc)
+_Unwind_FindEnclosingFunction (void *pc)
{
return NULL;
}
Index: unwind.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/unwind.h,v
retrieving revision 1.6
diff -u -r1.6 unwind.h
--- unwind.h 15 Aug 2002 18:01:30 -0000 1.6
+++ unwind.h 26 Nov 2002 11:33:41 -0000
@@ -192,6 +192,10 @@
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
Index: config/ia64/unwind-ia64.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ia64/unwind-ia64.c,v
retrieving revision 1.12
diff -u -r1.12 unwind-ia64.c
--- config/ia64/unwind-ia64.c 25 Nov 2002 17:20:10 -0000 1.12
+++ config/ia64/unwind-ia64.c 26 Nov 2002 11:33:43 -0000
@@ -1643,7 +1643,7 @@
}
void *
-_Unwind_Find_Enclosing_Function (void *pc)
+_Unwind_FindEnclosingFunction (void *pc)
{
return NULL;
}