This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] i386/cygwin.h I386_PE_STRIP_ENCODING


 --- DJ Delorie <dj@redhat.com> wrote: > 
> Ok, let's go with this one.  Can you check it in, or should I?  And
> we'll need a ChangeLog entry too...
> 

I can't.  I would be grateful if you would. 

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 '*'.



--- cygwin.h.orig	Fri Dec 14 21:48:48 2001
+++ cygwin.h	Sat Dec 15 10:11:32 2001
@@ -286,7 +286,9 @@
 
 /* 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
@@ -296,7 +298,6 @@
 do {									\
   const char *_p;							\
   const char *_name = I386_PE_STRIP_ENCODING (SYMBOL_NAME);		\
-  if (*_name == '*') _name++;						\
   for (_p = _name; *_p && *_p != '@'; ++_p)				\
     ;									\
   if (*_p == '@')


http://shopping.yahoo.com.au - Yahoo! Shopping
- Free CDs for thousands of Priority Shoppers!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]