On 7/17/19 10:09 AM, BCartier wrote: > Adding multiple calls to the doStuff function in C does not change stack > usage, but in C++ it does. > I am curious on why this difference in optimization exists. Is it a bug or > is there C++ specification against such optimization ? Or is there an > optimization option I am not aware of that would change this behavior ? It's a missed-optimization bug. -- Andrew Haley (he/him) Java Platform Lead Engineer Red Hat UK Ltd. <https://www.redhat.com> https://keybase.io/andrewhaley EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671