This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Weak symbols vs. ptr-to-function: invalid optimisation or undefined behaviour?
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Paolo Bonzini'" <bonzini at gnu dot org>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Tue, 27 May 2008 17:18:22 +0100
- Subject: RE: Weak symbols vs. ptr-to-function: invalid optimisation or undefined behaviour?
- References: <03ac01c8bff3$06582fe0$2708a8c0@CAM.ARTIMI.COM> <483C1C47.4070701@gnu.org>
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....