|
From: Terry T. <ter...@us...> - 2005-01-03 00:57:39
|
Update of /cvsroot/frontierkernel/Frontier/Common/stubs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17374/Frontier/Common/stubs Modified Files: megastubs.c Log Message: GNU by default uses the AT&T assembly code syntax; MSC/MWERKS uses the Intel assembly code syntax; some versions of 'gcc' accept -masm=att|intel to specify which syntax to use; but for those that don't... Index: megastubs.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/stubs/megastubs.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** megastubs.c 23 Oct 2004 21:29:31 -0000 1.3 --- megastubs.c 3 Jan 2005 00:57:28 -0000 1.4 *************** *** 82,85 **** --- 82,97 ---- tenbuf = tenbytebuffer->x80; + #if defined(__i386__) && defined(__GNUC__) + /* + 10.0a5 - TRT - 29 Dec 2004 + GNU by default uses the AT&T assembly code syntax; + MSC/MWERKS uses the Intel assembly code syntax; + some versions of 'gcc' accept -masm=att|intel to + specify which syntax to use; but for those that don't... + */ + __asm__("FLD foo/\nFWAIT/\nFSTP tbyte ptr myext/\nFWAIT/"); + #elif defined(__powerpc__) && defined(__GNUC__) + dtox80(&foo, tenbytebuffer); /* at present - see fp.h in Universal Interfaces */ + #else _asm { FLD foo; *************** *** 88,91 **** --- 100,104 ---- FWAIT; } + #endif for (i = 9; i >= 0; i--) { *************** *** 108,111 **** --- 121,136 ---- } + #if defined(__i386__) && defined(__GNUC__) + /* + 10.0a5 - TRT - 29 Dec 2004 + GNU by default uses the AT&T assembly code syntax; + MSC/MWERKS uses the Intel assembly code syntax; + some versions of 'gcc' accept -masm=att|intel to + specify which syntax to use; but for those that don't... + */ + __asm__("FLD tbyte ptr myext\nFWAIT/\nFSTP getfoo/\nFWAIT/"); + #elif defined(__powerpc__) && defined(__GNUC__) + *foo = x80tod(tenbytebuffer); /* at present - see fp.h in Universal Interfaces */ + #else _asm { FLD tbyte ptr myext *************** *** 114,117 **** --- 139,143 ---- FWAIT; } + #endif *foo = getfoo; |