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: Sergey Korshunoff
Subject: Re: [Tinycc-devel] X(X(1)) (nested macro substitution)
Date: Fri, 29 Apr 2016 07:56:06 +0300

> The recommendation is:
>  Implementations should avoid imposing fixed translation limits
>  whenever possible.

Implemented adddition is a macro recursion detection:
 * on define macro stage (is the name of macro can be found in macro string)
 * on macro call stage (is the name of macro can be found in args)

If macro or call is not recursive then we don't block expansion.
Behaviour is the same as gcc have. All tcc preprop test pass. A
compilation speed is not changed.



reply via email to

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