This is the mail archive of the
mailing list for the GCC project.
Re: [google][4.7] Minor Function reordering plugin enhancements.
On Wed, Feb 13, 2013 at 4:32 PM, Xinliang David Li <email@example.com> wrote:
> when split_segment is specified but the API does not exist, why not
> making it fatal ? Will it crash at some point when the null pointer is
> referenced later?
It cannot be referenced later as the handlers will not get registered.
I will make this fatal too however.
> On Wed, Feb 13, 2013 at 4:19 PM, Sriraman Tallam <firstname.lastname@example.org> wrote:
>> I have attached a patch for the reordering plugin to display
>> appropriate error messages when incorrect options are passed or when
>> some API is unavailable.
>> The plugin will use the ld_plugin_message linker API to flag errors
>> (fatal or non-fatal) when incorrect options are passed or when the
>> required API is not available in the invoking linker. If the message
>> API is missing, then it falls back to using fprintf.