From 51eafa60db89ea8a4d557d2a0228ebbe2892fde9 Mon Sep 17 00:00:00 2001 From: rguenth Date: Sat, 2 Jan 2010 11:11:37 +0000 Subject: 2010-01-02 Richard Guenther PR lto/41597 * toplev.c (compile_file): Emit LTO marker properly. Change it to __gnu_lto_v1. * collect2.c (scan_prog_file): Adjust for changed LTO marker. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155563 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/collect2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/collect2.c') diff --git a/gcc/collect2.c b/gcc/collect2.c index aa4b549b11b..10adc889aec 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -1,7 +1,7 @@ /* Collect static initialization info into data structures that can be traversed by C++ initialization and finalization routines. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009 + 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Contributed by Chris Smith (csmith@convex.com). Heavily modified by Michael Meissner (meissner@cygnus.com), @@ -2634,8 +2634,8 @@ scan_prog_file (const char *prog_name, scanpass which_pass, the LTO objects list if found. */ for (p = buf; (ch = *p) != '\0' && ch != '\n'; p++) if (ch == ' ' - && (strncmp (p +1 , "gnu_lto_v1", 10) == 0) - && ISSPACE( p[11])) + && (strncmp (p + 1, "__gnu_lto_v1", 12) == 0) + && ISSPACE (p[13])) { add_lto_object (<o_objects, prog_name); -- cgit v1.2.1