diff options
author | Geoff Keating <geoffk@cygnus.com> | 2000-07-18 00:15:46 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2000-07-18 00:15:46 +0000 |
commit | 644c7c4f7fca61ca6da60551aaab3ec1efbef851 (patch) | |
tree | 1452584f9c8c3c18c1b05f87c3d53a46c890cb34 /gcc/tlink.c | |
parent | 9db83b3996b1e84775b112774c65184408b68a3c (diff) | |
download | gcc-644c7c4f7fca61ca6da60551aaab3ec1efbef851.zip gcc-644c7c4f7fca61ca6da60551aaab3ec1efbef851.tar.gz gcc-644c7c4f7fca61ca6da60551aaab3ec1efbef851.tar.bz2 |
* tlink.c (scan_linker_output): Tweak for output of AIX ld.
From-SVN: r35108
Diffstat (limited to 'gcc/tlink.c')
-rw-r--r-- | gcc/tlink.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gcc/tlink.c b/gcc/tlink.c index bfa637e..e96f6dc 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, 1999 Free Software Foundation, Inc. + Copyright (C) 1995, 1998, 1999, 2000 Free Software Foundation, Inc. Contributed by Jason Merrill (jason@cygnus.com). This file is part of GNU CC. @@ -630,6 +630,20 @@ scan_linker_output (fname) *q = 0; sym = symbol_hash_lookup (p, false); + /* Some SVR4 linkers produce messages like + ld: 0711-317 ERROR: Undefined symbol: .g__t3foo1Zi + */ + if (! sym && ! end && strstr (q+1, "Undefined symbol: ")) + { + char *p = strrchr (q+1, ' '); + p++; + if (*p == '.') + p++; + if (*p == '_' && prepends_underscore) + p++; + sym = symbol_hash_lookup (p, false); + } + if (! sym && ! end) /* Try a mangled name in quotes. */ { |