tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] GAS symbols


From: Sergey Korshunoff
Subject: Re: [Tinycc-devel] GAS symbols
Date: Wed, 30 Mar 2016 20:36:06 +0300

Is '$' always allowed in indetifiers inside *.S files?
Thre was a comment
  /* dollar is allowed to start identifiers when not parsing asm */
But patch always marks '$' as IS_ID for *.S

-    isidnum_table['$' - CH_EOF] =
+    isidnum_table['$' - CH_EOF] = (parse_flags & PARSE_FLAG_ASM_FILE) ||
         tcc_state->dollars_in_identifiers ? IS_ID : 0;

If yes, then

    /* dollar is allowed to start identifiers when not parsing asm */
    case '$':
        if (!(isidnum_table[c - CH_EOF] & IS_ID)
-        || (parse_flags & PARSE_FLAG_ASM_FILE))
            goto parse_simple;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]