@wingo @ltratt @cfbolz Time for my pedantry... let's not mix 'stack traces' (a debugging feature) with 'stack frame' (a memory allocation). Stack traces already include 'frames' that do not correspond to any physical frame, thanks to inlining
(That is another example of something that can be done at -O0, via always_inline, and straddles 'correctness' vs 'optimisation'. For TC[O] it depends whether you classify asymptotic space usage as functional or extrafunctional... the use case matters.)