mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
r=mkaply, sr=blizzard (platform specific) Changes to get GCC 3.2.2 working on OS/2 - this set is OS/2 only changes Also remove some VACPP references
This commit is contained in:
parent
d974bdbfa5
commit
6485807366
@ -113,13 +113,9 @@ xptc_invoke_copy_to_stack_keeper (void)
|
||||
|
||||
__asm__ (
|
||||
".text\n\t"
|
||||
#ifdef __EMX__
|
||||
".align 8\n\t"
|
||||
#else
|
||||
/* alignment here seems unimportant here; this was 16, now it's 2 which
|
||||
is what xptcstubs uses. */
|
||||
".align 2\n\t"
|
||||
#endif
|
||||
".globl " SYMBOL_UNDERSCORE "XPTC_InvokeByIndex\n\t"
|
||||
".type " SYMBOL_UNDERSCORE "XPTC_InvokeByIndex,@function\n"
|
||||
SYMBOL_UNDERSCORE "XPTC_InvokeByIndex:\n\t"
|
||||
|
@ -1493,16 +1493,6 @@ static void _md_CreateEventQueue( PLEventQueue *eventQueue )
|
||||
#endif /* Winxx */
|
||||
|
||||
#if defined(XP_OS2)
|
||||
/* These functions/values are defined in the EMX libraries, but are not declared
|
||||
in the GCC 3.2.1 headers. */
|
||||
#ifdef XP_OS2_EMX
|
||||
unsigned _control87 (unsigned, unsigned);
|
||||
#define MCW_EM 0x003f
|
||||
#define MCW_IC 0x1000
|
||||
#define MCW_RC 0x0c00
|
||||
#define MCW_PC 0x0300
|
||||
#endif
|
||||
|
||||
/*
|
||||
** _md_CreateEventQueue() -- ModelDependent initializer
|
||||
*/
|
||||
@ -1511,22 +1501,8 @@ static void _md_CreateEventQueue( PLEventQueue *eventQueue )
|
||||
/* Must have HMQ for this & can't assume we already have appshell */
|
||||
if( FALSE == WinQueryQueueInfo( HMQ_CURRENT, NULL, 0))
|
||||
{
|
||||
unsigned cw;
|
||||
|
||||
HAB hab = WinInitialize( 0);
|
||||
|
||||
#ifdef XP_OS2_EMX
|
||||
/* It seems that WinCreateMsgQueue likes to change the floating point
|
||||
control word for undocumented reasons. Unfortunately, it causes
|
||||
floating point exceptions (SIGFPE) to be unmasked, so we crash in
|
||||
javascript on startup. The two calls to _control87 simply save the
|
||||
current value of the control word and resets it after the call */
|
||||
cw = _control87(0,0);
|
||||
#endif
|
||||
WinCreateMsgQueue( hab, 0);
|
||||
#ifdef XP_OS2_EMX
|
||||
_control87(cw, MCW_EM | MCW_IC | MCW_RC | MCW_PC);
|
||||
#endif
|
||||
}
|
||||
|
||||
if( !_pr_PostEventMsgId)
|
||||
|
Loading…
Reference in New Issue
Block a user