Skip to content

Commit

Permalink
Avoid -f error: default dollars-in-identifiers set
Browse files Browse the repository at this point in the history
-f is broken with mescc compiled tcc. It's a mes bug. We avoid it
setting dollars-in-identifiers as default as it's needed for the
`__global_pointer$` symbol in RISC-V
  • Loading branch information
ekaitz-zarraga committed Aug 5, 2023
1 parent 6fbd178 commit 53def01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tccpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3509,7 +3509,7 @@ ST_FUNC void preprocess_start(TCCState *s1)
s1->pack_stack[0] = 0;
s1->pack_stack_ptr = s1->pack_stack;

set_idnum('$', s1->dollars_in_identifiers ? IS_ID : 0);
set_idnum('$', IS_ID); // Activate dollars-in-identifiers always
set_idnum('.', (parse_flags & PARSE_FLAG_ASM_FILE) ? IS_ID : 0);

buf = tcc_malloc(3 + strlen(file->filename));
Expand Down

0 comments on commit 53def01

Please sign in to comment.