aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-01-02 11:11:37 +0000
committerRichard Guenther <rguenther@suse.de>2010-01-02 11:11:37 +0000
commit70d28ddda42f029a2d63164cf4dbf6bc40caf983 (patch)
treefa0e1bcb38d5ed5c5ebe8892cfb51972591e9c8b /gcc/collect2.c
parentec059e8ca8bdb76b7f920bf87eb84a71c3df2195 (diff)
2010-01-02 Richard Guenther <rguenther@suse.de>
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: https://gcc.gnu.org/svn/gcc/trunk@155563 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c6
1 files changed, 3 insertions, 3 deletions
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 (&lto_objects, prog_name);