This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add pthread_h effective-target


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]