]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/54083 (FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*)
authorDominique d'Humieres <dominiq@lps.ens.fr>
Wed, 2 Apr 2014 08:58:03 +0000 (10:58 +0200)
committerDominique d'Humieres <dominiq@gcc.gnu.org>
Wed, 2 Apr 2014 08:58:03 +0000 (10:58 +0200)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/attr-weakref-1.c
gcc/testsuite/gcc.dg/torture/pr53922.c
gcc/testsuite/gcc.dg/torture/pr60092.c

index 23a6179a1b3f1ca9d9161126d2ae533e24392c15..95ca113a89983e2d06be04400cf48c46452ab8ad 100644 (file)
@@ -1,3 +1,16 @@
+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
index ee900fcdec514a12f1eec6df6ba6852197e97edd..9ed1c51b3abda780bc80aba0ecdf4f405a0256d8 100644 (file)
@@ -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.
index d385587e391c22cc8eab540ee0247eb9131b193e..3974dc660c36ac692cdd7ed303f32bf8320a3907 100644 (file)
@@ -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)
 {
index a596e13aa9ea21cb2e0948bd82739c015a1b56d0..337ff52955a64755c5382d6ab7d5dffd458bbac5 100644 (file)
@@ -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;