PR target/65559
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 May 2015 10:16:23 +0000 (10:16 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 May 2015 10:16:23 +0000 (10:16 +0000)
        * lto-wrapper.c (run_gcc): Open filename
        with in binary-mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222759 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/lto-wrapper.c

index 0a0179d..f2777b0 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 404cb68..aa51476 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];