delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/06/24/19:58:31

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
Message-ID: <20010624235820.48557.qmail@web14507.mail.yahoo.com>
Date: Mon, 25 Jun 2001 09:58:20 +1000 (EST)
From: =?iso-8859-1?q?Danny=20Smith?= <danny_r_smith_2001 AT yahoo DOT co DOT nz>
Subject: Fwd: Patch: MinGW fastcall support
To: mingw-dvlpr AT lists DOT sourceforge DOT net, cygwin-apps AT cygwin DOT com
MIME-Version: 1.0

--0-1025202362-993427100=:45504
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Content-Disposition: inline

I have asked Eric to submit patches to binutils and gcc-patches.
Any comments?

Danny


--- Eric Kohl <ekohl AT rz-online DOT de> wrote: > From: "Eric Kohl"
<ekohl AT rz-online DOT de>
> To: "Danny Smith" <danny_r_smith_2001 AT yahoo DOT co DOT nz>
> Subject: Patch: MinGW fastcall support
> Date: Sun, 24 Jun 2001 20:34:37 +0200
> 
> Hello, Danny!
> 
> I have just completed patches that implement fastcall support to the
> current
> mingw version (gcc-2.95.3-4 and binutils-2.11.90).
> 
> The 'gcc' patch is based on a patch I found on the net. The original
> patch
> (from July 2000) implemented argument passing via ecx and edx, but
> function
> labels we not generated correctly. I added the code to generate
> decorated
> fastcall symbols.
> 
> The binutils patch enables 'as' to handle fastcall symbols. It also
> extends
> 'dlltool' to create import libraries and export tables that contain
> fastcall
> functions.
> 
> These patches were successfully tested with a modified version of the
> ReactOS source code. The current cvs source treats fastcall functions
> as
> stdcall functions.
> 
> Please apply these patches to the mingw source tree.
> 
> Best regards,
> Eric Kohl
> 
> 
> Change log for fastcall_gcc.diff:
> 
> gcc/ChangeLog:
> 
> * gcc/config/i386/crtdll.h:
> (CPP_PREDEFINES): Add fastcall attributes.
> 
> * gcc/config/i386/cygwin.h:
> (CPP_SPEC): Add fastcall attributes.
> (I386_PE_STRIP_ENCODING): Return length of internal fastcall prefix
> (+).
> (ASM_OUTPUT_LABELREF): Convert internal fastcall symbol to official
> fastcall
> symbol.
> 
> * gcc/config/i386/mingw32.h:
> (CPP_PREDEFINES): Add fastcall attributes.
> 
> * gcc/config/i386/win-nt.h:
> (CPP_PREDEFINES): Add fastcall attributes.
> (ENCODE_SECTION_INFO): Decorate fastcall function.
> 
> * gcc/config/i386/i386.c:
> (i386_valid_type_attribute_p): Accept 'fastcall' as a valid type
> attribute.
> (i386_return_pops_args): Fastcall functions pop the stack.
> (init_cumulative_args): Reserve two registers and enable swapping of
> eax and
> ecx.
> (function_arg): Swap eax and ecx.
> 
> * gcc/config/i386/i386.h:
> (CUMULATIVE_ARGS): Add flag to indicate register swapping.
> 
> * gcc/config/i386/winnt.h:
> (gen_fastcall_suffix): New function. Decorates a label name with a
> preliminary fastcall prefix (+)
> and the stdcall suffix.
> (i386_pe_encode_section_info): Calls gen_fastcall_suffix() if a
> symbol has a
> fastcall attribute.
> 
> 
> 
> ChangeLog for fastcall_binutils.diff:
> 
> binutils/ChangeLog:
> 
> * binutils/deflex.l:
> Accept at-sign as first character of an ID.
> 
> * binutils/dlltool.c:
> (scan_drectve_symbol): Search for last at-sign instead of first.
> (scan_filtered_symbol): Search for last at-sign instead of first.
> (gen_exp_file): Generate microsoft-compatible fastcall symbols.
> (xlate): Undecorate fastcall symbol.
> (make_label): Decorate fastcall symbol.
> (make_one_lib_file): Generate microsoft-compatible fastcall symbols.
> 
> * gas/config/te-pe.h:
> (AT_LEX): Accept at-sign (@) as first character of a label.
> 
> 

> ATTACHMENT part 2 application/x-compressed name=fastcall-patches.tgz







