This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] LTO plugin for coff, part 1: break out ELF-specific code and enable COFF builds
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: Dave Korn <dave dot korn dot cygwin at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 2 Oct 2010 18:00:36 +0200
- Subject: Re: [PATCH] LTO plugin for coff, part 1: break out ELF-specific code and enable COFF builds
- References: <4CA7596D.3040801@gmail.com>
Hi Dave,
* Dave Korn wrote on Sat, Oct 02, 2010 at 06:10:21PM CEST:
> This patch separates out the ELF-specific code from the LTO plugin into a
> separate source file, and adds autoconfigury to select that or a COFF-specific
> source file at build time. It also adds a configure-time option,
> --enable-lto-plugin, which forcibly overrides the default decision about
> whether or not to build the LTO plugin.
Please explain why the existing --enable-lto switch is not sufficient.
The configure user API for LTO starts to look quite complex and
unorganized, with --enable-lto, --enable-lto-plugin, and
--enable-languages=lto. Put another way, the poor user shouldn't have
to bother with the details, and will want LTO by default whenever
possible.
Thanks,
Ralf