OSDN Git Service

* tlink.c (scan_linker_output): Look for symbol name in single
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Mar 2008 18:01:43 +0000 (18:01 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Mar 2008 18:01:43 +0000 (18:01 +0000)
quotes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133764 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tlink.c

index bc37e45..7ff0adc 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-31  Ian Lance Taylor  <iant@google.com>
+
+       * tlink.c (scan_linker_output): Look for symbol name in single
+       quotes.
+
 2008-03-31  Jan Hubicka  <jh@suse.cz>
 
        * builtins.c (expand_builtin_setjmp_receiver): Update call of
index 5a9b701..53c51dc 100644 (file)
@@ -1,7 +1,7 @@
 /* Scan linker error messages for missing template instantiations and provide
    them.
 
-   Copyright (C) 1995, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2007
+   Copyright (C) 1995, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2007, 2008
    Free Software Foundation, Inc.
    Contributed by Jason Merrill (jason@cygnus.com).
 
@@ -683,6 +683,9 @@ scan_linker_output (const char *fname)
          /* Then try "double quotes".  */
          else if (p = strchr (oldq, '"'), p)
            p++, q = strchr (p, '"');
+         /* Then try 'single quotes'.  */
+         else if (p = strchr (oldq, '\''), p)
+           p++, q = strchr (p, '\'');
          else {
            /* Then try entire line.  */
            q = strchr (oldq, 0);