cygming.h (TARGET_STRIP_NAME_ENCODING): Don't override default.
* config/i386/cygming.h (TARGET_STRIP_NAME_ENCODING): Don't override default. * config/i386/i386.c (get_dllimport_decl): Don't strip FASTCALL_PREFIX. From-SVN: r128362
This commit is contained in:
parent
f3d110ef04
commit
e599ac2bef
@ -1,3 +1,10 @@
|
||||
2007-09-11 Danny Smith <dannysmith@users.sourceforge.net>
|
||||
|
||||
* config/i386/cygming.h (TARGET_STRIP_NAME_ENCODING): Don't
|
||||
override default.
|
||||
* config/i386/i386.c (get_dllimport_decl): Don't strip
|
||||
FASTCALL_PREFIX.
|
||||
|
||||
2007-09-10 Janis Johnson <janis187@us.ibm.com>
|
||||
|
||||
PR c/30013
|
||||
|
@ -183,8 +183,6 @@ do { \
|
||||
Note that we can be called twice on the same decl. */
|
||||
|
||||
#define SUBTARGET_ENCODE_SECTION_INFO i386_pe_encode_section_info
|
||||
#undef TARGET_STRIP_NAME_ENCODING
|
||||
#define TARGET_STRIP_NAME_ENCODING i386_pe_strip_name_encoding_full
|
||||
|
||||
/* Output a common block. */
|
||||
#undef ASM_OUTPUT_ALIGNED_DECL_COMMON
|
||||
|
@ -7820,14 +7820,7 @@ get_dllimport_decl (tree decl)
|
||||
|
||||
name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
|
||||
name = targetm.strip_name_encoding (name);
|
||||
if (name[0] == FASTCALL_PREFIX)
|
||||
{
|
||||
name++;
|
||||
prefix = "*__imp_";
|
||||
}
|
||||
else
|
||||
prefix = "*__imp__";
|
||||
|
||||
prefix = name[0] == FASTCALL_PREFIX ? "*__imp_": "*__imp__";
|
||||
namelen = strlen (name);
|
||||
prefixlen = strlen (prefix);
|
||||
imp_name = (char *) alloca (namelen + prefixlen + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user