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: Eric Gallager <egall at gwmail dot gwu dot edu>
- To: Louis Krupp <louis dot krupp at zoho dot com>
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: Fri, 29 Dec 2017 22:40:38 -0500
- 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>
On 12/29/17, Louis Krupp <louis.krupp@zoho.com> wrote:
> I tried to build the trunk using:
>
> BOOT_CFLAGS='-g -Og' CFLAGS_FOR_TARGET='-g -Og' CFLAGS_FOR_BUILD='-g -Og'
>
> I got a number of compilation warnings -- promoted to errors -- about
> possibly uninitialized variables.
>
> I have what I believe is a decent patch that initializes those variables and
> which I've tested at revision 256030. The errors go away for -Og, as well as
> for -O0.
>
> When I run make with no arguments and then run "make check", I get the same
> test failures as I do in an unmodified and identically built reference tree
> at the same revision.
>
> I've attached the patch along with a list of tentative ChangeLog entries and
> their respective directories. I can adjust the format of those entries as
> needed.
>
> Being able to build with -Og or -O0 would make my life easier.
>
> Louis Krupp
>
Patches go to the gcc-patches mailing list instead. Also please be
aware of bug 78394: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78394