This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

[Patch]: Fastcall support for CygWin and MinGW, 2nd try


Hi!

The attached patch supports the use of fastcall functions (e.g.
@fastcall_function@12) on Win32 systems (CygWin/MinGW). A modified version
of binutils-2.11.90 is already used by the ReactOS project.

A corresponding patch for gcc 3.0 was already accepted by the gcc
developers.

My original patch introduced a small bug in dlltool. It is fixed in this
patch.

Regards,
Eric Kohl


binutils/ChangeLog:

* binutils/deflex.l:
Accept at-sign as first character of an ID.

* binutils/dlltool.c:
(scan_drectve_symbol): Search for first non-leading at-sign instead of
first.
(scan_filtered_symbol): Search for first non-neading 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.


binutils-3.0-fastcall.diff.gz


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