aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2017-02-08 20:09:29 +0000
committerRon Yorston <rmy@pobox.com>2017-02-08 20:09:29 +0000
commit373275a708bafb88fa4f0519de2166154f44fed9 (patch)
tree4587b4fd3f695e0f3705b2a217e199f3144df931 /include/platform.h
parentb74b2619779b1deb903b7766261807df1e9b1f7f (diff)
parentc2b18583a3df06aeecf535c3cea6856aa1f2e205 (diff)
downloadbusybox-w32-373275a708bafb88fa4f0519de2166154f44fed9.tar.gz
busybox-w32-373275a708bafb88fa4f0519de2166154f44fed9.tar.bz2
busybox-w32-373275a708bafb88fa4f0519de2166154f44fed9.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/include/platform.h b/include/platform.h
index 94368539e..13f818202 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -117,13 +117,18 @@
117 * and/or smaller by using modified ABI. It is usually only needed 117 * and/or smaller by using modified ABI. It is usually only needed
118 * on non-static, busybox internal functions. Recent versions of gcc 118 * on non-static, busybox internal functions. Recent versions of gcc
119 * optimize statics automatically. FAST_FUNC on static is required 119 * optimize statics automatically. FAST_FUNC on static is required
120 * only if you need to match a function pointer's type */ 120 * only if you need to match a function pointer's type.
121#if __GNUC_PREREQ(3,0) && defined(i386) /* || defined(__x86_64__)? */ 121 * FAST_FUNC may not work well with -flto so allow user to disable this.
122 * (-DFAST_FUNC= )
123 */
124#ifndef FAST_FUNC
125# if __GNUC_PREREQ(3,0) && defined(i386)
122/* stdcall makes callee to pop arguments from stack, not caller */ 126/* stdcall makes callee to pop arguments from stack, not caller */
123# define FAST_FUNC __attribute__((regparm(3),stdcall)) 127# define FAST_FUNC __attribute__((regparm(3),stdcall))
124/* #elif ... - add your favorite arch today! */ 128/* #elif ... - add your favorite arch today! */
125#else 129# else
126# define FAST_FUNC 130# define FAST_FUNC
131# endif
127#endif 132#endif
128 133
129/* Make all declarations hidden (-fvisibility flag only affects definitions) */ 134/* Make all declarations hidden (-fvisibility flag only affects definitions) */