Possbile patch for compilation errors re possibly uninitialized variables at -Og

Jeff Law law@redhat.com
Mon Jan 1 17:08:00 GMT 2018


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



More information about the Gcc mailing list