tinycc-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]