1 # XPTC_InvokeByIndex crashes
2 # Bug 339782 [ARM] XPTC_InvokeByIndex crashes when cross-compiled under GCC 3.4.x with EABI (CodeSourcery)
3 Index: mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp
4 ===================================================================
5 --- mozilla.orig/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp
6 +++ mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp
9 #define DOUBLEWORD_ALIGN(p) ((PRUint32 *)((((PRUint32)(p)) + 7) & 0xfffffff8))
10 #define VAR_STACK_SIZE_64 3
12 #define DOUBLEWORD_ALIGN(p) (p)
13 #define VAR_STACK_SIZE_64 2
17 +#define DOUBLEWORD_ALIGN(p) ((PRUint32 *)((((PRUint32)(p)) + 7) & 0xfffffff8))
19 +#define DOUBLEWORD_ALIGN(p) (p)
22 // Remember that these 'words' are 32bit DWORDS
25 invoke_count_words(PRUint32 paramCount, nsXPTCVariant* s)
29 + /* Note that we give a "worst case" estimate of how much stack _might_ be
30 + * needed, rather than the real count - this should be safe */
32 for(PRUint32 i = 0; i < paramCount; i++, s++)