From: Joern Rennecke Date: Fri, 26 Jul 2013 18:28:27 +0000 (+0000) Subject: pr27095.c: For Epiphany, add -mshort-calls. X-Git-Tag: upstream/12.2.0~68628 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40e5049d154f7aae7dbc6ad8a47699db5b7df7c2;p=platform%2Fupstream%2Fgcc.git pr27095.c: For Epiphany, add -mshort-calls. * gcc.dg/pr27095.c: For Epiphany, add -mshort-calls. * gcc.dg/tree-ssa/loop-1.c: Likewise. From-SVN: r201271 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 66d770a..816f65c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -34,6 +34,9 @@ * gcc.c-torture/execute/zerolen-2.x: Likewise. * gcc.c-torture/execute/builtins/stpcpy-chk.x: Likewise. + * gcc.dg/pr27095.c: For Epiphany, add -mshort-calls. + * gcc.dg/tree-ssa/loop-1.c: Likewise. + 2013-07-26 Kyrylo Tkachov * gcc.target/arm/minmax_minus.c: Scan for absence of mov. diff --git a/gcc/testsuite/gcc.dg/pr27095.c b/gcc/testsuite/gcc.dg/pr27095.c index 3fb4909..8d2b47b 100644 --- a/gcc/testsuite/gcc.dg/pr27095.c +++ b/gcc/testsuite/gcc.dg/pr27095.c @@ -5,6 +5,9 @@ to the load from the GOT this also contains the name of the function so for each call the function name would appear twice. */ /* { dg-options "-O2 -mno-relax-pic-calls" { target mips*-*-* } } */ +/* For epiphany, use -mshort-calls to avoid loading the address in two + steps using lowpart and highpart. */ +/* { dg-options "-O2 -mshort-calls" { target epiphany-*-* } } */ extern void *memset (void *, int, __SIZE_TYPE__); extern __SIZE_TYPE__ strlen (const char *); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c index 91220d8..b4e4f2a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c @@ -2,6 +2,8 @@ /* -mlongcall will cause us to place &foo in the CTR register. */ /* { dg-skip-if "" { powerpc*-*-* } { "-mlongcall" } { "" } } */ /* { dg-options "-O1 -ftree-loop-ivcanon -funroll-loops -fdump-tree-ivcanon-details -fdump-tree-cunroll-details -fdump-tree-optimized" } */ +/* { dg-options "-O1 -ftree-loop-ivcanon -funroll-loops -fdump-tree-ivcanon-details -fdump-tree-cunroll-details -fdump-tree-optimized -mshort-calls" {target epiphany-*-*} } */ + /* On 31-bit S/390 the function address will be stored (once) in the literal pool, so scan-assembler-times "foo" will return 1 even if the loop is fully unrolled.