aboutsummaryrefslogtreecommitdiff
path: root/tcctok.h
diff options
context:
space:
mode:
authorgrischka <grischka>2016-10-15 16:01:16 +0200
committergrischka <grischka>2016-10-15 16:01:16 +0200
commitf3c1ea6c2d7dca7883985820e46ec536e2d7e8cc (patch)
treec224b9ac2454e6d024473d1da6afea973fcdd1f7 /tcctok.h
parent4d247c00a3e966a3f9b3139da8307d64a9c48e25 (diff)
downloadtinycc-f3c1ea6c2d7dca7883985820e46ec536e2d7e8cc.tar.gz
tinycc-f3c1ea6c2d7dca7883985820e46ec536e2d7e8cc.tar.bz2
#define __GNUC__ = 2.1
__GNUC__ nowadays as macro seems to mean the "GNU C dialect" rather than the compiler itself. See also http://gcc.gnu.org/ml/gcc/2008-07/msg00026.html This patch will probably cause problems of various kinds but maybe we should try nonetheless.
Diffstat (limited to 'tcctok.h')
-rw-r--r--tcctok.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tcctok.h b/tcctok.h
index 297a47e..228b055 100644
--- a/tcctok.h
+++ b/tcctok.h
@@ -117,10 +117,14 @@
DEF(TOK_FASTCALL1, "fastcall")
DEF(TOK_FASTCALL2, "__fastcall")
DEF(TOK_FASTCALL3, "__fastcall__")
+
DEF(TOK_MODE, "__mode__")
+ DEF(TOK_MODE_QI, "__QI__")
DEF(TOK_MODE_DI, "__DI__")
DEF(TOK_MODE_HI, "__HI__")
DEF(TOK_MODE_SI, "__SI__")
+ DEF(TOK_MODE_word, "__word__")
+
DEF(TOK_DLLEXPORT, "dllexport")
DEF(TOK_DLLIMPORT, "dllimport")
DEF(TOK_NORETURN1, "noreturn")