This is the mail archive of the gcc-bugs@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]

[Bug driver/46944] gcc should accept -fuse-linker-plugin only if linker handles -plugin


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46944

--- Comment #2 from Rainer Orth <ro at gcc dot gnu.org> 2011-03-16 09:41:24 UTC ---
Author: ro
Date: Wed Mar 16 09:41:16 2011
New Revision: 171039

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171039
Log:
    PR lto/46944
    * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
    Handle in-tree gold.
    (ld_vers): Extract binutils version for gold.
    (gcc_cv_ld_hidden): Handle gold here.
    (gcc_cv_lto_plugin): Determine level of linker plugin support.
    * configure: Regenerate.
    * config.in: Regenerate.
    * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
    -fuse-linker-plugin otherwise.
    (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
    (LINK_COMMAND_SPEC): Use it.
    (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config.in
    trunk/gcc/configure
    trunk/gcc/configure.ac
    trunk/gcc/gcc.c


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