[patch, testsuite] fix test gcc.dg/pr50908-2.c

Greta Yorsh Greta.Yorsh@arm.com
Tue Jan 24 15:55:00 GMT 2012

The test gcc.dg/pr50908-2.c fails on arm and other targets where short enums
is the default. 

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

This patch adds the missing compiler option -fno-short-enums to the test.


2012-01-24  Greta Yorsh  <Greta.Yorsh@arm.com>

	* gcc.dg/pr50908-2.c (dg-options): Add -fno-short-enums.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-no-short-enums-v2.patch
Type: application/octet-stream
Size: 395 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120124/066bd5d3/attachment.obj>

More information about the Gcc-patches mailing list