This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

check_profiling_available uClibc fix


uClibc lacks gcrt1.o, so target-supports.exp:check_profiling_available 
should disallow -p/-pg profiling for uClibc.  (Other types of profiling 
work, however.)

Tested with cross to powerpc-none-linux-uclibc.  OK to commit?

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.

Index: gcc/testsuite/lib/target-supports.exp
===================================================================
--- gcc/testsuite/lib/target-supports.exp	(revision 123910)
+++ gcc/testsuite/lib/target-supports.exp	(working copy)
@@ -348,6 +348,13 @@
 	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

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]