[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] Preprocessor bug prevents macro expansion
From: |
Alexandre Becoulet |
Subject: |
[Tinycc-devel] Preprocessor bug prevents macro expansion |
Date: |
Fri, 29 Jan 2010 02:30:10 +0100 |
User-agent: |
KMail/1.12.4 (Linux/2.6.32-ARCH; KDE/4.3.4; x86_64; ; ) |
Hi list,
Tcc fails to compile some code due to what seems like a preprocessor bug. Here
is a test case:
#define CONCAT(a, b, c) a##b##c
#define FOO(a, b, c) CONCAT(a, b, c)
CONCAT(F, O, O)(X, Y, Z)
This should expand to XYZ (tryed with gcc, clang, intel and sun) but tcc
preprocessor expands to CONCAT(X, Y, Z).
The expansion is performed properly when commenting out some nested macro
check code in the preprocessor.
--
Alexandre
- [Tinycc-devel] Preprocessor bug prevents macro expansion,
Alexandre Becoulet <=