mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Revert e4c69005dea6 to see if OS X Bm goes green.
--HG-- extra : rebase_source : 7a98d5a9472af1c9085c1fbb9ab210649799a9b9
This commit is contained in:
parent
946b02e238
commit
7476a87828
@ -65,6 +65,22 @@ NO_PROFILE_GUIDED_OPTIMIZE = 1
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq (Darwin,$(OS_ARCH))
|
||||
ifeq (86,$(findstring 86,$(OS_TEST)))
|
||||
ifneq (x86_64,$(OS_TEST))
|
||||
# If we compile xptcinvoke_unixish_x86.cpp with -fomit-frame-pointer
|
||||
# we end up crashing on startup. This is because
|
||||
# "movl %5, %%eax\n\t" /* function index */
|
||||
# becomes
|
||||
# mov 0x1c(%esp),%eax
|
||||
# but we have modified esp.
|
||||
# NOTE: MOZ_FRAMEPTR_FLAGS must be set before including config.mk
|
||||
# FIXME: change the file instead of using this hack.
|
||||
MOZ_FRAMEPTR_FLAGS=-fno-omit-frame-pointer
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
||||
######################################################################
|
||||
|
@ -78,7 +78,6 @@ NS_InvokeByIndex_P(nsISupports* that, PRUint32 methodIndex,
|
||||
PRUint32 paramCount, nsXPTCVariant* params)
|
||||
{
|
||||
#ifdef __GNUC__ /* Gnu compiler. */
|
||||
PRUint32 methodIndexReg = methodIndex;
|
||||
PRUint32 result;
|
||||
/* Each param takes at most 2, 4-byte words
|
||||
It doesn't matter if we push too many words, and calculating the exact
|
||||
@ -166,8 +165,7 @@ NS_InvokeByIndex_P(nsISupports* that, PRUint32 methodIndex,
|
||||
"=m" (saved_esp) /* %3 */
|
||||
#endif
|
||||
: "g" (that), /* %4 */
|
||||
/* Must be in a register since we modify esp in the assembly. */
|
||||
"r" (methodIndexReg), /* %5 */
|
||||
"g" (methodIndex), /* %5 */
|
||||
"1" (paramCount), /* %6 */
|
||||
"2" (params), /* %7 */
|
||||
#ifdef KEEP_STACK_16_BYTE_ALIGNED
|
||||
|
Loading…
Reference in New Issue
Block a user