History

tcc-asm: Parse .size directive correctly

When the .size directive was closed with a ';' tcc eat everything after it up to lineend.

Michael Matz committed 10 years ago

Commit e3f2a681 parent 6a5ec8c1 file · +1 −1Browse files

Unified · Split

tccasm.c+1−1
@@ -729,7 +729,7 @@ static void asm_parse_directive(TCCState *s1) · 728 unmodified lines
729 729
730 next();730 next();
731 skip(',');731 skip(',');
732 while (tok != '\n' && tok != CH_EOF) {732 while (tok != TOK_LINEFEED && tok != ';' && tok != CH_EOF) {
733 next();733 next();
734 }734 }
735 }735 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t