target-supports.exp (check_alias_available): Don't mangle function `g' in test program.

* lib/target-supports.exp (check_alias_available): Don't mangle
	function `g' in test program.

From-SVN: r78208
This commit is contained in:
Kaveh R. Ghazi 2004-02-21 03:02:32 +00:00 committed by Kaveh Ghazi
parent 0d856ba2d2
commit 54a478708e
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2004-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* lib/target-supports.exp (check_alias_available): Don't mangle
function `g' in test program.
2004-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* lib/target-supports.exp (check_profiling_available): Check

View file

@ -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 ""]