This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add pthread_h effective-target
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 25 Feb 2008 15:54:27 -0800
- Subject: Re: Add pthread_h effective-target
- References: <Pine.LNX.4.64.0802242225520.25721@digraph.polyomino.org.uk>
- Reply-to: janis187 at us dot ibm dot com
On Sun, 2008-02-24 at 22:27 +0000, Joseph S. Myers wrote:
> The tests gcc.dg/pthread-init-1.c and gcc.dg/pthread-init-2.c fail for
> targets without <pthread.h>, such as MinGW. This patch adds an
> effective-target keyword for the presence of <pthread.h> and makes the
> tests use it.
>
> Tested i686-pc-linux-gnu native (where the tests still get run) and
> i686-mingw (cross from i686-pc-linux-gnu) where the tests no longer
> get run. OK to commit?
>
> 2008-02-24 Joseph Myers <joseph@codesourcery.com>
>
> * lib/target-supports.exp (check_effective_target_pthread_h): New.
> * gcc.dg/pthread-init-1.c, gcc.dg/pthread-init-2.c: Use
> dg-require-effective-target pthread_h.
OK.
Janis