Matthew pointed out this test was failing for arm-none-eabi because the rtx_code enum is represented in 8 bits which causes this error:

pr68619-4.c:42:17: error: width of 'code' exceeds its type
   enum rtx_code code:16;


I changed the size of the bitfield in the obvious way. I verified all the other pr68619 tests on arm-none-eabi as well as verifying x86_64's was happy with the change to pr68619-4.c.

Installed on the trunk.

Jeff
commit 7b42c818ec41486da307b50f504d29d20086e8a8
Author: law <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Wed Dec 16 18:53:25 2015 +0000

        * gcc.dg/tree-ssa/pr68619-4.c: Change size of code bitfield.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231717 
138bc75d-0d04-0410-961f-82ee72b054a4

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 83cf7ac..9ce80b1 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2015-12-13  Jeff Law  <l...@redhat.com>
+
+       * gcc.dg/tree-ssa/pr68619-4.c: Change size of code bitfield.
+
 2015-12-16  David Malcolm  <dmalc...@redhat.com>
 
        * c-c++-common/conflict-markers-1.c: New testcase.
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr68619-4.c 
b/gcc/testsuite/gcc.dg/tree-ssa/pr68619-4.c
index da3cdb9..6c7d180 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr68619-4.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr68619-4.c
@@ -39,7 +39,7 @@ union rtunion_def
 typedef union rtunion_def rtunion;
 struct rtx_def
 {
-  enum rtx_code code:16;
+  enum rtx_code code:8;
   union u
   {
     rtunion fld[1];

Reply via email to