OSDN Git Service

PR lto/51916
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Jan 2012 14:07:41 +0000 (14:07 +0000)
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Jan 2012 14:07:41 +0000 (14:07 +0000)
        * lto-wrapper.c (run_gcc): Pass the LTO section name to
        simple_object_start_read.

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

gcc/ChangeLog
gcc/lto-wrapper.c

index c028087..ccb49f7 100644 (file)
@@ -1,5 +1,14 @@
+2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
+           Patrick Marlier  <patrick.marlier@gmail.com>
+           Iain Sandoe  <developer@sandoe-acoustics.co.uk>
+
+       PR lto/51916
+       * lto-wrapper.c (run_gcc): Pass the LTO section name to
+       simple_object_start_read.
+
 2012-01-23  Richard Guenther  <rguenther@suse.de>
 
+
        PR tree-optimization/51895
        * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
        parameter decomposition into BLKmode components.
index 6d262e8..1c9aa83 100644 (file)
@@ -479,7 +479,8 @@ run_gcc (unsigned argc, char *argv[])
       fd = open (argv[i], O_RDONLY);
       if (fd == -1)
        continue;
-      sobj = simple_object_start_read (fd, file_offset, NULL, &errmsg, &err);
+      sobj = simple_object_start_read (fd, file_offset, "__GNU_LTO", 
+                                      &errmsg, &err);
       if (!sobj)
        {
          close (fd);