[Bug lto/65559] [5/6 Regression] lto1.exe: internal compiler error: in read_cgraph_and_symbols, at lto/lto.c:2947

ktietz at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 29 20:34:00 GMT 2015


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

--- Comment #18 from Kai Tietz <ktietz at gcc dot gnu.org> ---
Does the following patch fixes your problem?

Index: lto-wrapper.c
===================================================================
--- lto-wrapper.c       (Revision 222269)
+++ lto-wrapper.c       (Arbeitskopie)
@@ -934,7 +934,7 @@ 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];



More information about the Gcc-bugs mailing list