summaryrefslogtreecommitdiff
path: root/gcc/tlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tlink.c')
-rw-r--r--gcc/tlink.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tlink.c b/gcc/tlink.c
index 3fdd135a2c7..a6130a14c29 100644
--- a/gcc/tlink.c
+++ b/gcc/tlink.c
@@ -638,6 +638,11 @@ scan_linker_output (fname)
else if (p = index (oldq, '"'), p)
p++, q = index (p, '"');
+ /* Don't let the strstr's below see the demangled name; we
+ might get spurious matches. */
+ if (p)
+ p[-1] = '\0';
+
/* 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")