This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Avoid registering empty .eh_frame sections
- From: Graham Stott <grahams at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: rth at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 20 Nov 2001 15:51:23 -0500
- Subject: Re: [PATCH] Avoid registering empty .eh_frame sections
- References: <20011116125058.J527@sunsite.ms.mff.cuni.cz>
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);
-----------------------------------------------------------------