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 11:56:03 +0300

> Bad idea :
    #define A B
    #define B A
    return A + B;

Thanks. Segfaults fixed. And even the output of the tcc and gcc for
the above test is the same (but not if #define A B+1)
https://github.com/seyko2/tinycc/commit/ddeed8dda55b6d0f8b8cc19bfcba4fe1b91dc3b2

PS: start point: tcc don't expand X(X(1)), current state: sometime tcc
detects recursion at some later point then gcc



reply via email to

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