This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: lto-plugin: mismatch between ld's architecture and GCC's configure --host
- From: Cary Coutant <ccoutant at google dot com>
- To: Thomas Schwinge <thomas at codesourcery dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, bonzini at gnu dot org, DJ Delorie <dj at redhat dot com>, neroden at gcc dot gnu dot org, Alexandre Oliva <aoliva at redhat dot com>, Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- Date: Mon, 4 Nov 2013 10:13:39 -0800
- Subject: Re: lto-plugin: mismatch between ld's architecture and GCC's configure --host
- Authentication-results: sourceware.org; auth=none
- References: <87k3hioknw dot fsf at kepler dot schwinge dot homeip dot net> <87a9icno3o dot fsf at kepler dot schwinge dot homeip dot net> <87k3h1g6fn dot fsf at kepler dot schwinge dot homeip dot net> <87habubdma dot fsf at kepler dot schwinge dot homeip dot net>
>> Ping. To sum it up, with these patches applied, there are no changes for
>> a "regular" build (not using the new configure options). On the other
>> hand, configuring GCC as described, it is possible use the 32-bit x86
>> linker for/with a x86_64 build, and get the very same GCC test results as
>> when using a x86_64 linker.
Sorry, I've been hoping someone with more global approval authority
would respond.
> Allow overriding the libiberty used for building the LTO plugin.
>
> lto-plugin/
> * configure.ac (--with-libiberty): New configure option.
> * configure: Regenerate.
> * Makefile.am (libiberty, libiberty_pic): New variables.
> (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
> (liblto_plugin_la_DEPENDENCIES): Use them.
> * Makefile.in: Regenerate.
These look OK to me.
> Allow for overriding a module's srcdir.
>
> * Makefile.tpl (configure-[+prefix+][+module+])
> (configure-stage[+id+]-[+prefix+][+module+]): Allow for
> overriding a module's srcdir.
> * Makefile.in: Regenerate.
These look OK, but I think a global maintainer or build machinery
maintainer should give approval.
> Non-host system configuration for linker plugins.
>
> * configure.ac (--enable-linker-plugin-flags)
> (--enable-linker-plugin-configure-flags): New flags.
> (configdirs): Conditionally add libiberty-linker-plugin.
> * configure: Regenerate.
> * Makefile.def (host_modules): Add libiberty-linker-plugin.
> (host_modules) <lto-plugin>: Pay attention to
> @extra_linker_plugin_flags@ and
> @extra_linker_plugin_configure_flags@.
> (all-lto-plugin): Also depend on all-libiberty-linker-plugin.
> * Makefile.in: Regenerate.
> gcc/
> * doc/install.texi (--enable-linker-plugin-flags)
> (--enable-linker-plugin-configure-flags): Document new flags.
Same here.
> GNU ld can use linker plugins, too.
>
> gcc/
> * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
> linker plugins, too.
OK.
> Fix typo.
>
> * Makefile.tpl: Fix typo.
> * Makefile.in: Regenerate.
OK (qualifies as trivial and obvious).
-cary