re PR lto/51916 (FAIL: gcc.dg/lto/trans-mem-3 c_lto_trans-mem-3_0.o-c_lto_trans-mem-3_1.o link, -flto (internal compiler error))

PR lto/51916
        * lto-wrapper.c (run_gcc): Pass the LTO section name to
        simple_object_start_read.


Co-Authored-By: Iain Sandoe <developer@sandoe-acoustics.co.uk>
Co-Authored-By: Patrick Marlier <patrick.marlier@gmail.com>

From-SVN: r183433
This commit is contained in:
Aldy Hernandez 2012-01-23 14:07:41 +00:00 committed by Aldy Hernandez
parent 0b7d975df8
commit f2ede0eea0
2 changed files with 11 additions and 1 deletions

View 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.

View 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);