]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
target-supports.exp (check_alias_available): Don't mangle function `g' in test program.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sat, 21 Feb 2004 03:02:32 +0000 (03:02 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sat, 21 Feb 2004 03:02:32 +0000 (03:02 +0000)
* lib/target-supports.exp (check_alias_available): Don't mangle
function `g' in test program.

From-SVN: r78208

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

index bad926b8ac9bf2553ae334c54c64e22734e21ec2..cdb131e504c2cfd4de2ed676323c4c4faa5608f6 100644 (file)
@@ -1,3 +1,8 @@
+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
index 173ce6128d38c428058df3a608ebfd573e538fca..485a8d75dd91e286d4be19aa0ae2fc73d1524441 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 ""]