mirror of git://gcc.gnu.org/git/gcc.git
[hsa] Fix PR82416 testcase
2018-02-08 Martin Jambor <mjambor@suse.cz> * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target clonable. From-SVN: r257485
This commit is contained in:
parent
c7c30edd4a
commit
3d2249215e
|
@ -1,3 +1,8 @@
|
||||||
|
2018-02-08 Martin Jambor <mjambor@suse.cz>
|
||||||
|
|
||||||
|
* testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
|
||||||
|
clonable.
|
||||||
|
|
||||||
2018-02-08 Martin Jambor <mjambor@suse.cz>
|
2018-02-08 Martin Jambor <mjambor@suse.cz>
|
||||||
|
|
||||||
* testsuite/libgomp.hsa.c/staticvar.c: New test.
|
* testsuite/libgomp.hsa.c/staticvar.c: New test.
|
||||||
|
|
|
@ -7,8 +7,8 @@ toup (char X)
|
||||||
return X;
|
return X;
|
||||||
}
|
}
|
||||||
|
|
||||||
char __attribute__ ((noipa))
|
char
|
||||||
target_toup (char X)
|
target_toup_1 (char X)
|
||||||
{
|
{
|
||||||
char r;
|
char r;
|
||||||
#pragma omp target map(to:X) map(from:r)
|
#pragma omp target map(to:X) map(from:r)
|
||||||
|
@ -21,6 +21,12 @@ target_toup (char X)
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char __attribute__ ((noipa))
|
||||||
|
target_toup (char X)
|
||||||
|
{
|
||||||
|
return target_toup_1 (X);
|
||||||
|
}
|
||||||
|
|
||||||
int main (int argc, char **argv)
|
int main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
char a = 'a';
|
char a = 'a';
|
||||||
|
|
Loading…
Reference in New Issue