summaryrefslogtreecommitdiff
path: root/gas/config/tc-i386.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-12-06 02:40:55 +0000
committerAlan Modra <amodra@gmail.com>2000-12-06 02:40:55 +0000
commit50705ef487df38335922c4f2e39458ea364aad45 (patch)
tree609d066bdb0038f27457285e9a2b556de69da395 /gas/config/tc-i386.c
parent3c077de93f564c01eaa021e741841e3a0e658ae8 (diff)
downloadbinutils-gdb-50705ef487df38335922c4f2e39458ea364aad45.tar.gz
Fix T_SHORT macro conflict.
Diffstat (limited to 'gas/config/tc-i386.c')
-rw-r--r--gas/config/tc-i386.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 5cf87bd0e2c..eaecabcb99f 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -4330,7 +4330,9 @@ struct intel_token
static struct intel_token cur_token, prev_token;
-/* Token codes for the intel parser. */
+
+/* Token codes for the intel parser. Since T_SHORT is already used
+ by COFF, undefine it first to prevent a warning. */
#define T_NIL -1
#define T_CONST 1
#define T_REG 2
@@ -4339,6 +4341,7 @@ static struct intel_token cur_token, prev_token;
#define T_DWORD 5
#define T_QWORD 6
#define T_XWORD 7
+#undef T_SHORT
#define T_SHORT 8
#define T_OFFSET 9
#define T_PTR 10