diff options
| author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-14 23:38:18 +0000 |
|---|---|---|
| committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-14 23:38:18 +0000 |
| commit | 9936e1622e660be8b2ba443ea2017865f5680860 (patch) | |
| tree | b8bdbe51f1ef1e5d4c1cf6a6ec207dd82264c85b | |
| parent | 74e4079a621a11b36b49d207d73df6e3b2d1097b (diff) | |
| download | ppe42-gcc-9936e1622e660be8b2ba443ea2017865f5680860.tar.gz ppe42-gcc-9936e1622e660be8b2ba443ea2017865f5680860.zip | |
* 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 '*'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48020 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 7 | ||||
| -rw-r--r-- | gcc/config/i386/cygwin.h | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b531429fc0..244080dfe5e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +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 diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h index 00cf4ef9741..7517c1cf7e3 100644 --- a/gcc/config/i386/cygwin.h +++ b/gcc/config/i386/cygwin.h @@ -286,7 +286,9 @@ extern void i386_pe_encode_section_info PARAMS ((TREE)); /* 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 @@ extern void i386_pe_encode_section_info PARAMS ((TREE)); do { \ const char *_p; \ const char *_name = I386_PE_STRIP_ENCODING (SYMBOL_NAME); \ - if (*_name == '*') _name++; \ for (_p = _name; *_p && *_p != '@'; ++_p) \ ; \ if (*_p == '@') \ |

