[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
Thu Apr 30 13:58:00 GMT 2015


--- Comment #22 from Kai Tietz <ktietz at gcc dot gnu.org> ---
I will be able to test this tomorrow (or this evening) for a linux bootstrap.

Patch tested is:

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 (filename, O_RDONLY | O_BINARY);
       if (fd == -1)
          lto_argv[lto_argc++] = argv[i];

Honza, Jakub, when regression-test passes is it ok to apply?
The O_BINARY change is pretty obvious, but the filename vs argv[i] change
should indeed affect other targets using the @<n> decoration, too.

More information about the Gcc-bugs mailing list