https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65559

--- Comment #30 from Rainer Emrich <rai...@emrich-ebersheim.de> ---
I'm testing the following instead:

Index: gcc/lto-wrapper.c
===================================================================
--- gcc/lto-wrapper.c   (Revision 222611)
+++ gcc/lto-wrapper.c   (Arbeitskopie)
@@ -934,12 +934,9 @@ run_gcc (unsigned argc, char *argv[])
          filename[p - argv[i]] = '\0';
          file_offset = (off_t) loffset;
        }
-      fd = open (argv[i], O_RDONLY);
+      fd = open (argv[i], O_RDONLY|O_BINARY);
       if (fd == -1)
-       {
-         lto_argv[lto_argc++] = argv[i];
-         continue;
-       }
+       continue;

       if (find_and_merge_options (fd, file_offset, LTO_SECTION_NAME_PREFIX,
                                  &fdecoded_options, &fdecoded_options_count,

Reply via email to