aboutsummaryrefslogtreecommitdiff
path: root/tccasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccasm.c')
-rw-r--r--tccasm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tccasm.c b/tccasm.c
index 3d8a46e..6862ef5 100644
--- a/tccasm.c
+++ b/tccasm.c
@@ -585,6 +585,12 @@ static void asm_parse_directive(TCCState *s1)
}
break;
#endif
+#ifdef TCC_TARGET_X86_64
+ /* added for compatibility with GAS */
+ case TOK_ASM_code64:
+ next();
+ break;
+#endif
default:
error("unknown assembler directive '.%s'", get_tok_str(tok, NULL));
break;