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:
parent
67962db535
commit
b1f123c732
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue