Weak symbols vs. ptr-to-function: invalid optimisation or undefined behaviour?

Dave Korn dave.korn@artimi.com
Tue May 27 16:18:00 GMT 2008


Paolo Bonzini wrote on 27 May 2008 15:36:

>>   if (!register_frame_fn)
>>     register_frame_fn = __register_frame_info;
> 
> Yes, here __register_frame_info is assumed to be non-zero *for non-weak
> functions*, see tree_single_nonzero_warnv_p.  I don't know why your
> __register_frame_info is not seen as weak.
> 
> Paolo

  Thanks, that gives me enough grounds to go digging for a real bug.  I'll
go digging through the dumps and file a PR.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....



More information about the Gcc mailing list