OSDN Git Service

* gcc.dg/weak/typeof-2.c: Needs aliases as well as weak.
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Oct 2004 00:16:57 +0000 (00:16 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Oct 2004 00:16:57 +0000 (00:16 +0000)
* gcc.dg/weak/weak-3.c: Likewise.
* gcc.dg/weak/weak-5.c: Likewise.
* gcc.dg/weak/weak-9.c: Likewise.
* lib/file-format.exp (gcc_target_object_format): Darwin has Mach-O.
* lib/target-supports.exp (check_weak_available): Mach-O does weak.

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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/weak/typeof-2.c
gcc/testsuite/gcc.dg/weak/weak-3.c
gcc/testsuite/gcc.dg/weak/weak-5.c
gcc/testsuite/gcc.dg/weak/weak-9.c
gcc/testsuite/lib/file-format.exp
gcc/testsuite/lib/target-supports.exp

index 647ab55..cecd7fa 100644 (file)
@@ -1,5 +1,12 @@
 2004-10-27  Geoffrey Keating  <geoffk@apple.com>
 
+       * gcc.dg/weak/typeof-2.c: Needs aliases as well as weak.
+       * gcc.dg/weak/weak-3.c: Likewise.
+       * gcc.dg/weak/weak-5.c: Likewise.
+       * gcc.dg/weak/weak-9.c: Likewise.
+       * lib/file-format.exp (gcc_target_object_format): Darwin has Mach-O.
+       * lib/target-supports.exp (check_weak_available): Mach-O does weak.
+
        * gcc.dg/darwin-weakimport-1.c: New.
 
 2004-10-28  Ben Elliston  <bje@au.ibm.com>
index 7e58bc8..0ff192b 100644 (file)
@@ -1,6 +1,7 @@
 /* Test typeof with __asm redirection. */
 /* { dg-do compile } */
 /* { dg-require-weak "" } */
+/* { dg-require-alias "" } */
 /* { dg-options "-O2" } */
 
 extern int foo1 (int x) __asm ("baz1");
index da4367a..c9448f0 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-alias "" } */
 /* { dg-require-weak "" } */
 /* { dg-options "-fno-common" } */
 
index d70f633..a8aca28 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-weak "" } */
+/* { dg-require-alias "" } */
 /* { dg-options "-fno-common" } */
 
 /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?vfoo1a" } } */
index 29a4e65..95e8f80 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-weak "" } */
+/* { dg-require-alias "" } */
 /* { dg-options "-fno-common" } */
 
 /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?f1" } } */
index ab69f93..7be398e 100644 (file)
 
 proc gcc_target_object_format { } { 
     global gcc_target_object_format_saved
+    global target_triplet
     global tool
 
     if [info exists gcc_target_object_format_saved] {
         verbose "gcc_target_object_format returning saved $gcc_target_object_format_saved" 2
+    } elseif { [string match "*-*-darwin*" $target_triplet] } {
+       # Darwin doesn't necessarily have objdump, so hand-code it.
+       set gcc_target_object_format_saved mach-o
     } else {
         set objdump_name [find_binutils_prog objdump]
         set open_file [open objfmtst.c w]
index 25d1f8d..a737f5d 100644 (file)
@@ -57,6 +57,7 @@ proc check_weak_available { } {
         elf      { return 1 }
         ecoff    { return 1 }
         a.out    { return 1 }
+       mach-o   { return 1 }
         unknown  { return -1 }
         default  { return 0 }
     }