OSDN Git Service

libstdc++-v3:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Oct 2006 14:03:05 +0000 (14:03 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Oct 2006 14:03:05 +0000 (14:03 +0000)
* testsuite/config/default.exp (${tool}_target_compile): Use
v3_target_compile.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118182 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/config/default.exp

index 3d10494..f7182e4 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR tree-optimization/29637
index 7776cb4..9972247 100644 (file)
@@ -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
 
index ce61055..9274108 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * src/debug.cc (_Safe_sequence_base::_M_revalidate_singular): Fix
index 1c643f6..c08f6dd 100644 (file)
@@ -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
 }