re PR lto/65559 (lto1.exe: internal compiler error: in read_cgraph_and_symbols, at...
authorKai Tietz <ktietz@redhat.com>
Mon, 4 May 2015 10:16:23 +0000 (12:16 +0200)
committerKai Tietz <ktietz@gcc.gnu.org>
Mon, 4 May 2015 10:16:23 +0000 (12:16 +0200)
        PR target/65559
        * lto-wrapper.c (run_gcc): Open filename
        with in binary-mode.

From-SVN: r222759

gcc/ChangeLog
gcc/lto-wrapper.c

index 0a0179d1dd6f2f6a21855d4e443e113f86f9e2b5..f2777b075ecf19d2f3c03d74f4d17c2db6adf7cb 100644 (file)
@@ -1,3 +1,9 @@
+2015-05-04  Kai Tietz  <ktietz@redhat.com>
+
+       PR target/65559
+       * lto-wrapper.c (run_gcc): Open filename
+       with in binary-mode.
+
 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
 
        * doc/extend.texi (Variable Attributes, Type Attributes):  Move
index 404cb68e0d1f800628ff69b7672385b88450a3d5..aa51476d2bc0059ca1b18a391320ce7a86e1f61c 100644 (file)
@@ -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];