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;

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to