https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69586
Bug ID: 69586 Summary: FAIL: gcc.dg/uninit-21.c for target defaulting to short enum Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: thopre01 at gcc dot gnu.org CC: rguenther at suse dot de Target Milestone: --- Target: arm-none-eabi Created attachment 37537 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37537&action=edit Dump of failing uninit1 pass Hi, The new gcc.dg/uninit-21.c fails on arm-none-eabi with the following error: gcc/testsuite/gcc.dg/uninit-21.c: In function 'yp_update': gcc/testsuite/gcc.dg/uninit-21.c:31:3: warning: 'master' may be used uninitialized in this function [-Wmaybe-uninitialized] FAIL: gcc.dg/uninit-21.c (test for bogus messages, line 31) The test succeeds if passing -fno-short-enum or giving RPC_CANTENCODEARGS a value to big to represent with an unsigned short (65536 or higher) due to the cast creating confusing. See attached dump of uninit1 pass. The second cast using a bitwise and with 255 starts from forwprop1. Best regards.