[PATCH] fix gcc.dg/torture/pr53922.c on darwin

2012-09-22 Thread Jack Howarth
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-darw

Re: [PATCH] fix gcc.dg/torture/pr53922.c on darwin

2012-09-23 Thread Dominique Dhumieres
Jack, The patch does not seem to work on powerpc-apple-darwin9: Executing on host: /opt/gcc/darwin_buildw/gcc/xgcc -B/opt/gcc/darwin_buildw/gcc/ /opt/gcc/work/gcc/testsuite/gcc.dg/torture/pr53922.c -fno-diagnostic s-show-caret -O0 -Wl,-undefined,dynamic_lookup -lm -m32 -o ./pr53922.exe

Re: [PATCH] fix gcc.dg/torture/pr53922.c on darwin

2012-09-24 Thread Richard Guenther
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-b