[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] X(X(1)) (nested macro substitution)
From: |
Edmund Grimley Evans |
Subject: |
Re: [Tinycc-devel] X(X(1)) (nested macro substitution) |
Date: |
Fri, 29 Apr 2016 10:18:34 +0100 |
You may find that TCC's preprocessor is fundamentally broken (wrong
underlying data structures) and can't be patched up. If you are going
to play around with small changes to it, then you should first find a
proper, big test suite. There must be one out there somewhere, perhaps
in GCC's source tree, for example. Otherwise you might find that every
change you make to fix one thing breaks other things.
Another possibility would be to give up on making TCC's preprocessor
conform to the standard. If it correctly implements a well-defined
subset of the standard, and fails with a clear error (apology) in
other cases, then that might be more acceptable than generating
different output from a correct compiler or going into an infinite
loop in certain situations that are hard to describe or identify.
Edmund
- [Tinycc-devel] X(X(1)) (nested macro substitution), Sergey Korshunoff, 2016/04/26
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), Sergey Korshunoff, 2016/04/28
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), Michael B. Smith, 2016/04/28
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), Vincent Lefevre, 2016/04/28
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), Sergey Korshunoff, 2016/04/29
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), grischka, 2016/04/29
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), Sergey Korshunoff, 2016/04/29
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution),
Edmund Grimley Evans <=
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), u-tcc-uepj, 2016/04/29
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), David Mertens, 2016/04/29
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), Sergey Korshunoff, 2016/04/29
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), Sergey Korshunoff, 2016/04/29
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), grischka, 2016/04/29
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), Sergey Korshunoff, 2016/04/29
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), grischka, 2016/04/30
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), Sergey Korshunoff, 2016/04/30
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), grischka, 2016/04/30
- Re: [Tinycc-devel] X(X(1)) (nested macro substitution), Sergey Korshunoff, 2016/04/30