From 2135ed0e63239a2d5fbd4b2dcbad2568777967a4 Mon Sep 17 00:00:00 2001 From: Oleg Endo Date: Sun, 12 May 2013 10:27:48 +0000 Subject: [PATCH] re PR target/57108 ([4.7/4.8/4.9] SH internal compiler error: in int_mode_for_mode, at stor-layout.c:395) PR target/57108 * gcc.target/sh/pr57108.c: Move this test case to ... * gcc.c-torture/compile/pr57108.c: ... here. From-SVN: r198803 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.c-torture/compile/pr57108.c | 17 +++++++++++++++++ gcc/testsuite/gcc.target/sh/pr57108.c | 19 ------------------- 3 files changed, 23 insertions(+), 19 deletions(-) create mode 100644 gcc/testsuite/gcc.c-torture/compile/pr57108.c delete mode 100644 gcc/testsuite/gcc.target/sh/pr57108.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e6fec8085c5..424f68707ef 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2013-05-12 Oleg Endo + + PR target/57108 + * gcc.target/sh/pr57108.c: Move this test case to ... + * gcc.c-torture/compile/pr57108.c: ... here. + 2013-05-10 Richard Biener PR tree-optimization/57214 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr57108.c b/gcc/testsuite/gcc.c-torture/compile/pr57108.c new file mode 100644 index 00000000000..531af8d245d --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr57108.c @@ -0,0 +1,17 @@ +/* PR target/57108 */ + +void __assert_func (void) __attribute__ ((__noreturn__)); + +void +ATATransfer (int num, int buffer) +{ + int wordCount; + + while (num > 0) + { + wordCount = num * 512 / sizeof (int); + + ((0 == (buffer & 63)) ? (void)0 : __assert_func () ); + ((0 == (wordCount & 31)) ? (void)0 : __assert_func ()); + } +} diff --git a/gcc/testsuite/gcc.target/sh/pr57108.c b/gcc/testsuite/gcc.target/sh/pr57108.c deleted file mode 100644 index 3d39637b68f..00000000000 --- a/gcc/testsuite/gcc.target/sh/pr57108.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-do compile { target "sh*-*-*" } } */ -/* { dg-options "-O1" } */ - -void __assert_func (void) __attribute__ ((__noreturn__)) ; - -void ATATransfer (int num, int buffer) -{ - int wordCount; - - while (num > 0) - { - wordCount = num * 512 / sizeof (int); - - ((0 == (buffer & 63)) ? (void)0 : __assert_func () ); - ((0 == (wordCount & 31)) ? (void)0 : __assert_func ()); - } - - - } -- 2.30.2