target-supports.exp (check_profiling_available): Return false for -p on *-*-cygwin...
authorDavid Billinghurst <billingd@gcc.gnu.org>
Tue, 12 May 2009 08:34:46 +0000 (08:34 +0000)
committerDavid Billinghurst <billingd@gcc.gnu.org>
Tue, 12 May 2009 08:34:46 +0000 (08:34 +0000)
2009-05-12  David Billinghurst <billingd@gcc.gnu.org>

    * lib/target-supports.exp (check_profiling_available): Return
    false for -p on *-*-cygwin* targets.

From-SVN: r147421

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index b6b0949..fc377f7 100644 (file)
@@ -1,3 +1,8 @@
+2009-05-12  David Billinghurst <billingd@gcc.gnu.org>
+
+       * lib/target-supports.exp (check_profiling_available): Return
+       false for -p on *-*-cygwin* targets.
+
 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR tree-optimization/38632
index 92bde78..56f7877 100644 (file)
@@ -466,6 +466,11 @@ proc check_profiling_available { test_what } {
        return 0
     }
 
+    # cygwin does not support -p.
+    if { [istarget *-*-cygwin*] && [lindex $test_what 1] == "-p" } {
+       return 0
+    }
+
     # uClibc does not have gcrt1.o.
     if { [check_effective_target_uclibc]
         && ([lindex $test_what 1] == "-p"