The test gcc.dg/pr50908-2.c fails on arm and other targets where short enums is the default.
arm-none-eabi-gcc /work/local-checkouts/main/gcc-fsf/gcc/testsuite/gcc.dg/pr50908-2.c /work/local-checkouts/main/gcc-fsf/gcc/testsuite/gcc.dg/pr50908-2.c:39:8: error: width of 'code' exceeds its type The compile error has nothing to do with the intended functionality of this test. The error is due to the use of a bitfield in the test: "enum rtx_code code:16". This patch adds the missing compiler option -fno-short-enums to the test. gcc/testsuite/ChangeLog 2012-01-24 Greta Yorsh <greta.yo...@arm.com> * gcc.dg/pr50908-2.c (dg-options): Add -fno-short-enums.
test-no-short-enums-v2.patch
Description: Binary data