Commit 709e1a1a by Joseph Myers Committed by Joseph Myers

default.exp (${tool}_target_compile): Use v3_target_compile.

libstdc++-v3:
	* testsuite/config/default.exp (${tool}_target_compile): Use
	v3_target_compile.

gcc/testsuite:
	* lib/target-supports.exp (check_function_available): Declare
	function before calling.

From-SVN: r118182
parent aaf0c39c
2006-10-30 Joseph Myers <joseph@codesourcery.com>
* lib/target-supports.exp (check_function_available): Declare
function before calling.
2006-10-30 Jakub Jelinek <jakub@redhat.com> 2006-10-30 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/29637 PR tree-optimization/29637
...@@ -936,6 +936,8 @@ proc check_function_available { function } { ...@@ -936,6 +936,8 @@ proc check_function_available { function } {
set exe "function[pid].exe" set exe "function[pid].exe"
set f [open $src "w"] set f [open $src "w"]
puts $f "#ifdef __cplusplus\nextern \"C\"\n#endif\n"
puts $f "char $function ();\n"
puts $f "int main () { $function (); }" puts $f "int main () { $function (); }"
close $f close $f
......
2006-10-30 Joseph Myers <joseph@codesourcery.com>
* testsuite/config/default.exp (${tool}_target_compile): Use
v3_target_compile.
2006-10-29 Paolo Carlini <pcarlini@suse.de> 2006-10-29 Paolo Carlini <pcarlini@suse.de>
* src/debug.cc (_Safe_sequence_base::_M_revalidate_singular): Fix * src/debug.cc (_Safe_sequence_base::_M_revalidate_singular): Fix
......
...@@ -28,6 +28,6 @@ load_lib "standard.exp" ...@@ -28,6 +28,6 @@ load_lib "standard.exp"
# target-supports.exp uses this # target-supports.exp uses this
proc ${tool}_target_compile { srcfile destfile compile_type options } { proc ${tool}_target_compile { srcfile destfile compile_type options } {
target_compile $srcfile $destfile $compile_type $options v3_target_compile $srcfile $destfile $compile_type $options
} }
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