diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 04:30:48 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 04:30:48 +0000 |
commit | ac2b50ebeaa23d75920fba71cf7a2683690c17da (patch) | |
tree | ac450c4754664a0a7ffc1f672e800eeb30a76b3d /include | |
parent | d699544205de1ba8d36d98e4842e9a067e4c32ab (diff) |
add stdcall to FAST_FUNC
text data bss dec hex filename
804476 611 6868 811955 c63b3 busybox_old
804373 611 6868 811852 c634c busybox_unstripped
Diffstat (limited to 'include')
-rw-r--r-- | include/platform.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/platform.h b/include/platform.h index fe68547f0..12cb4d5a7 100644 --- a/include/platform.h +++ b/include/platform.h @@ -102,9 +102,9 @@ * on non-static, busybox internal functions. Recent versions of gcc * optimize statics automatically. FAST_FUNC on static is required * only if you need to match a function pointer's type */ -#if __GNUC_PREREQ(3,0) && defined(i386) -/* || defined(__x86_64__)? */ -# define FAST_FUNC __attribute__((regparm(3))) +#if __GNUC_PREREQ(3,0) && defined(i386) /* || defined(__x86_64__)? */ +/* stdcall makes callee to pop arguments from stack, not caller */ +# define FAST_FUNC __attribute__((regparm(3),stdcall)) /* #elif ... - add your favorite arch today! */ #else # define FAST_FUNC |