Patchwork [testsuite] gcc.target/arm/pr42879.c: handle big-endian

login
register
mail settings
Submitter Janis Johnson
Date Sept. 26, 2012, 11:59 p.m.
Message ID <506396D9.1090006@mentor.com>
Download mbox | patch
Permalink /patch/187245/
State New
Headers show

Comments

Janis Johnson - Sept. 26, 2012, 11:59 p.m.
Test gcc.target/arm/pr42879.c fails for big-endian multilibs.  Julian
Brown suggested this fix.

Tested on arm-none-eabi with several multilibs, checked in on trunk.

Janis
2012-09-26  Janis Johnson  <janisjo@codesourcery.com>

	* gcc.target/arm/pr42879.c: Handle big-endian.

Patch

Index: gcc.target/arm/pr42879.c
===================================================================
--- gcc.target/arm/pr42879.c	(revision 191765)
+++ gcc.target/arm/pr42879.c	(working copy)
@@ -4,6 +4,9 @@ 
 
 struct A
 {
+#ifdef __ARMEB__
+  int dummy:31;
+#endif
   int v:1;
 };