]> 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>
Sun, 6 Apr 2014 10:38:16 +0000 (12:38 +0200)
committerDominique d'Humieres <dominiq@gcc.gnu.org>
Sun, 6 Apr 2014 10:38:16 +0000 (12:38 +0200)
2014-04-06  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].

Co-Authored-By: Iain Sandoe <iain@codesourcery.com>
From-SVN: r209161

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

index a3856675fde8dd375080d82857885d6b4a2c2eb6..b2067fc42fc26b7063ec75eaf4615c79abbdda8c 100644 (file)
@@ -1,3 +1,13 @@
+2014-04-06  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].
+
 2014-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
        Backport from mainline
index 898bc4169a038f8097f323c8093a259e2256028d..15d32f94be9db318b6d39d91cf03047a5e030488 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*" } "*" { "" } }
+// { dg-skip-if "" { "hppa*-*-hpux*" } "*" { "" } }
 // 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 e4136014326d5568b976bda7ba9480de0942e38c..db4ad80bf07c5ba386309d72c67ba6beec4b5043 100644 (file)
@@ -3,6 +3,7 @@
 /* { dg-skip-if "No undefined" { *-*-mingw* } { "*" } { "" } } */
 /* { 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)
 {