* config/i386/cygwin.h (I386_PE_STRIP_ENCODING): Handle '*'
at SYM_NAME[0] or SYM_NAME[3].
(STRIP_NAME_ENCODING): Don't check for leading '*'.
Co-Authored-By: Danny Smith <dannysmith@users.sourceforge.net>
From-SVN: r48020
+2001-12-14 DJ Delorie <dj@redhat.com>
+ Danny Smith <dannysmith@users.sourceforge.net>
+
+ * config/i386/cygwin.h (I386_PE_STRIP_ENCODING): Handle '*'
+ at SYM_NAME[0] or SYM_NAME[3].
+ (STRIP_NAME_ENCODING): Don't check for leading '*'.
+
2001-12-14 Ira Ruben <ira@apple.com>
Add -### option (displays driver-generated commands without
/* Utility used only in this file. */
#define I386_PE_STRIP_ENCODING(SYM_NAME) \
- ((SYM_NAME) + ((SYM_NAME)[0] == '@' ? 3 : 0))
+ ((SYM_NAME) + ((SYM_NAME)[0] == '@' \
+ ? ((SYM_NAME)[3] == '*' ? 4 : 3) : 0) \
+ + ((SYM_NAME)[0] == '*' ? 1 : 0))
/* This macro gets just the user-specified name
out of the string in a SYMBOL_REF. Discard
do { \
const char *_p; \
const char *_name = I386_PE_STRIP_ENCODING (SYMBOL_NAME); \
- if (*_name == '*') _name++; \
for (_p = _name; *_p && *_p != '@'; ++_p) \
; \
if (*_p == '@') \