aboutsummaryrefslogtreecommitdiff
path: root/gcc/tlink.c
diff options
context:
space:
mode:
authorJason Merrill <jason@casey.cygnus.com>1999-12-15 09:37:48 +0000
committerJason Merrill <jason@gcc.gnu.org>1999-12-15 04:37:48 -0500
commit6ff7fb95722130e00e6ac16d45b53c3618ea9c7c (patch)
tree0129450039d065d3547631c7a0b4550174dfdcd4 /gcc/tlink.c
parent04a2ecf7808fe3c8e79141f7dca30eaacc085a8e (diff)
downloadgcc-6ff7fb95722130e00e6ac16d45b53c3618ea9c7c.zip
gcc-6ff7fb95722130e00e6ac16d45b53c3618ea9c7c.tar.gz
gcc-6ff7fb95722130e00e6ac16d45b53c3618ea9c7c.tar.bz2
tree.c (decl_function_context): Handle virtual functions.
* tree.c (decl_function_context): Handle virtual functions. * tlink.c (scan_linker_output): Don't look in demangled name when looking for linker output keywords. * dwarfout.c (output_type): We can defer namespace-scope classes. From-SVN: r30950
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 3fdd135..a6130a1 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")