Fix PR 25443

Dale Johannesen dalej@apple.com
Mon Jan 15 20:49:00 GMT 2007


This test doesn't pass with -fpic/-fPIC, for good reasons explained  
in the PR.
Patch disables the test when those flags are on.  OK?


2007-01-15  Dale Johannesen  <dalej@apple.com>

         * gcc.dg/tree-ssa/loop-3.c:  Disable with -fpic or -fPIC.


Index: gcc/testsuite/gcc.dg/tree-ssa/loop-3.c
===================================================================
--- gcc/testsuite/gcc.dg/tree-ssa/loop-3.c      (revision 120080)
+++ gcc/testsuite/gcc.dg/tree-ssa/loop-3.c      (working copy)
@@ -3,7 +3,8 @@
     assume something about memory addressing modes.  */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
-/* { dg-options "-O1 -fdump-tree-optimized" } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-fpic" "-fPIC" }  
{ "" } } */
+/* { dg-options "-O1 -fno-pic -fno-PIC -fdump-tree-optimized" } */
int arr_base[100];



More information about the Gcc-patches mailing list