Commit eb587f4f by Joseph Myers Committed by Joseph Myers

target-supports.exp (check_effective_target_pthread_h): New.

	* 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.

From-SVN: r132650
parent 683d6ff9
2008-02-25 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.
2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* gcc.dg/Wswitch-enum-error.c: New.
......@@ -5,6 +5,7 @@
*/
/* { dg-do compile } */
/* { dg-require-effective-target pthread_h } */
/* { dg-options "-Wextra -Wall" } */
#include "pthread-init-common.h"
......
......@@ -5,6 +5,7 @@
*/
/* { dg-do compile } */
/* { dg-require-effective-target pthread_h } */
/* { dg-options "-Wextra -Wall -ansi" } */
/* { dg-options "-Wextra -Wall -ansi -D_POSIX_C_SOURCE=199506L" { target { *-*-hpux* *-*-solaris2.5.1 } } } */
......
......@@ -2214,6 +2214,14 @@ proc check_effective_target_wchar { } {
}]
}
# Return 1 if the target has <pthread.h>.
proc check_effective_target_pthread_h { } {
return [check_no_compiler_messages pthread_h assembly {
#include <pthread.h>
}]
}
# Add to FLAGS all the target-specific flags needed to access the c99 runtime.
proc add_options_for_c99_runtime { flags } {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment