This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lto][patch] Use @args when calling lto-wrapper


Rafael Espindola <espindola@google.com> writes:

>> Also lto-plugin should use the pex interface instead of fork/execv.
>
> What is the advantage for the simple case of just one subcommand? The plugin
> only works on ELF systems...

Plenty of people use Windows hosts to cross-compile code for embedded
systems using ELF.  Those people should be permitted to use LTO.

In gcc and the binutils executing another program should always be
done via the pex routines.  That's a flat rule, no exceptions allowed
without special pleading.

The pex routines are fairly easy to use.  As a bonus, they will be
slightly more efficient since they will use vfork when available, they
will handle some temporary error cases, they will issue standard error
messages, etc.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]