[lto][patch] add -flto-single option

Diego Novillo dnovillo@google.com
Mon Jun 23 17:14:00 GMT 2008


On Mon, Jun 23, 2008 at 12:47, Rafael Espindola <espindola@google.com> wrote:

>        * gcc.c: (lto_single): New variable.  Flag to indicate
>        lto-single mode.
>        (LINK_COMMAND_SPEC,cc1_options): Add support for
>        lto-single mode.
>        (invoke_lto_single): New constant.
>        Specs string to run hidden lto1 pass.
>        (default_compilers): Add support for lto-single
>        mode in specs for C compilations.
>        (static_specs): Add entry for invoke_lto_single.
>        (process_command): Recognize -flto-single option.
>        (handle_spec_predicate): Parse and invoke spec predicate,
>        similar to spec funtion.
>        (handle_braces): Implement conditional on spec predicates.
>        (lto_single_spec_predicate): New function. Spec predicate
>        to test for lto-single mode.

You forgot the patch.  If it's the same as the one Bill posted last
year, I think I had already approved it, but I don't recall.  The next
thing would be checking out why g++ -flto is not behaving the same as
gcc -flto (doesn't seem to be calling lto1).


Diego.


Diego.



More information about the Gcc-patches mailing list