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:
mkaply%us.ibm.com 2003-09-15 22:02:35 +00:00
parent d974bdbfa5
commit 6485807366
2 changed files with 0 additions and 28 deletions

View File

@ -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"

View File

@ -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)