aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/lib/target-supports.exp2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 3d10494..f7182e4 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 7776cb4..9972247 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