From patchwork Tue Sep 11 12:46:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [TESTSUITE] Add -fno-short-enums to pr51712 Date: Tue, 11 Sep 2012 02:46:37 -0000 From: Kyrylo Tkachov X-Patchwork-Id: 183104 Message-Id: <000001cd901b$7b9d5e40$72d81ac0$@tkachov@arm.com> To: Add -fno-short-enums flag to test c-c++-common/pr51712.c as discussed in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51712. This removes the excess warning that caused the test to fail. Tested in arm-none-eabi configuration. The test now passes. Comment? Ok for trunk? Thanks, Kyrill gcc/testsuite 2012-09-11 Kyrylo Tkachov * c-c++-common/pr51712.c: Add -fno-short-enums flag to test. --- a/gcc/testsuite/c-c++-common/pr51712.c +++ b/gcc/testsuite/c-c++-common/pr51712.c @@ -1,6 +1,6 @@ /* PR c/51712 */ /* { dg-do compile } */ -/* { dg-options "-Wtype-limits" } */ +/* { dg-options "-Wtype-limits -fno-short-enums" {target short_enums} } */ enum test_enum { FOO,