target-supports.exp (check_alias_available): Make the test program acceptable to...
authorMark Mitchell <mark@codesourcery.com>
Fri, 20 Jun 2003 19:11:07 +0000 (19:11 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 20 Jun 2003 19:11:07 +0000 (19:11 +0000)
* lib/target-supports.exp (check_alias_available): Make the test
program acceptable to the Solaris assembler.

From-SVN: r68277

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index 9d8e41097e221afd9c2dbb79a2218938ee7fa870..25dc0dce75bd7090087dccc8a652cc2d96e521d6 100644 (file)
@@ -1,5 +1,8 @@
 2003-06-20  Mark Mitchell  <mark@codesourcery.com>
 
+       * 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.
 
index db3700a0aff89e4b44cdf2450147b17a90f64411..38d416ccb77948da2eaab9b5a55e6604ebe4bb9c 100644 (file)
@@ -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"