From 3348ded5b7980de1f1290b1a1408645a585e73a0 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Fri, 20 Jun 2003 19:11:07 +0000 Subject: [PATCH] target-supports.exp (check_alias_available): Make the test program acceptable to the Solaris assembler. * lib/target-supports.exp (check_alias_available): Make the test program acceptable to the Solaris assembler. From-SVN: r68277 --- gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/lib/target-supports.exp | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9d8e41097e2..25dc0dce75b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2003-06-20 Mark Mitchell + * lib/target-supports.exp (check_alias_available): Make the test + program acceptable to the Solaris assembler. + PR c++/10749 * g++.dg/template/memclass2.C: New test. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index db3700a0aff..38d416ccb77 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -81,7 +81,10 @@ proc check_alias_available { } { } else { verbose "check_alias_available compiling testfile" 2 set f [open "tmp.c" "w"] - puts $f "void f() __attribute__((alias(\"g\")));" + # Compile a small test program. The definition of "g" is + # necessary to keep the Solaris assembler from complaining + # about the program. + puts $f "void g() {} void f() __attribute__((alias(\"g\")));" close $f set lines [gcc_target_compile "tmp.c" "tmp.o" object ""] file delete "tmp.c" -- 2.30.2