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


git-svn-id: svn://10.0.0.236/trunk@239076 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
maxf%magma.ca 2007-11-09 18:37:00 +00:00
parent 64708be210
commit eeca43f63f

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