diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bad926b8ac9..cdb131e504c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-02-20 Kaveh R. Ghazi + + * lib/target-supports.exp (check_alias_available): Don't mangle + function `g' in test program. + 2004-02-20 Kaveh R. Ghazi * lib/target-supports.exp (check_profiling_available): Check diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 173ce6128d3..485a8d75dd9 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -109,6 +109,7 @@ proc check_alias_available { } { # Compile a small test program. The definition of "g" is # necessary to keep the Solaris assembler from complaining # about the program. + puts $f "#ifdef __cplusplus\nextern \"C\"\n#endif\n" puts $f "void g() {} void f() __attribute__((alias(\"g\")));" close $f set lines [${tool}_target_compile "tmp.c" "tmp.o" object ""]