mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-31 23:41:01 +08:00
Check if -pg links in check_profiling_available
* lib/target-supports.exp (check_profiling_available): Check if -pg links. From-SVN: r219560
This commit is contained in:
parent
caee690e91
commit
f263fe40d7
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user