aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2016-04-05 13:38:53 +0300
committerseyko <seyko2@gmail.com>2016-04-05 13:38:53 +0300
commit983c40f58ba92c5958f731ce8d5246fea601aa30 (patch)
treecd45d480433c43c57ede35fedb8adb5e5ae040af
parent936819a1b90f2618bb3f86730189cf2895948ba0 (diff)
downloadtinycc-983c40f58ba92c5958f731ce8d5246fea601aa30.tar.gz
tinycc-983c40f58ba92c5958f731ce8d5246fea601aa30.tar.bz2
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
-rw-r--r--tccpp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tccpp.c b/tccpp.c
index 4745bec..3d8d2e2 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -2340,8 +2340,11 @@ static inline void next_nomacro1(void)
p = file->buf_ptr;
redo_no_start:
c = *p;
+#if (__TINYC__ || __GNUC__)
+#else
if (c & 0x80)
goto parse_ident_fast;
+#endif
switch(c) {
case ' ':
case '\t':
@@ -2451,6 +2454,7 @@ maybe_newline:
case 'A' ... 'K':
case 'M' ... 'Z':
case '_':
+ case 0x80 ... 0xFF:
#else
case 'a': case 'b': case 'c': case 'd':
case 'e': case 'f': case 'g': case 'h':