[PATCH] Avoid registering empty .eh_frame sections

Graham Stott grahams@redhat.com
Tue Nov 13 15:03:00 GMT 2001


Jakub,

The early return from __deregister_frame_info_bases is missing
a return value!

I'm not sure what's the correct fix is but returning ob
(which is zero at this point) looks about right.

Graham

	* unwind-dw2-fde.c (__deregister_frame_info_bases):
	Fix lossage in last change return OB.

-------------------------------------------------------------------
Index: unwind-dw2-fde.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/unwind-dw2-fde.c,v
retrieving revision 1.15
diff -c -p -r1.15 unwind-dw2-fde.c
*** unwind-dw2-fde.c    2001/11/20 11:08:17     1.15
--- unwind-dw2-fde.c    2001/11/20 15:42:12
*************** __deregister_frame_info_bases (void *beg
*** 170,176 ****

    /* If .eh_frame is empty, we haven't registered.  */
    if (*(uword *)begin == 0)
!     return;

    init_object_mutex_once ();
    __gthread_mutex_lock (&object_mutex);
--- 170,176 ----

    /* If .eh_frame is empty, we haven't registered.  */
    if (*(uword *)begin == 0)
!     return ob;

    init_object_mutex_once ();
    __gthread_mutex_lock (&object_mutex);
-----------------------------------------------------------------



More information about the Gcc-patches mailing list