aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-01-02 11:11:37 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-01-02 11:11:37 +0000
commit5a013dc42c21a12375e88c88a36a7d677570a409 (patch)
treefa0e1bcb38d5ed5c5ebe8892cfb51972591e9c8b /gcc/collect2.c
parent3bbf8fa4a2b84af9663bdf84230ec4c25f867ac4 (diff)
downloadgcc-5a013dc42c21a12375e88c88a36a7d677570a409.zip
gcc-5a013dc42c21a12375e88c88a36a7d677570a409.tar.gz
gcc-5a013dc42c21a12375e88c88a36a7d677570a409.tar.bz2
re PR lto/41597 (Bad .comm directive)
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. From-SVN: r155563
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 aa4b549..10adc88 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);