This change is for the QNX (Photon) platform only. It will not affect the runtime or build of other Mozilla platforms since QNX source is not part of Tinderbox builds. You can contact me at: mfeil@qnx.com This change fixes a seg fault on startup when built with gcc 3.x. This same problem was fixed for linux under bugzilla bug 88397. This fix just turns it on for Neutrino as well. b=403087 r=bsmedberg

This commit is contained in:
maxf@magma.ca 2007-11-09 10:37:00 -08:00
parent 5e3273e0f1
commit 41601b23e0

View File

@ -129,7 +129,13 @@
#endif
#elif defined(NTO)
#if (__GNUC__ == 2) && (__GNUC_MINOR__ <= 7)
/* Old gcc 2.7.x.x. What does gcc 2.8.x do?? */
#define CFRONT_STYLE_THIS_ADJUST
#else
/* egcs and later */
#define THUNK_BASED_THIS_ADJUST
#endif
#elif defined(__BEOS__)
#define CFRONT_STYLE_THIS_ADJUST
@ -163,3 +169,9 @@
#if defined(THUNK_BASED_THIS_ADJUST) && defined(CFRONT_STYLE_THIS_ADJUST)
#error "need to define only ONE 'this' adjust scheme"
#endif
#if defined(__QNXNTO__)
/* Define KEEP_STACK_16_BYTE_ALIGNED if the stack needs to maintain alignment
* in a CALL for some good reason (like ABI compliance). */
#define KEEP_STACK_16_BYTE_ALIGNED
#endif