This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch] compile libgomp.c++/pr30703.C with -shared-libgcc
- From: Jack Howarth <howarth at bromo dot msbb dot uc dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 15 Mar 2007 09:50:06 -0400
- Subject: [Patch] compile libgomp.c++/pr30703.C with -shared-libgcc
The attached patch forces the libgomp.c++/pr30703 testsuite test
to compile with the shared libgcc to prevent false failures on platforms
like Darwin. This is required because the dejagnu harness used for
the libgomp.c++ tests doesn't compile those tests with the g++
compiler. Okay for trunk and 4.2 branch?
Jack Howarth
ps This problem has been discussed on the gcc mailing list...
http://gcc.gnu.org/ml/gcc/2007-03/msg00532.html
Unfortunately, changing the libgomp.c++ dejagnu harness over
to using g++ appears to be non-trivial so the second approach
was adopted.
2007-03-15 Jack Howarth <howarth@bromo.med.uc.edu>
PR c++/30703
* testsuite/libgomp.c++/pr30703.C: compile with -shared-libgcc
Index: libgomp/testsuite/libgomp.c++/pr30703.C
===================================================================
/usr/local/bin/gccdiff: line 1: i#!/bin/bash: No such file or directory
--- libgomp/testsuite/libgomp.c++/pr30703.C (revision 122939)
+++ libgomp/testsuite/libgomp.c++/pr30703.C (working copy)
@@ -1,5 +1,6 @@
// PR c++/30703
// { dg-do run }
+// { dg-options "-shared-libgcc" }
#include <omp.h>