This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]