summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-04 15:33:56 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-04 15:33:56 +0000
commit7d500d30a2205a6e6e6783a4b92cc38d66f3b70b (patch)
tree545a86843a7f56673785032587635a16afaa3a9d
parent348ab1da4aff7da8234fa785fb0e1d366f8cb040 (diff)
downloadgcc-7d500d30a2205a6e6e6783a4b92cc38d66f3b70b.tar.gz
* gcc.dg/attr-weakref-1.c: Skip on AIX.
* gcc.dg/torture/pr53922.c: Skip on AIX. * lib/file-format.exp (gcc_target_object_format): AIX is COFF. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202261 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.dg/attr-weakref-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr53922.c1
-rw-r--r--gcc/testsuite/lib/file-format.exp3
4 files changed, 11 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index a8e2009b6be..ffa42f090eb 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2013-09-04 David Edelsohn <dje.gcc@gmail.com>
+
+ * gcc.dg/attr-weakref-1.c: Skip on AIX.
+ * gcc.dg/torture/pr53922.c: Skip on AIX.
+ * lib/file-format.exp (gcc_target_object_format): AIX is COFF.
+
2013-09-04 Teresa Johnson <tejohnson@google.com>
* gcc.dg/unroll_1.c: Test dumping to stderr.
diff --git a/gcc/testsuite/gcc.dg/attr-weakref-1.c b/gcc/testsuite/gcc.dg/attr-weakref-1.c
index 898bc4169a0..ee900fcdec5 100644
--- a/gcc/testsuite/gcc.dg/attr-weakref-1.c
+++ b/gcc/testsuite/gcc.dg/attr-weakref-1.c
@@ -4,7 +4,7 @@
// This test requires support for undefined weak symbols. This support
// is not available on hppa*-*-hpux*. The test is skipped rather than
// xfailed to suppress the warning that would otherwise arise.
-// { dg-skip-if "" { "*-*-darwin*" "hppa*-*-hpux*" } "*" { "" } }
+// { dg-skip-if "" { "*-*-darwin*" "hppa*-*-hpux*" "*-*-aix*" } "*" { "" } }
// For kernel modules and static RTPs, the loader treats undefined weak
// symbols in the same way as undefined strong symbols. The test
// therefore fails to load, so skip it.
diff --git a/gcc/testsuite/gcc.dg/torture/pr53922.c b/gcc/testsuite/gcc.dg/torture/pr53922.c
index e4136014326..d385587e391 100644
--- a/gcc/testsuite/gcc.dg/torture/pr53922.c
+++ b/gcc/testsuite/gcc.dg/torture/pr53922.c
@@ -1,6 +1,7 @@
/* { dg-do run } */
/* { dg-require-weak "" } */
/* { dg-skip-if "No undefined" { *-*-mingw* } { "*" } { "" } } */
+/* { dg-skip-if "No undefined weak" { *-*-aix* } { "*" } { "" } } */
/* { dg-skip-if "No undefined weak" { hppa*-*-hpux* && { ! lp64 } } { "*" } { "" } } */
/* { dg-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } */
diff --git a/gcc/testsuite/lib/file-format.exp b/gcc/testsuite/lib/file-format.exp
index eb96b085c31..7d74d63f7ea 100644
--- a/gcc/testsuite/lib/file-format.exp
+++ b/gcc/testsuite/lib/file-format.exp
@@ -38,6 +38,9 @@ proc gcc_target_object_format { } {
} else {
set gcc_target_object_format_saved som
}
+ } elseif { [istarget *-*-aix*] } {
+ # AIX doesn't necessarily have objdump, so hand-code it.
+ set gcc_target_object_format_saved coff
} else {
set objdump_name [find_binutils_prog objdump]
set open_file [open objfmtst.c w]