OSDN Git Service

* lib/target-supports.exp (check_alias_available): Don't mangle
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 21 Feb 2004 03:02:32 +0000 (03:02 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 21 Feb 2004 03:02:32 +0000 (03:02 +0000)
function `g' in test program.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78208 138bc75d-0d04-0410-961f-82ee72b054a4

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

index bad926b..cdb131e 100644 (file)
@@ -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
index 173ce61..485a8d7 100644 (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 ""]