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 <howa...@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) {