aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/winnt.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 70c720c..0a2cd8b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
+ leading '@' on fastcall symbols before stripping suffix.
+
2004-03-12 Roger Sayle <roger@eyesopen.com>
* combine.c (unmentioned_reg_p): New function to check whether an
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);