On Tue, May 5, 2020 at 11:16 AM Eric Botcazou <botca...@adacore.com> wrote:
>
> > I know it's hidden but can we make the plugin option more specific,
> > like -linker-output-auto-notlo-rel?  There's also no documentation for
> > the lto-plugin switches, I think a good place is a comment before
> >
> > +  else if (strcmp (option, "-linker-output-no-warning") == 0)
> > +    linker_output_no_warning = true;
> >
> > explaining the rationale/use-case.
>
> Like this?  I'll properly test it if it is OK.

Yes.

Thanks,
Richard.

>         * lto-plugin.c (linker_output_set): Change type to bool.
>         (linker_output_known): Likewise.
>         (linker_output_auto_nolto_rel): New variable.
>         (all_symbols_read_handler): Take it into account.
>         <LDPO_REL>: Do not issue the warning if it is set.
>         (process_option): Process -linker-output-auto-notlo-rel.
>         (cleanup_handler): Remove unused variable.
>         (onload) <LDPT_LINKER_OUTPUT>: Adjust to above type change.
>
> --
> Eric Botcazou

Reply via email to