This is the mail archive of the gcc-patches@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] |
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.Yorsh@arm.com> * gcc.dg/pr50908-2.c (dg-options): Add -fno-short-enums.
Attachment:
test-no-short-enums-v2.patch
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |