* Makefile.in: Add finline-functions optimization to CXXFLAGS.
* autoload.cc (LoadDLLprime): Rename std_dll_init to _std_dll_init. (std_dll_init): Remove name mangling prototype. Add attributes used and noinline. (wsock_init): Ditto. Change wsock_init to _wsock_init in wsock32 and ws2_32 LoadDLLprime. * exceptions.cc (unused_sig_wrapper): Remove prototype. Add attributes used and noinline. * pwdgrp.h ((pwdgrp (passwd *&)): Remove inline code. (pwdgrp (__group32 *&)): Ditto. * grp.cc (pwdgrp (passwd *&)): Outline constructor. (pwdgrp (__group32 *&)): Ditto.
This commit is contained in:
		| @@ -1,3 +1,20 @@ | |||||||
|  | 2003-04-17  Thomas Pfaff  <tpfaff@gmx.net> | ||||||
|  |  | ||||||
|  | 	* Makefile.in: Add finline-functions optimization to CXXFLAGS. | ||||||
|  | 	* autoload.cc (LoadDLLprime): Rename std_dll_init to | ||||||
|  | 	_std_dll_init. | ||||||
|  | 	(std_dll_init): Remove name mangling prototype. Add attributes | ||||||
|  | 	used and noinline. | ||||||
|  | 	(wsock_init): Ditto. | ||||||
|  | 	Change wsock_init to _wsock_init in wsock32 and ws2_32 | ||||||
|  | 	LoadDLLprime. | ||||||
|  | 	* exceptions.cc (unused_sig_wrapper): Remove prototype. Add | ||||||
|  | 	attributes used and noinline. | ||||||
|  | 	* pwdgrp.h ((pwdgrp (passwd *&)): Remove inline code. | ||||||
|  | 	(pwdgrp (__group32 *&)): Ditto. | ||||||
|  | 	* grp.cc (pwdgrp (passwd *&)): Outline constructor. | ||||||
|  | 	(pwdgrp (__group32 *&)): Ditto. | ||||||
|  |  | ||||||
| 2003-04-17  Thomas Pfaff  <tpfaff@gmx.net> | 2003-04-17  Thomas Pfaff  <tpfaff@gmx.net> | ||||||
|  |  | ||||||
| 	* thread.h (pthread::equal): New static method. | 	* thread.h (pthread::equal): New static method. | ||||||
|   | |||||||
| @@ -80,6 +80,9 @@ CFLAGS=@CFLAGS@ | |||||||
| override CFLAGS+=-MMD ${$(*F)_CFLAGS} | override CFLAGS+=-MMD ${$(*F)_CFLAGS} | ||||||
| CXX=@CXX@ | CXX=@CXX@ | ||||||
| CXXFLAGS=@CXXFLAGS@ | CXXFLAGS=@CXXFLAGS@ | ||||||
|  | ifeq ($(CYGINLINE),1) | ||||||
|  | override CXXFLAGS+=-finline-functions | ||||||
|  | endif | ||||||
|  |  | ||||||
| AR:=@AR@ | AR:=@AR@ | ||||||
| AR_FLAGS:=qv | AR_FLAGS:=qv | ||||||
|   | |||||||
| @@ -58,7 +58,7 @@ details. */ | |||||||
| #define LoadDLLprime(dllname, init_also) __asm__ ("	\n\ | #define LoadDLLprime(dllname, init_also) __asm__ ("	\n\ | ||||||
|   .section	." #dllname "_info,\"w\"		\n\ |   .section	." #dllname "_info,\"w\"		\n\ | ||||||
|   .linkonce						\n\ |   .linkonce						\n\ | ||||||
|   .long		std_dll_init				\n\ |   .long		_std_dll_init				\n\ | ||||||
|   .long		0					\n\ |   .long		0					\n\ | ||||||
|   .long		-1					\n\ |   .long		-1					\n\ | ||||||
|   .long		" #init_also "				\n\ |   .long		" #init_also "				\n\ | ||||||
| @@ -201,8 +201,7 @@ union retchain | |||||||
| }; | }; | ||||||
|  |  | ||||||
| /* The standard DLL initialization routine. */ | /* The standard DLL initialization routine. */ | ||||||
| static long long std_dll_init () __asm__ ("std_dll_init") __attribute__ ((unused)); | __attribute__ ((used, noinline)) static long long | ||||||
| static long long |  | ||||||
| std_dll_init () | std_dll_init () | ||||||
| { | { | ||||||
|   HANDLE h; |   HANDLE h; | ||||||
| @@ -241,9 +240,8 @@ std_dll_init () | |||||||
| } | } | ||||||
|  |  | ||||||
| /* Initialization function for winsock stuff. */ | /* Initialization function for winsock stuff. */ | ||||||
| static long long wsock_init () __asm__ ("wsock_init") __attribute__ ((unused, regparm(1))); |  | ||||||
| bool NO_COPY wsock_started = 0; | bool NO_COPY wsock_started = 0; | ||||||
| static long long | __attribute__ ((used, noinline, regparm(1))) static long long | ||||||
| wsock_init () | wsock_init () | ||||||
| { | { | ||||||
|   static LONG NO_COPY here = -1L; |   static LONG NO_COPY here = -1L; | ||||||
| @@ -304,8 +302,8 @@ wsock_init () | |||||||
|   return ret.ll; |   return ret.ll; | ||||||
| } | } | ||||||
|  |  | ||||||
| LoadDLLprime (wsock32, wsock_init) | LoadDLLprime (wsock32, _wsock_init) | ||||||
| LoadDLLprime (ws2_32, wsock_init) | LoadDLLprime (ws2_32, _wsock_init) | ||||||
|  |  | ||||||
| LoadDLLfunc (AccessCheck, 32, advapi32) | LoadDLLfunc (AccessCheck, 32, advapi32) | ||||||
| LoadDLLfunc (AddAccessAllowedAce, 16, advapi32) | LoadDLLfunc (AddAccessAllowedAce, 16, advapi32) | ||||||
|   | |||||||
| @@ -1203,12 +1203,10 @@ reset_signal_arrived () | |||||||
|   sigproc_printf ("reset signal_arrived"); |   sigproc_printf ("reset signal_arrived"); | ||||||
| } | } | ||||||
|  |  | ||||||
| static void unused_sig_wrapper () __attribute__((const, unused)); |  | ||||||
|  |  | ||||||
| #undef errno | #undef errno | ||||||
| #define errno ((DWORD volatile) _impure_ptr) + (((char *) &_impure_ptr->_errno) - ((char *) _impure_ptr)) | #define errno ((DWORD volatile) _impure_ptr) + (((char *) &_impure_ptr->_errno) - ((char *) _impure_ptr)) | ||||||
|  |  | ||||||
| static void | __attribute__((const, used, noinline)) static void | ||||||
| unused_sig_wrapper () | unused_sig_wrapper () | ||||||
| { | { | ||||||
| /* Signal cleanup stuff.  Cleans up stack (too bad that we didn't | /* Signal cleanup stuff.  Cleans up stack (too bad that we didn't | ||||||
|   | |||||||
| @@ -108,6 +108,22 @@ pwdgrp::read_group () | |||||||
|   return; |   return; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | pwdgrp::pwdgrp (passwd *&pbuf) : | ||||||
|  |   pwdgrp_buf_elem_size (sizeof (*pbuf)), passwd_buf (&pbuf) | ||||||
|  | { | ||||||
|  |   read = &pwdgrp::read_passwd; | ||||||
|  |   parse = &pwdgrp::parse_passwd; | ||||||
|  |   new_muto (pglock); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | pwdgrp::pwdgrp (__group32 *&gbuf) : | ||||||
|  |   pwdgrp_buf_elem_size (sizeof (*gbuf)), group_buf (&gbuf) | ||||||
|  | { | ||||||
|  |   read = &pwdgrp::read_group; | ||||||
|  |   parse = &pwdgrp::parse_group; | ||||||
|  |   new_muto (pglock); | ||||||
|  | } | ||||||
|  |  | ||||||
| struct __group32 * | struct __group32 * | ||||||
| internal_getgrsid (cygpsid &sid) | internal_getgrsid (cygpsid &sid) | ||||||
| { | { | ||||||
|   | |||||||
| @@ -77,18 +77,6 @@ public: | |||||||
|     pglock->release (); |     pglock->release (); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   inline pwdgrp (passwd *&pbuf) : |   pwdgrp (passwd *&pbuf); | ||||||
|     pwdgrp_buf_elem_size (sizeof (*pbuf)), passwd_buf (&pbuf) |   pwdgrp (__group32 *&gbuf); | ||||||
|     { |  | ||||||
|       read = &pwdgrp::read_passwd; |  | ||||||
|       parse = &pwdgrp::parse_passwd; |  | ||||||
|       new_muto (pglock); |  | ||||||
|     } |  | ||||||
|   inline pwdgrp (__group32 *&gbuf) : |  | ||||||
|     pwdgrp_buf_elem_size (sizeof (*gbuf)), group_buf (&gbuf) |  | ||||||
|     { |  | ||||||
|       read = &pwdgrp::read_group; |  | ||||||
|       parse = &pwdgrp::parse_group; |  | ||||||
|       new_muto (pglock); |  | ||||||
|     } |  | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user