Patchwork Fix eb76.C regression for arm*-*-*

login
register
mail settings
Submitter Marcus Shawcroft
Date May 31, 2013, 11:01 a.m.
Message ID <51A88326.9060503@arm.com>
Download mbox | patch
Permalink /patch/247923/
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 eb76.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>

	* g++.old-deja/g++.robertl/eb76.C: Add -fno-short-enums.
Mike Stump - May 31, 2013, 5:07 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 eb76.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/g++.old-deja/g++.robertl/eb76.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb76.C
index c74e7bd..3125dc1 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb76.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb76.C
@@ -1,4 +1,5 @@ 
 // { dg-do assemble  }
+// { dg-options "-fno-short-enums" }
 // the template operator!= interferes.  It should be in a namespace.
 
 #include <utility>