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;

Reply via email to