Commit b1f123c7 by Danny Smith Committed by Danny Smith

winnt.c (i386_pe_strip_name_encoding_full): Strip leading '@' on fastcall…

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
parent 67962db5
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> 2004-03-12 Roger Sayle <roger@eyesopen.com>
* combine.c (unmentioned_reg_p): New function to check whether an * combine.c (unmentioned_reg_p): New function to check whether an
......
...@@ -558,7 +558,7 @@ i386_pe_strip_name_encoding (const char *str) ...@@ -558,7 +558,7 @@ i386_pe_strip_name_encoding (const char *str)
return str; return str;
} }
/* Also strip the stdcall suffix. */ /* Also strip the fastcall prefix and stdcall suffix. */
const char * const char *
i386_pe_strip_name_encoding_full (const char *str) i386_pe_strip_name_encoding_full (const char *str)
...@@ -566,6 +566,11 @@ 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 *p;
const char *name = i386_pe_strip_name_encoding (str); const char *name = i386_pe_strip_name_encoding (str);
/* Strip leading '@' on fastcall symbols. */
if (*name == '@')
name++;
/* Strip trailing "@n". */
p = strchr (name, '@'); p = strchr (name, '@');
if (p) if (p)
return ggc_alloc_string (name, p - name); return ggc_alloc_string (name, p - name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment