News for hackers. Stuff that matters.
Re:What if you couldn’t program with loops? by 0xcde4c3db on Monday July 15, 2019 @09:31AM (#20440608)
I even convinced a C++ compiler (don't recall whether it was g++ or clang++; it might have been during a FreeBSD fling) to do TCO at one point, but I don't remember exactly how I did it and don't think the requirements are documented anywhere. It probably involved functions declared "static" (i.e. internal linkage) and with the same signature.
Re:What if you couldn’t program with loops? by dleslie on Monday July 15, 2019 @10:25AM (#20441102)
GCC does it automatically, if it's told to optimize at level 2, IIRC.

It's -foptimize-sibling-calls