diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c0280874d3c5..ccb49f734bef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,14 @@ +2012-01-23 Aldy Hernandez + Patrick Marlier + Iain Sandoe + + PR lto/51916 + * lto-wrapper.c (run_gcc): Pass the LTO section name to + simple_object_start_read. + 2012-01-23 Richard Guenther + PR tree-optimization/51895 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal parameter decomposition into BLKmode components. diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c index 6d262e8040bb..1c9aa833dbc8 100644 --- a/gcc/lto-wrapper.c +++ b/gcc/lto-wrapper.c @@ -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);