]> gcc.gnu.org Git - gcc.git/commitdiff
target-supports.exp (check_profiling_available): Return 0 for uClibc with -p or -pg.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 17 Apr 2007 23:55:07 +0000 (00:55 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 17 Apr 2007 23:55:07 +0000 (00:55 +0100)
2007-04-17  Joseph Myers  <joseph@codesourcery.com>
            Richard Sandiford  <richard@codesourcery.com>

* lib/target-supports.exp (check_profiling_available): Return 0
for uClibc with -p or -pg.

Co-Authored-By: Richard Sandiford <richard@codesourcery.com>
From-SVN: r123938

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

index b7ca56f9666a41e91317c8d812d05c83434e948b..a1625efe187ff906e6a564bd67509190cd264770 100644 (file)
@@ -1,3 +1,9 @@
+2007-04-17  Joseph Myers  <joseph@codesourcery.com>
+            Richard Sandiford  <richard@codesourcery.com>
+
+       * lib/target-supports.exp (check_profiling_available): Return 0
+       for uClibc with -p or -pg.
+
 2007-04-17  Simon Martin  <simartin@users.sourceforge.net>
 
        PR c++/31517
index c6309665825c5a0067a6f91bed49fca7d26bc0aa..640a07b6b761a5cbf76e1c4d7325c03d1c0573ba 100644 (file)
@@ -348,6 +348,13 @@ proc check_profiling_available { test_what } {
        return 0
     }
 
+    # uClibc does not have gcrt1.o.
+    if { [check_effective_target_uclibc]
+        && ([lindex $test_what 1] == "-p"
+            || [lindex $test_what 1] == "-pg") } {
+       return 0
+    }
+
     # Now examine the cache variable.
     if {![info exists profiling_available_saved]} {
        # Some targets don't have any implementation of __bb_init_func or are
This page took 0.105831 seconds and 5 git commands to generate.