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: Jakub Jelinek <jakub at redhat dot com>
- To: Graham Stott <grahams at redhat dot com>
- Cc: rth at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 20 Nov 2001 10:57:54 -0500
- Subject: Re: [PATCH] Avoid registering empty .eh_frame sections
- References: <20011116125058.J527@sunsite.ms.mff.cuni.cz> <3BFAC24B.CE070676@redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Nov 20, 2001 at 03:51:23PM -0500, Graham Stott wrote:
> 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.
Ouch, I missed that warning during my bootstrap, sorry.
Returning NULL (== ob) is the right thing to do, the return value is only
used by __deregister_frame, which makes sure __deregister_frame_info will
not be called in that case.
>
> * unwind-dw2-fde.c (__deregister_frame_info_bases):
> Fix lossage in last change return OB.
Jakub