This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Avoid registering empty .eh_frame sections


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);
-----------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]