From ee742c05a25dc4f364c345b1675203c402a5cda4 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Sat, 23 Oct 2004 15:53:06 +0000 Subject: loop-1.c: Add -static for *-*-darwin*. 2004-10-23 Andrew Pinski . * gcc.dg/tree-ssa/loop-1.c: Add -static for *-*-darwin*. From-SVN: r89489 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/tree-ssa/loop-1.c | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fc99dea..cc666b6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-10-23 Andrew Pinski . + + * gcc.dg/tree-ssa/loop-1.c: Add -static for *-*-darwin*. + 2004-10-23 Ben Elliston * gcc.c-torture/execute/loop-2e.x: Remove. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c index 04f4ebf..72abd35 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c @@ -6,6 +6,11 @@ -msmall-exec avoids this by enabling a call instruction with immediate operand. */ /* { dg-options "-O1 -ftree-loop-ivcanon -funroll-loops -fdump-tree-ivcanon-details -fdump-tree-cunroll-details -fdump-tree-vars -msmall-exec" { target s390-*-* } } */ +/* On Darwin, we call extern functions via a stub in PIC mode which is default and + the stub is named after the function. To avoid this we use -static to go out + of PIC mode. */ +/* { dg-options "-O1 -ftree-loop-ivcanon -funroll-loops -fdump-tree-ivcanon-details -fdump-tree-cunroll-details -fdump-tree-vars -static" { target *-*-darwin* } } */ + void xxx(void) { int x = 45; -- cgit v1.1