loop-1.c: Add -static for *-*-darwin*.
authorAndrew Pinski <pinskia@physics.uc.edu>
Sat, 23 Oct 2004 15:53:06 +0000 (15:53 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sat, 23 Oct 2004 15:53:06 +0000 (08:53 -0700)
2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>.

        * gcc.dg/tree-ssa/loop-1.c: Add -static for *-*-darwin*.

From-SVN: r89489

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/loop-1.c

index fc99dea437a7049f61e99b849ea683242da654c9..cc666b6d33083363e00362b4a8dc8b4657388212 100644 (file)
@@ -1,3 +1,7 @@
+2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>.
+
+       * gcc.dg/tree-ssa/loop-1.c: Add -static for *-*-darwin*.
+
 2004-10-23  Ben Elliston  <bje@au.ibm.com>
 
        * gcc.c-torture/execute/loop-2e.x: Remove.
index 04f4ebf5b37ec32572bfebad5966282b848ef948..72abd35854c4575e69f178e0c64c5d4395054a5d 100644 (file)
@@ -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;