diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2004-02-21 03:02:32 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2004-02-21 03:02:32 +0000 |
commit | 54a478708e2324039318d1d88149d61f04ffb590 (patch) | |
tree | 5933ad2c7f2287935ed7289b7e21edff1f928ca7 /gcc | |
parent | 0d856ba2d26b6baa58932c461952f1abc6275082 (diff) | |
download | gcc-54a478708e2324039318d1d88149d61f04ffb590.zip gcc-54a478708e2324039318d1d88149d61f04ffb590.tar.gz gcc-54a478708e2324039318d1d88149d61f04ffb590.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bad926b..cdb131e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 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 argument to determine whether we support a profiling type. * lib/gcc-dg.exp (dg-require-profiling): Pass argument to diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 173ce61..485a8d7 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 ""] |