aboutsummaryrefslogtreecommitdiff
path: root/gcc/tlink.c
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1999-09-17 18:35:31 +0000
committerJason Merrill <jason@gcc.gnu.org>1999-09-17 14:35:31 -0400
commit57be4e89e8e92a9df39fa25c50788b275f727836 (patch)
tree966d2020038c82e23efcc533b6def53c0f0a2e30 /gcc/tlink.c
parentb5534c655352c24f2a2cf7ed2bac09a439e3b938 (diff)
downloadgcc-57be4e89e8e92a9df39fa25c50788b275f727836.zip
gcc-57be4e89e8e92a9df39fa25c50788b275f727836.tar.gz
gcc-57be4e89e8e92a9df39fa25c50788b275f727836.tar.bz2
tlink.c (scan_linker_output): Look for keywords before accepting a mangled name in quotes.
* tlink.c (scan_linker_output): Look for keywords before accepting a mangled name in quotes. From-SVN: r29479
Diffstat (limited to 'gcc/tlink.c')
-rw-r--r--gcc/tlink.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/tlink.c b/gcc/tlink.c
index a3df317..619c8c83 100644
--- a/gcc/tlink.c
+++ b/gcc/tlink.c
@@ -1,7 +1,7 @@
/* Scan linker error messages for missing template instantiations and provide
them.
- Copyright (C) 1995, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1998, 1999 Free Software Foundation, Inc.
Contributed by Jason Merrill (jason@cygnus.com).
This file is part of GNU CC.
@@ -638,7 +638,11 @@ scan_linker_output (fname)
else if (p = index (oldq, '"'), p)
p++, q = index (p, '"');
- if (q)
+ /* We need to check for certain error keywords here, or we would
+ mistakenly use GNU ld's "In function `foo':" message. */
+ if (q && (strstr (oldq, "ndefined")
+ || strstr (old, "nresolved")
+ || strstr (oldq, "ultiple")))
{
*q = 0;
dem = demangled_hash_lookup (p, false);