-fdollar-in-identifiers addon

* disable a -fdollar-in-identifiers option in assembler files
    * a test is added

    This is a patch addon from Daniel Holden.
This commit is contained in:
seyko
2015-04-20 03:44:08 +03:00
parent 9336fa7ae5
commit 5ce2154c74
4 changed files with 21 additions and 13 deletions

View File

@ -747,7 +747,7 @@ static int tcc_assemble_internal(TCCState *s1, int do_preprocess)
ch = file->buf_ptr[0];
tok_flags = TOK_FLAG_BOL | TOK_FLAG_BOF;
parse_flags = PARSE_FLAG_ASM_COMMENTS;
parse_flags = PARSE_FLAG_ASM_COMMENTS | PARSE_FLAG_ASM_FILE;
if (do_preprocess)
parse_flags |= PARSE_FLAG_PREPROCESS;
next();