diff mbox

[PR,testsuite/67959] Minor cleanup for ssa-thread-13.c

Message ID 561E8AFC.5050809@redhat.com
State New
Headers show

Commit Message

Jeff Law Oct. 14, 2015, 5:03 p.m. UTC
The enum rtx_code bitfield causes grief for arm-eabi.  Given the test 
doesn't actually care about the size of that field, the easiest fix was 
just to make it a simple integer.

Tested on both x86_64-linux-gnu and arm-eabi to ensure the updated test 
passes on both targets.

Installed on the trunk.

Jeff
commit e1eb08886003fdc954c5763ec712109e158f1b0c
Author: Jeff Law <law@tor.usersys.redhat.com>
Date:   Wed Oct 14 13:01:50 2015 -0400

    [PATCH] [PR testsuite/67959]Minor cleanup for ssa-thread-13.c
    
            PR testsuite/67959
            * gcc.dg/tree-ssa/ssa-thread-13.c: Avoid bitfield assumptions.
diff mbox

Patch

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 04dbdcc..8009732 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@ 
+2015-10-14  Jeff Law  <law@redhat.com>
+
+        PR testsuite/67959
+	* gcc.dg/tree-ssa/ssa-thread-13.c: Avoid bitfield assumptions.
+
 2015-10-14  Marek Polacek  <polacek@redhat.com>
 
 	* gcc.dg/tree-ssa/reassoc-39.c: Use -g.  Adjust dg-final.
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-thread-13.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-thread-13.c
index 5051d11..99d45f5 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-thread-13.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-thread-13.c
@@ -33,7 +33,7 @@  union rtunion_def
 typedef union rtunion_def rtunion;
 struct rtx_def
 {
-  __extension__ enum rtx_code code:16;
+  int code;
   union u
   {
     rtunion fld[1];