aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386/winnt.c
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2004-03-12 18:25:18 +0000
committerDanny Smith <dannysmith@gcc.gnu.org>2004-03-12 18:25:18 +0000
commitb1f123c732d4987c39d3d07b1fa1645296e37c24 (patch)
tree005a2d0070bc676b3ef9bbfde6d546020ef24ede /gcc/config/i386/winnt.c
parent67962db535fa27c17bf93b7974b83f0aaa1b815a (diff)
downloadgcc-b1f123c732d4987c39d3d07b1fa1645296e37c24.zip
gcc-b1f123c732d4987c39d3d07b1fa1645296e37c24.tar.gz
gcc-b1f123c732d4987c39d3d07b1fa1645296e37c24.tar.bz2
winnt.c (i386_pe_strip_name_encoding_full): Strip leading '@' on fastcall symbols before stripping suffix.
* config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip leading '@' on fastcall symbols before stripping suffix. From-SVN: r79400
Diffstat (limited to 'gcc/config/i386/winnt.c')
-rw-r--r--gcc/config/i386/winnt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c
index cf7b61e..c4326f0 100644
--- a/gcc/config/i386/winnt.c
+++ b/gcc/config/i386/winnt.c
@@ -558,7 +558,7 @@ i386_pe_strip_name_encoding (const char *str)
return str;
}
-/* Also strip the stdcall suffix. */
+/* Also strip the fastcall prefix and stdcall suffix. */
const char *
i386_pe_strip_name_encoding_full (const char *str)
@@ -566,6 +566,11 @@ i386_pe_strip_name_encoding_full (const char *str)
const char *p;
const char *name = i386_pe_strip_name_encoding (str);
+ /* Strip leading '@' on fastcall symbols. */
+ if (*name == '@')
+ name++;
+
+ /* Strip trailing "@n". */
p = strchr (name, '@');
if (p)
return ggc_alloc_string (name, p - name);