another checkpoint of struct immediate replacement code
[mesa.git] / src / mesa / x86 / assyntax.h
index 442d21b2a7d96eeec027f3a18826a65b1df35143..ad71b747a4dfd589ea560bb97f2207f0f61707be 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: assyntax.h,v 1.17 2002/01/04 14:35:46 brianp Exp $ */
+/* $Id: assyntax.h,v 1.19 2002/04/02 16:18:20 brianp Exp $ */
 
 #ifndef __ASSYNTAX_H__
 #define __ASSYNTAX_H__
 
 #if !(defined(NASM_ASSEMBLER) || defined(MASM_ASSEMBLER))
 
+/* Default to ATT_ASSEMBLER when SVR4 or SYSV are defined */
+#if (defined(SVR4) || defined(SYSV)) && !defined(GNU_ASSEMBLER)
+#define ATT_ASSEMBLER
+#endif
+
 #if !defined(ATT_ASSEMBLER) && !defined(GNU_ASSEMBLER) && !defined(ACK_ASSEMBLER)
 #define GNU_ASSEMBLER
 #endif
 #define _STX6          %st(6)
 #define _STX7          %st(7)
 #define ST(x)          CONCAT(_STX,x)
+#ifdef GNU_ASSEMBLER
+#define ST0            %st(0)
+#else
+#define ST0            %st
+#endif
 /* MMX Registers */
 #define MM0            %mm0
 #define MM1            %mm1
 #endif /* ACK_ASSEMBLER */
 
 
-#if defined(__QNX__) || defined(Lynx) || (defined(SYSV) || defined(SVR4)) && !defined(ACK_ASSEMBLER) || defined(__ELF__) || defined(__GNU__) || defined(__GNUC__)
+#if defined(__QNX__) || defined(Lynx) || (defined(SYSV) || defined(SVR4)) && !defined(ACK_ASSEMBLER) || defined(__ELF__) || defined(__GNU__) || defined(__GNUC__) && !defined(DJGPP)
 #define GLNAME(a)      a
 #else
 #define GLNAME(a)      CONCAT(_,a)
 #if defined(NASM_ASSEMBLER)
 
 #define ST(n)          st ## n
+#define ST0            st0
 
 #define TBYTE_PTR      tword
 #define QWORD_PTR      qword