This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Possbile patch for compilation errors re possibly uninitialized variables at -Og
- From: Jeff Law <law at redhat dot com>
- To: Louis Krupp <louis dot krupp at zoho dot com>, Eric Gallager <egall at gwmail dot gwu dot edu>
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: Mon, 1 Jan 2018 10:07:54 -0700
- Subject: Re: Possbile patch for compilation errors re possibly uninitialized variables at -Og
- Authentication-results: sourceware.org; auth=none
- References: <160a1b8a48d.b8e3349a30584.4322563689028858714@zoho.com> <CAMfHzOsV0rZxfvPAkaLD-TRadWgQQ3Oy94jUQSrq1ieJ8xuGkw@mail.gmail.com> <160a7127857.ba1787136777.3538844224492150000@zoho.com>
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