diff mbox

fix gcc.dg/torture/pr53922.c on darwin

Message ID 20120923013309.GA11823@bromo.med.uc.edu
State New
Headers show

Commit Message

Jack Howarth Sept. 23, 2012, 1:33 a.m. UTC
The attached patch eliminates the failures in linkage of the new
gcc.dg/torture/pr53922.c testcase on darwin by passing -Wl,-undefined,dynamic_lookup
to the linker as recommended by the darwin linker developer...

http://gcc.gnu.org/ml/gcc-bugs/2012-09/msg01802.html

Tested on x86_64-apple-darwin11. Okay for gcc trunk and 4.7?
                Jack

2012-09-22  Jack Howarth <howarth@bromo.med.uc.edu>

	gcc.dg/torture/pr53922.c: Use -Wl,-undefined,dynamic_lookup on darwin.

Comments

Richard Biener Sept. 24, 2012, 9 a.m. UTC | #1
On Sat, 22 Sep 2012, Jack Howarth wrote:

>    The attached patch eliminates the failures in linkage of the new
> gcc.dg/torture/pr53922.c testcase on darwin by passing -Wl,-undefined,dynamic_lookup
> to the linker as recommended by the darwin linker developer...
> 
> http://gcc.gnu.org/ml/gcc-bugs/2012-09/msg01802.html
> 
> Tested on x86_64-apple-darwin11. Okay for gcc trunk and 4.7?

Ok.

Thanks,
Richard.

>                 Jack
> 
> 2012-09-22  Jack Howarth <howarth@bromo.med.uc.edu>
> 
> 	gcc.dg/torture/pr53922.c: Use -Wl,-undefined,dynamic_lookup on darwin.
> 
> Index: gcc/testsuite/gcc.dg/torture/pr53922.c
> ===================================================================
> --- gcc/testsuite/gcc.dg/torture/pr53922.c	(revision 191648)
> +++ gcc/testsuite/gcc.dg/torture/pr53922.c	(working copy)
> @@ -1,5 +1,6 @@
>  /* { dg-do run } */
>  /* { dg-require-weak "" } */
> +/* { dg-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } */
>  
>  int x(int a)
>  {
>
diff mbox

Patch

Index: gcc/testsuite/gcc.dg/torture/pr53922.c
===================================================================
--- gcc/testsuite/gcc.dg/torture/pr53922.c	(revision 191648)
+++ gcc/testsuite/gcc.dg/torture/pr53922.c	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-require-weak "" } */
+/* { dg-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } */
 
 int x(int a)
 {