History

compilation speed of the tccboot correction

we use gnu extension "case 0x80 ... 0xFF" for tcc & gcc and perform test if(c & 0x80) for other compilers

seyko committed 10 years ago

Commit 983c40f1 parent 936819a1 file · +4 −0Browse files

Unified · Split

tccpp.c+4−0
@@ -2340,8 +2340,11 @@ static inline void next_nomacro1(void) · 2339 unmodified lines
2340 p = file->buf_ptr;2340 p = file->buf_ptr;
2341 redo_no_start:2341 redo_no_start:
2342 c = *p;2342 c = *p;
2343#if (__TINYC__ || __GNUC__)
2344#else
2343 if (c & 0x80)2345 if (c & 0x80)
2344 goto parse_ident_fast;2346 goto parse_ident_fast;
2347#endif
2345 switch(c) {2348 switch(c) {
2346 case ' ':2349 case ' ':
2347 case '\t':2350 case '\t':
@@ -2451,6 +2454,7 @@ maybe_newline: · 103 unmodified lines
2451 case 'A' ... 'K':2454 case 'A' ... 'K':
2452 case 'M' ... 'Z':2455 case 'M' ... 'Z':
2453 case '_':2456 case '_':
2457 case 0x80 ... 0xFF:
2454#else2458#else
2455 case 'a': case 'b': case 'c': case 'd':2459 case 'a': case 'b': case 'c': case 'd':
2456 case 'e': case 'f': case 'g': case 'h':2460 case 'e': case 'f': case 'g': case 'h':

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