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
This commit is contained in:
Danny Smith 2004-03-12 18:25:18 +00:00 committed by Danny Smith
parent 67962db535
commit b1f123c732
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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);