OSDN Git Service

2014-04-06 Dominique d'Humieres <dominiq@lps.ens.fr>
authordominiq <dominiq@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Apr 2014 11:43:38 +0000 (11:43 +0000)
committerdominiq <dominiq@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Apr 2014 11:43:38 +0000 (11:43 +0000)
    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].

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@209162 138bc75d-0d04-0410-961f-82ee72b054a4

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

index e6f2832..7587891 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-29  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR fortran/60522
index 31d5379..0cd0845 100644 (file)
@@ -5,12 +5,14 @@
 // is not available on alpha*-dec-osf* and hppa*-*-hpux*.  The test is
 // skipped rather than xfailed to suppress the warning that would otherwise
 // arise.
-// { dg-skip-if "" { "alpha*-dec-osf*" "*-*-darwin*" "hppa*-*-hpux*" } "*" { "" } }
+// { dg-skip-if "" { "alpha*-dec-osf*" "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 980bab5..750b006 100644 (file)
@@ -2,6 +2,8 @@
 /* { dg-require-weak "" } */
 /* { dg-skip-if "No undefined weak" { alpha*-*-osf* } } */
 /* { 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)
 {