aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDominique d'Humieres <dominiq@lps.ens.fr>2014-04-02 10:58:03 +0200
committerDominique d'Humieres <dominiq@gcc.gnu.org>2014-04-02 10:58:03 +0200
commite31436aafc6b4d8bda8ba51756d55c4ceece39b4 (patch)
treea2313967c645caf180ad037e1c93224b03a0c50d /gcc
parent3346667668032767cdd3a1fc0e2a248e57fac655 (diff)
downloadgcc-e31436aafc6b4d8bda8ba51756d55c4ceece39b4.zip
gcc-e31436aafc6b4d8bda8ba51756d55c4ceece39b4.tar.gz
gcc-e31436aafc6b4d8bda8ba51756d55c4ceece39b4.tar.bz2
re PR target/54083 (FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*)
2014-03-26 Dominique d'Humieres <dominiq@lps.ens.fr> Iain Sandoe <iain@codesourcery.com> PR target/54083 * gcc.dg/attr-weakref-1.c: Allow the test on darwin with the additional options -Wl,-undefined,dynamic_lookup and -Wl,-flat_namespace. * gcc.dg/torture/pr53922.c: Additional option -Wl,-flat_namespace for darwin[89]. * gcc.dg/torture/pr60092.c: Additional options -Wl,-undefined,dynamic_lookup and -Wl,-flat_namespace for darwin[89]. Co-Authored-By: Iain Sandoe <iain@codesourcery.com> From-SVN: r209018
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog13
-rw-r--r--gcc/testsuite/gcc.dg/attr-weakref-1.c4
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr53922.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr60092.c2
4 files changed, 19 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 23a6179..95ca113a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,4 +1,17 @@
2014-03-26 Dominique d'Humieres <dominiq@lps.ens.fr>
+ Iain Sandoe <iain@codesourcery.com>
+
+ PR target/54083
+ * gcc.dg/attr-weakref-1.c: Allow the test on darwin
+ with the additional options -Wl,-undefined,dynamic_lookup
+ and -Wl,-flat_namespace.
+ * gcc.dg/torture/pr53922.c: Additional option
+ -Wl,-flat_namespace for darwin[89].
+ * gcc.dg/torture/pr60092.c: Additional options
+ -Wl,-undefined,dynamic_lookup and -Wl,-flat_namespace
+ for darwin[89].
+
+2014-03-26 Dominique d'Humieres <dominiq@lps.ens.fr>
PR target/43751
* lib/prune.exp: Modify the regular express to prune
diff --git a/gcc/testsuite/gcc.dg/attr-weakref-1.c b/gcc/testsuite/gcc.dg/attr-weakref-1.c
index ee900fc..9ed1c51 100644
--- a/gcc/testsuite/gcc.dg/attr-weakref-1.c
+++ b/gcc/testsuite/gcc.dg/attr-weakref-1.c
@@ -4,12 +4,14 @@
// 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*" "*-*-aix*" } "*" { "" } }
+// { dg-skip-if "" { "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.
// { dg-skip-if "" { "*-*-vxworks*" && nonpic } "*" { "-non-static" } }
// { dg-options "-O2" }
+// { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } }
+// { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } }
// { dg-additional-sources "attr-weakref-1a.c" }
// Copyright 2005 Free Software Foundation, Inc.
diff --git a/gcc/testsuite/gcc.dg/torture/pr53922.c b/gcc/testsuite/gcc.dg/torture/pr53922.c
index d385587..3974dc6 100644
--- a/gcc/testsuite/gcc.dg/torture/pr53922.c
+++ b/gcc/testsuite/gcc.dg/torture/pr53922.c
@@ -4,6 +4,7 @@
/* { dg-skip-if "No undefined weak" { *-*-aix* } { "*" } { "" } } */
/* { dg-skip-if "No undefined weak" { hppa*-*-hpux* && { ! lp64 } } { "*" } { "" } } */
/* { dg-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } */
+/* { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } } */
int x(int a)
{
diff --git a/gcc/testsuite/gcc.dg/torture/pr60092.c b/gcc/testsuite/gcc.dg/torture/pr60092.c
index a596e13..337ff52 100644
--- a/gcc/testsuite/gcc.dg/torture/pr60092.c
+++ b/gcc/testsuite/gcc.dg/torture/pr60092.c
@@ -1,6 +1,8 @@
/* { dg-do run } */
/* { dg-require-weak "" } */
/* { dg-skip-if "No undefined weak" { hppa*-*-hpux* && { ! lp64 } } } */
+/* { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } */
+/* { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } } */
/* { dg-xfail-run-if "posix_memalign modifies first arg on error" { *-*-solaris2.11* } { "-O0" } } */
typedef __SIZE_TYPE__ size_t;