Message ID | 528A2867.7020003@arm.com |
---|---|
State | New |
Headers | show |
> The testcase c-c++-common/cilk-plus/PS/body.c needs an effective target > check for fopenmp before adding -fopenmp to its options, otherwise it'll > fail on bare-metal targets like arm-none-eabi. > > This patch adds that. > > Ok to commit? > > Thanks, > Kyrill > > 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com> > > * c-c++-common/cilk-plus/PS/body.c: Add fopenmp effective target check. You can commit this as obvious. Thanks.
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/body.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/body.c index 9b10041..82c0a0c 100644 --- a/gcc/testsuite/c-c++-common/cilk-plus/PS/body.c +++ b/gcc/testsuite/c-c++-common/cilk-plus/PS/body.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-fcilkplus -fopenmp" } */ +/* { dg-require-effective-target fopenmp } */ int *a, *b, c; void *jmpbuf[10];