Hi,
gcc.dg/torture/pr37868.c fails on SH because of unaligned accesses.
The patch below skips the test as is done for sparc targets.
It's tested with bootstrap and regtest on i686-pc-linux-gnu.
Applied on trunk.
Regards,
kaz
--
2011-04-19 Kaz Kojima <[email protected]>
PR testsuite/48676
* gcc.dg/torture/pr37868.c: Skip on sh*-*-*.
diff -up ORIG/trunk/gcc/testsuite/gcc.dg/torture/pr37868.c
trunk/gcc/testsuite/gcc.dg/torture/pr37868.c
--- ORIG/trunk/gcc/testsuite/gcc.dg/torture/pr37868.c 2009-11-25
09:25:00.000000000 +0900
+++ trunk/gcc/testsuite/gcc.dg/torture/pr37868.c 2011-04-19
14:02:12.000000000 +0900
@@ -1,6 +1,6 @@
/* { dg-do run } */
/* { dg-options "-fno-strict-aliasing" } */
-/* { dg-skip-if "unaligned access" { sparc*-*-* } "*" "" } */
+/* { dg-skip-if "unaligned access" { sparc*-*-* sh*-*-* } "*" "" } */
extern void abort (void);
#if (__SIZEOF_INT__ <= 2)