This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin 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]

[PATCH] enable -finline-functions optimization


This patch enables inline optimization for the c++ source files
in winsup/cygwin.

I tried several attributes for std_dll_init, wsock_init and
unused_sig_wrapper without success, the only working solution was to
change the functions from static to global to avoid its removal.

And the new_muto in the pwdgrp constructors can not be inlined for more
than one instance.

To enable -finline-functions optimization run "make CYGINLINE=1".

The performance win may vary, at least the rwlock7 test runs about 15%
faster.

I am running cygwin with this patch about one week now, seems to be
stable.

2003-04-09  Thomas Pfaff  <tpfaff at gmx dot net>

	* Makefile.in: Add finline-functions optimization to CXXFLAGS.
	* autoload.cc (std_dll_init): Change from static to global.
	(wsock_init): Ditto.
	* exceptions.cc (unused_sig_wrapper): Ditto.
	* pwdgrp.h ((pwdgrp (passwd *&)): Remove inline code.
	(pwdgrp (__group32 *&)): Ditto.
	* grp.cc (pwdgrp (passwd *&)): Outline constructor.
	(pwdgrp (__group32 *&)): Ditto.

Attachment: finline-functions.patch
Description: Text document


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