On 12/30/2017 03:58 AM, Louis Krupp wrote: > Thank you for making me stop and think about this. I was basically full of > crap; like the test case in 78394, the tree compiles just fine at -O0. I > don't know where I got the idea that it didn't. > > Initializing dozens of variables just to make the tree compile at -Og might > be nice in some abstract way, but it's a moving target, and I would be very > surprised if it were worth the trouble. It's not generally worth the trouble. -Og throttles many optimizations that are necessary to reduce the false positive rates for -Wuninitialized.
Jeff