diff options
author | Roland McGrath <roland@gnu.org> | 2012-01-23 21:42:04 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2012-01-23 21:42:04 +0000 |
commit | 8d63c93e6db16f997f4b65146ee7570ced965af1 (patch) | |
tree | 8f230ccb6de813d4adbca834bb0dd7554ee3301a /gas/config/tc-i386.c | |
parent | e360902bf689e9adf4297e79df59ee92cd35ddc0 (diff) | |
download | gdb-8d63c93e6db16f997f4b65146ee7570ced965af1.zip gdb-8d63c93e6db16f997f4b65146ee7570ced965af1.tar.gz gdb-8d63c93e6db16f997f4b65146ee7570ced965af1.tar.bz2 |
* configure.tgt (i386-*-nacl*): Match it.
* config/te-nacl.h: New file.
* config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT): Define for this case.
* config/tc-i386.c [TE_NACL] (i386_comment_chars, PREFIX_SEPARATOR):
Use TE_GNU et al case for TE_NACL too.
Diffstat (limited to 'gas/config/tc-i386.c')
-rw-r--r-- | gas/config/tc-i386.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index dbac2ce..75ed56c 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -309,7 +309,8 @@ const char extra_symbol_chars[] = "*%-([" || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) \ && !defined (TE_GNU) \ && !defined (TE_LINUX) \ - && !defined (TE_NETWARE) \ + && !defined (TE_NACL) \ + && !defined (TE_NETWARE) \ && !defined (TE_FreeBSD) \ && !defined (TE_DragonFly) \ && !defined (TE_NetBSD))) @@ -3337,11 +3338,11 @@ parse_insn (char *line, char *mnemonic) encoding. */ if (mnem_p - 2 == dot_p && dot_p[1] == 's') i.swap_operand = 1; - else if (mnem_p - 3 == dot_p + else if (mnem_p - 3 == dot_p && dot_p[1] == 'd' && dot_p[2] == '8') i.disp_encoding = disp_encoding_8bit; - else if (mnem_p - 4 == dot_p + else if (mnem_p - 4 == dot_p && dot_p[1] == 'd' && dot_p[2] == '3' && dot_p[3] == '2') @@ -5854,7 +5855,7 @@ build_modrm_byte (void) vex_reg = op + 1; } else - { + { /* There are only 2 operands. */ gas_assert (op < 2 && i.operands == 2); vex_reg = 1; @@ -8647,7 +8648,7 @@ show_arch (FILE *stream, int ext, int check) fprintf (stream, "%s\n", message); p = start; left = size - (start - message) - len - 2; - + gas_assert (left >= 0); p = mempcpy (p, name, len); |