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]

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


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

Attachment: cl.uninit.256030.txt
Description: Text document

Attachment: patch.uninit.256030.txt
Description: Text document


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