diff options
author | Mark Mitchell <mark@codesourcery.com> | 2003-06-20 19:11:07 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2003-06-20 19:11:07 +0000 |
commit | 3348ded5b7980de1f1290b1a1408645a585e73a0 (patch) | |
tree | 13408f2c7fdb26e4a7a331c4686ff83eb969e8b1 | |
parent | 66d418e6579367dfd66dbbfe9f40314967962e45 (diff) | |
download | gcc-3348ded5b7980de1f1290b1a1408645a585e73a0.zip gcc-3348ded5b7980de1f1290b1a1408645a585e73a0.tar.gz gcc-3348ded5b7980de1f1290b1a1408645a585e73a0.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9d8e410..25dc0dc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index db3700a..38d416c 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" |