* lib/target-supports.exp (check_profiling_available): Report -p
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Feb 2008 00:12:03 +0000 (00:12 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Feb 2008 00:12:03 +0000 (00:12 +0000)
unavailable on *-*-mingw*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132651 138bc75d-0d04-0410-961f-82ee72b054a4

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

index db11e64..1e844e3 100644 (file)
@@ -1,5 +1,10 @@
 2008-02-25  Joseph Myers  <joseph@codesourcery.com>
 
+       * lib/target-supports.exp (check_profiling_available): Report -p
+       unavailable on *-*-mingw*.
+
+2008-02-25  Joseph Myers  <joseph@codesourcery.com>
+
        * lib/target-supports.exp (check_effective_target_pthread_h): New.
        * gcc.dg/pthread-init-1.c, gcc.dg/pthread-init-2.c: Use
        dg-require-effective-target pthread_h.
index c43a371..20bcdea 100644 (file)
@@ -410,6 +410,11 @@ proc check_profiling_available { test_what } {
        return 0
     }
 
+    # MinGW does not support -p.
+    if { [istarget *-*-mingw*] && [lindex $test_what 1] == "-p" } {
+       return 0
+    }
+
     # At present, there is no profiling support on NetWare.
     if { [istarget *-*-netware*] } {
        return 0