for gas comments lonely on a line such as # .. more stuff where tcc would try to parse .. as a preprocessor directive See also: 0b3612631f49ba0c008635aaa46ecf8be2eefcf7
Unified · Split
| @@ -2549,10 +2549,13 @@ maybe_newline: · 2548 unmodified lines | |||
| 2549 | goto parse_num; | 2549 | goto parse_num; |
| 2550 | } else if (c == '.') { | 2550 | } else if (c == '.') { |
| 2551 | PEEKC(c, p); | 2551 | PEEKC(c, p); |
| 2552 | if (c != '.') | 2552 | if (c == '.') { |
| 2553 | expect("'.'"); | 2553 | p++; |
| 2554 | PEEKC(c, p); | 2554 | tok = TOK_DOTS; |
| 2555 | tok = TOK_DOTS; | 2555 | } else { |
| 2556 | *--p = '.'; /* may underflow into file->unget[] */ | ||
| 2557 | tok = '.'; | ||
| 2558 | } | ||
| 2556 | } else { | 2559 | } else { |
| 2557 | tok = '.'; | 2560 | tok = '.'; |
| 2558 | } | 2561 | } |