Commit f263fe40 by H.J. Lu Committed by H.J. Lu

Check if -pg links in check_profiling_available

	* lib/target-supports.exp (check_profiling_available): Check if
	-pg links.

From-SVN: r219560
parent caee690e
2015-01-13 H.J. Lu <hongjiu.lu@intel.com>
* lib/target-supports.exp (check_profiling_available): Check if
-pg links.
2015-01-13 Jan Hubicka <hubicka@ucw.cz>
PR ipa/64565
......
......@@ -549,7 +549,16 @@ proc check_profiling_available { test_what } {
}
}
return $profiling_available_saved
# -pg link test result can't be cached since it may change between
# runs.
set profiling_working $profiling_available_saved
if { $profiling_available_saved == 1
&& ![check_no_compiler_messages_nocache profiling executable {
int main() { return 0; } } "-pg"] } {
set profiling_working 0
}
return $profiling_working
}
# Check to see if a target is "freestanding". This is as per the definition
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment