[PATCH cygwin/mingw32] Committed: Fix dllimport of stdcall and fastcall symbols.

Danny Smith dannysmith@clear.net.nz
Tue Sep 11 04:58:00 GMT 2007

The rewrite of i386-PE dllimport code


broke the dllimport of stdcall and fastcall functions. The problem was
that the use of i386_pe_strip_name_encoding full as the
TARGET_STRIP_NAME_ENCODING hook was causing '@' and prefixes to be
stripped from the external name.

The only time that we need to strip these decorations (and then mainly
for backward compatibility) is when generating a unique section name.
Since that is done in winnt.c (i386_pe_unique_section), we can can use
i386_pe_strip_name_encoding_full directly rather than as a hook

Committed to trunk.

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

More information about the Gcc-patches mailing list