This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] fix libgomp.c++/pr24455.C failures on darwin
- From: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: mikestump at comcast dot net, iain at codesourcery dot com, rth at redhat dot com, jakub at redhat dot com
- Date: Mon, 5 Nov 2012 15:40:34 -0500
- Subject: [PATCH] fix libgomp.c++/pr24455.C failures on darwin
Currently the following testcases are failing on x86_64-apple-darwin11/12...
FAIL: libgomp.c++/pr24455.C -O0 (test for excess errors)
WARNING: libgomp.c++/pr24455.C -O0 compilation failed to produce executable
FAIL: libgomp.c++/pr24455.C -O1 (test for excess errors)
WARNING: libgomp.c++/pr24455.C -O1 compilation failed to produce executable
FAIL: libgomp.c++/pr24455.C -O2 (test for excess errors)
WARNING: libgomp.c++/pr24455.C -O2 compilation failed to produce executable
FAIL: libgomp.c++/pr24455.C -O3 -fomit-frame-pointer (test for excess errors)
WARNING: libgomp.c++/pr24455.C -O3 -fomit-frame-pointer compilation failed to produce executable
FAIL: libgomp.c++/pr24455.C -O3 -fomit-frame-pointer -funroll-loops (test for excess errors)
WARNING: libgomp.c++/pr24455.C -O3 -fomit-frame-pointer -funroll-loops compilation failed to produce executable
FAIL: libgomp.c++/pr24455.C -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions (test for excess errors)
WARNING: libgomp.c++/pr24455.C -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions compilation failed to produce executable
FAIL: libgomp.c++/pr24455.C -O3 -g (test for excess errors)
WARNING: libgomp.c++/pr24455.C -O3 -g compilation failed to produce executable
FAIL: libgomp.c++/pr24455.C -Os (test for excess errors)
WARNING: libgomp.c++/pr24455.C -Os compilation failed to produce executable
FAIL: libgomp.c++/tls-init1.C -O (test for excess errors)
WARNING: libgomp.c++/tls-init1.C -O compilation failed to produce executable
These can be fixed for darwin by passing -Wl,-undefined,dynamic_lookup on dg-options as has been
recommended by the darwin linker maintainer. Note that this should work for Xcode 3.2.6 and Xcode 4.4.1
and later. Between Xcode 4.2 and 4.4.0, radr://10466868, "-undefined dynamic_lookup linker bug", broke
weak symbol dynamic lookup in the linker. Tested on x86_64-apple-darwin12. Okay for gcc trunk?
Jack
libgomp/
2012-11-05 Jack Howarth <howarth@bromo.med.uc.edu>
* testsuite/libgomp.c++/pr24455.C: Use -Wl,-undefined,dynamic_lookup on darwin.
Index: libgomp/testsuite/libgomp.c++/pr24455.C
===================================================================
--- libgomp/testsuite/libgomp.c++/pr24455.C (revision 193168)
+++ libgomp/testsuite/libgomp.c++/pr24455.C (working copy)
@@ -1,6 +1,7 @@
// { dg-do run }
// { dg-additional-sources pr24455-1.C }
// { dg-require-effective-target tls_runtime }
+// { dg-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } }
extern "C" void abort (void);