diff mbox

Fix pr54684.C regression for arm*-*-*

Message ID 51A8833D.3040803@arm.com
State New
Headers show

Commit Message

Marcus Shawcroft May 31, 2013, 11:02 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 pr54684.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++.dg/torture/pr54684.C: Add -fno-short-enums.

Comments

Mike Stump May 31, 2013, 5:09 p.m. UTC | #1
On May 31, 2013, at 4:02 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 pr54684.C has failed for arm*-*-* due to the extra diagnostic emitted.   This patch disables short-enums in the test case.
> 
> OK?

Ok.  These are trivial I think, if you feel confident and don't need the additional review.
diff mbox

Patch

diff --git a/gcc/testsuite/g++.dg/torture/pr54684.C b/gcc/testsuite/g++.dg/torture/pr54684.C
index 40c47f3..4934011 100644
--- a/gcc/testsuite/g++.dg/torture/pr54684.C
+++ b/gcc/testsuite/g++.dg/torture/pr54684.C
@@ -1,4 +1,5 @@ 
 // { dg-do compile }
+// { dg-options "-fno-short-enums" }
 
 typedef union tree_node *tree;
 typedef union gimple_statement_d *gimple;