From 709e1a1a8a1118ace67aad141573bbd2c519f329 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 30 Oct 2006 14:03:05 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/lib/target-supports.exp | 2 ++ libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/testsuite/config/default.exp | 2 +- 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3d1049466d6a..f7182e4c0da3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-10-30 Joseph Myers + + * lib/target-supports.exp (check_function_available): Declare + function before calling. + 2006-10-30 Jakub Jelinek PR tree-optimization/29637 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 7776cb4f687d..99722474ff8c 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -936,6 +936,8 @@ proc check_function_available { function } { set exe "function[pid].exe" set f [open $src "w"] + puts $f "#ifdef __cplusplus\nextern \"C\"\n#endif\n" + puts $f "char $function ();\n" puts $f "int main () { $function (); }" close $f diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ce61055d8b72..9274108fdcce 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2006-10-30 Joseph Myers + + * testsuite/config/default.exp (${tool}_target_compile): Use + v3_target_compile. + 2006-10-29 Paolo Carlini * src/debug.cc (_Safe_sequence_base::_M_revalidate_singular): Fix diff --git a/libstdc++-v3/testsuite/config/default.exp b/libstdc++-v3/testsuite/config/default.exp index 1c643f66f9a3..c08f6dd61efc 100644 --- a/libstdc++-v3/testsuite/config/default.exp +++ b/libstdc++-v3/testsuite/config/default.exp @@ -28,6 +28,6 @@ load_lib "standard.exp" # target-supports.exp uses this proc ${tool}_target_compile { srcfile destfile compile_type options } { - target_compile $srcfile $destfile $compile_type $options + v3_target_compile $srcfile $destfile $compile_type $options }