* gfortran.dg/whole_file_5.f90: Add -fpie when pic, fix scan
pattern.
* gfortran.dg/whole_file_6.f90: Likewise.
From-SVN: r151211
+2009-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * gfortran.dg/whole_file_5.f90: Add -fpie when pic, fix scan
+ pattern.
+ * gfortran.dg/whole_file_6.f90: Likewise.
+
2009-08-28 Cary Coutant <ccoutant@google.com>
PR debug/41063
! { dg-do "compile" }
! { dg-options "-O3 -fwhole-file -fdump-tree-optimized" }
+! { dg-options "-O3 -fwhole-file -fdump-tree-optimized -fpie" { target { ! nonpic } } }
!
! Check that inlining of functions declared BEFORE usage works.
! If yes, then the dump does not contain a call to F().
print *, a
END PROGRAM
-! { dg-final { scan-tree-dump-times "= f\(\)" 0 "optimized" } }
+! { dg-final { scan-tree-dump-times "= f \\(\\)" 0 "optimized" } }
! { dg-final { cleanup-tree-dump "optimized" } }
! { dg-do "compile" }
! { dg-options "-O3 -fwhole-file -fdump-tree-optimized" }
+! { dg-options "-O3 -fwhole-file -fdump-tree-optimized -fpie" { target { ! nonpic } } }
!
! Check that inlining of functions declared AFTER usage works.
! If yes, then the dump does not contain a call to F().
f = 42.0
END FUNCTION
-! { dg-final { scan-tree-dump-times "= f\(\)" 0 "optimized" } }
+! { dg-final { scan-tree-dump-times "= f \\(\\)" 0 "optimized" } }
! { dg-final { cleanup-tree-dump "optimized" } }