[Bug lto/61418] [4.9/4.10 Regression] HDF5 build failure with -flto: libgfortran.spec: attempt to rename spec 'lib' to already defined spec 'liborig'
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 5 09:18:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61418
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Index: gcc/lto-wrapper.c
===================================================================
--- gcc/lto-wrapper.c (revision 210514)
+++ gcc/lto-wrapper.c (working copy)
@@ -719,6 +719,12 @@ run_gcc (unsigned argc, char *argv[])
/* We generate new intermediate output, drop this arg. */
continue;
+ case OPT_specs_:
+ /* Drop spec overrides from the original link command, we'll
+ re-introduce them when doing the real link. Otherwise
+ this will confuse the LTO driver, see PR61418. */
+ continue;
+
case OPT_save_temps:
debug = 1;
break;
More information about the Gcc-bugs
mailing list