[PATCH] Avoid registering empty .eh_frame sections

Jakub Jelinek jakub@redhat.com
Tue Nov 13 15:03:00 GMT 2001

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.


More information about the Gcc-patches mailing list