diff mbox

Fix failing pr56184.C

Message ID 51A88319.9060203@arm.com
State New
Headers show

Commit Message

Marcus Shawcroft May 31, 2013, 11:01 a.m. UTC
Since http://gcc.gnu.org/ml/gcc-patches/2013-05/msg01475.html introduced 
a warning for bit field types with width greater than the contained enum 
width pr56184.C has failed for arm*-*-* due to the extra diagnostic 
emitted.   This patch disables short-enums in the test case.

OK?

/M

2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>

	* gcc.target/arm/pr56184.C: Add -fno-short-enums.

Comments

Mike Stump May 31, 2013, 5:08 p.m. UTC | #1
On May 31, 2013, at 4:01 AM, Marcus Shawcroft <marcus.shawcroft@arm.com> wrote:
> Since http://gcc.gnu.org/ml/gcc-patches/2013-05/msg01475.html introduced a warning for bit field types with width greater than the contained enum width pr56184.C has failed for arm*-*-* due to the extra diagnostic emitted.   This patch disables short-enums in the test case.
> 
> OK?

Ok.
diff mbox

Patch

diff --git a/gcc/testsuite/gcc.target/arm/pr56184.C b/gcc/testsuite/gcc.target/arm/pr56184.C
index db92db1..d44c1b4 100644
--- a/gcc/testsuite/gcc.target/arm/pr56184.C
+++ b/gcc/testsuite/gcc.target/arm/pr56184.C
@@ -1,5 +1,5 @@ 
 /* { dg-do compile } */
-/* { dg-options "-O2 -mthumb -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mtune=cortex-a9 -fno-section-anchors" } */
+/* { dg-options "-fno-short-enums -O2 -mthumb -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mtune=cortex-a9 -fno-section-anchors" } */
 
 typedef unsigned int size_t;
 __extension__ typedef int __intptr_t;