From 0b2fa873c6da02f169a76d74d3bedd91236f8e28 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 7 Mar 2002 21:40:08 +0000 Subject: syntax fixes for Solaris (David Dawes) --- src/mesa/x86/assyntax.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/mesa/x86/assyntax.h') diff --git a/src/mesa/x86/assyntax.h b/src/mesa/x86/assyntax.h index 442d21b2a7..8acc6d031d 100644 --- a/src/mesa/x86/assyntax.h +++ b/src/mesa/x86/assyntax.h @@ -1,4 +1,4 @@ -/* $Id: assyntax.h,v 1.17 2002/01/04 14:35:46 brianp Exp $ */ +/* $Id: assyntax.h,v 1.18 2002/03/07 21:40:08 brianp Exp $ */ #ifndef __ASSYNTAX_H__ #define __ASSYNTAX_H__ @@ -69,6 +69,11 @@ #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 @@ -200,6 +205,11 @@ #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 @@ -858,6 +868,7 @@ #if defined(NASM_ASSEMBLER) #define ST(n) st ## n +#define ST0 st0 #define TBYTE_PTR tword #define QWORD_PTR qword -- cgit v1.2.3