зеркало из https://github.com/mozilla/gecko-dev.git
323337 Use fastcall on Mac OS X x86: __attribute__(regparm(3)). r=josh
This commit is contained in:
Родитель
2e4aad3389
Коммит
18681d809c
|
@ -45,7 +45,7 @@
|
|||
|
||||
JS_BEGIN_EXTERN_C
|
||||
|
||||
#if defined(__GNUC__) && defined(__i386__) && (__GNUC__ >= 3) && !defined(XP_OS2) && !defined(XP_MACOSX)
|
||||
#if defined(__GNUC__) && defined(__i386__) && (__GNUC__ >= 3) && !defined(XP_OS2)
|
||||
#define JS_DHASH_FASTCALL __attribute__ ((regparm (3),stdcall))
|
||||
#else
|
||||
#define JS_DHASH_FASTCALL
|
||||
|
|
|
@ -20,10 +20,7 @@
|
|||
and therefore subject to change.
|
||||
*/
|
||||
|
||||
/* BEGIN MOZILLA CHANGE (https://bugzilla.mozilla.org/show_bug.cgi?id=297604) */
|
||||
/* #if defined(__GNUC__) && defined(__i386__) */
|
||||
#if defined(__GNUC__) && defined(__i386__) && !defined(XP_MACOSX)
|
||||
/* END MOZILLA CHANGE */
|
||||
#if defined(__GNUC__) && defined(__i386__)
|
||||
/* We'll use this version by default only where we know it helps.
|
||||
|
||||
regparm() generates warnings on Solaris boxes. See SF bug #692878.
|
||||
|
|
|
@ -143,7 +143,7 @@
|
|||
* NS_HIDDEN_(int) NS_FASTCALL func2(char *foo);
|
||||
*/
|
||||
|
||||
#if defined(__i386__) && defined(__GNUC__) && (__GNUC__ >= 3) && !defined(XP_OS2) && !defined(XP_MACOSX)
|
||||
#if defined(__i386__) && defined(__GNUC__) && (__GNUC__ >= 3) && !defined(XP_OS2)
|
||||
#define NS_FASTCALL __attribute__ ((regparm (3), stdcall))
|
||||
#define NS_CONSTRUCTOR_FASTCALL __attribute__ ((regparm (3), stdcall))
|
||||
#elif defined(XP_WIN)
|
||||
|
@ -158,7 +158,7 @@
|
|||
* NS_DEFCALL undoes the effect of a global regparm/stdcall setting
|
||||
* so that xptcall works correctly.
|
||||
*/
|
||||
#if defined(__i386__) && defined(__GNUC__) && (__GNUC__ >= 3) && !defined(XP_OS2) && !defined(XP_MACOSX)
|
||||
#if defined(__i386__) && defined(__GNUC__) && (__GNUC__ >= 3) && !defined(XP_OS2)
|
||||
#define NS_DEFCALL __attribute__ ((regparm (0), cdecl))
|
||||
#else
|
||||
#define NS_DEFCALL
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
PR_BEGIN_EXTERN_C
|
||||
|
||||
#if defined(__GNUC__) && defined(__i386__) && (__GNUC__ >= 3) && !defined(XP_OS2) && !defined(XP_MACOSX)
|
||||
#if defined(__GNUC__) && defined(__i386__) && (__GNUC__ >= 3) && !defined(XP_OS2)
|
||||
#define PL_DHASH_FASTCALL __attribute__ ((regparm (3),stdcall))
|
||||
#elif defined(XP_WIN)
|
||||
#define PL_DHASH_FASTCALL __fastcall
|
||||
|
|
Загрузка…
Ссылка в новой задаче