This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [LTO][PATCH] Add lang-hooks for LTO operation modes.
On Thu, Sep 18, 2008 at 10:54 AM, Doug Kwan (關振紱) <dougkwan@google.com> wrote:
>
> We already have lang-hook for handling command line options. May be we
> can use the existing one to handle the options, if we want to avoid
> adding a new hook.
That's the lto_handle_option function. It gets called before the
command option handler and can short-circuit it by returning 0. It
should do nicely.
Ollie