_____________________________________________________________________________
http://messenger.yahoo.com.au - Yahoo! Messenger
- Voice chat, mail alerts, stock quotes and favourite news and lots more!
--0-1025202362-993427100=:45504
Content-Type: application/x-gzip-compressed; name="fastcall-patches.tgz"
Content-Transfer-Encoding: base64
Content-Description: fastcall-patches.tgz
Content-Disposition: attachment; filename="fastcall-patches.tgz"

H4sIAMH4NTsAA+07/XPaSLL5Ff6Kjve8gQA24ss2Pm+MbZzjFQY/wNnsJSmV
EIOti5BUkojNef2/v+6Z0ReWMU52995VMdkykqZ7pqe/prtndqp5vq6ZZmls
WHPfML2diTGdvvpDW1kplxu12quyaEu/SrleU16V96pKvbpXq5TxWamVq5VX
UP5jyUhvc8/XXIBXrm37q+Ce6/8vbSRtKLlQmkOgASXbNa53g7fdCZua7G7H
DPsfd2VLpdJz6Jlz14D/mVtQqUCl2qw1mtUyVFD82UKhsGLszFDzBV4Vykqz
Vm0qEu/4GEoNpbgHBf73+DgLn8qlgy+f7vBvq3SulaZf3sI9LBbmN83cseaz
MXPhCDzf9W0TcouFz+78YrlYzh9CFjIZl/lz14Le1cVJe3AID1nIlj61Sv/U
Sv/+W/Nz6bP67ot8xQl2xafjd3yOTLaQgDxeBYpTSZqMCdIDd0jRZO4EFOUP
Y8R0zvjbQ3YNQZmmb9vmjp7GzaBvpagCoBfLKkSMCQsRy42mokTCUiqNchGl
VwgeSGQZoKbPXZdZvrmAucemc3MH4O0u70Q9UNmdY7u+Bzm9COUiDsR/8L/X
kJua2rUHP8PJ8Fw9v+qdjjr9Xh5ZmC0hsjGFnDaZqJ4/ISenaqahIfDPpAP6
jcsHfHP8Jp/PFlZB5xA8AQ+vj0BHLEH9fbAK0G/Ql7wV5LKJamkzhgIO5asj
XaUEqOZ7i5nQST5+AlXMdchpS0VZgRNQFIK/+Vx+E33efQs922dNkGsFsVYE
HdumB7pmgcW+obmMGUw0X4vkQS0hk6XpY4uNSwptTOhAVZE6IB9IB1JGD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io8cgluW5kLUOLIFcRksWyAtDZ1VoKbk
ZnhG6buMAb1hKnEfRKu+7WumTEZ4XvTu3TuRbTuuPcawcxFEJkTbx+EI5bts
VnwGMituWoaFfkubyOQV+cYBW8Nh++Kki2pC9d2wBChvLnszeQUnTZ1S8OWc
+dhVOKFksctwwlkM3nP/kPQVAjkflYfiBRRik8oLCmsMEasQoQ+NKg4Weo2w
jxJHznx+08TkECBLsatGF9mqrIDHSYyNw4u6j+bNRNkqCdnR3JnqYTYR5qap
FSWiZ9j5Z/vpyfLhhV3UlAs6DHJtjCxh7lBYHYTijjYhDY7KNjCxMSrg9To6
KAqIgFsNjcPj8bdvu0xFKBWtTGoHhwpJR5JzueitAJetwYV60r/qnbUGv0EJ
lLzYgHaXet4m38MVCM0vHEVTBD1LYuKb5T9anV6SFwL6IRDyg9A8oYZpN3ml
ktN5nSJvJHpBeUVgFWGrsO0db0+2iiChi4LM3ZPOaKheovZf9TojgfxdDrjw
IM/HTqnIHBXeSHozx2S8fsbPYtrh5aZO77wvRJLlmia2hJrC/9+O+j7+NsKA
I7ptHIsxuDY/jjHWKxnTvfzM6q0/tMVS+rYf+ic4wtFeus3HPM3zNbmI7HWC
ociJZFbRTHr2Q1THalEroy1OdOavIjl9p4ru08py8YXmfuW+g5+SeDbcMn65
z2d0LEAZMHW6volxBKOqLX+3x/9iuh+VjDGdF/9zypsJ2C69or7zV6Ha/+nL
WZu2aZu2aZu2aZu2aZu2aZu2aZu2aZu2aZu2aZu2aT/Q/g9BMMEkAFAAAA==


--0-1025202362-993427100=:45504--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019