Patchwork Fix failing pr56184.C

login
register
mail settings
Submitter Marcus Shawcroft
Date May 31, 2013, 11:01 a.m.
Message ID <51A88319.9060203@arm.com>
Download mbox | patch
Permalink /patch/247922/
State New
Headers show

Comments

Marcus Shawcroft - May 31, 2013, 11:01 a.m.
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.
Mike Stump - May 31, 2013, 5:08 p.m.
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.

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;