[testsuite] Fix pr83126.c failure for bare-metal toolchains

Message ID DB6PR0802MB250408063AE3F71461F375A5E7A90@DB6PR0802MB2504.eurprd08.prod.outlook.com
State New
Headers show
Series
  • [testsuite] Fix pr83126.c failure for bare-metal toolchains
Related show

Commit Message

Bin Cheng March 22, 2018, 11:04 a.m.
Hi,
The new test pr83126.c requires pthread for compiling, this simple patch skips it
for bare-metal toolchains.

Test checked.  Is it OK?

Thanks,
bin

gcc/testsuite
2018-03-22  Bin Cheng  <bin.cheng@arm.com>

	* gcc.dg/graphite/pr83126.c: Require pthread for the test.

Comments

Richard Biener March 22, 2018, 12:14 p.m. | #1
On Thu, Mar 22, 2018 at 12:04 PM, Bin Cheng <Bin.Cheng@arm.com> wrote:
> Hi,

> The new test pr83126.c requires pthread for compiling, this simple patch skips it

> for bare-metal toolchains.

>

> Test checked.  Is it OK?


OK.

> Thanks,

> bin

>

> gcc/testsuite

> 2018-03-22  Bin Cheng  <bin.cheng@arm.com>

>

>         * gcc.dg/graphite/pr83126.c: Require pthread for the test.

Patch

diff --git a/gcc/testsuite/gcc.dg/graphite/pr83126.c b/gcc/testsuite/gcc.dg/graphite/pr83126.c
index 663d059..36bf5d5 100644
--- a/gcc/testsuite/gcc.dg/graphite/pr83126.c
+++ b/gcc/testsuite/gcc.dg/graphite/pr83126.c
@@ -1,3 +1,4 @@ 
+/* { dg-do compile { target pthread } }  */
 /* { dg-additional-options "-w -ftree-parallelize-loops=2 -floop-parallelize-all -O1" }  */
 
 void