Commit 3d224921 by Martin Jambor Committed by Martin Jambor

[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
parent c7c30edd
2018-02-08 Martin Jambor <mjambor@suse.cz> 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>
* testsuite/libgomp.hsa.c/staticvar.c: New test. * testsuite/libgomp.hsa.c/staticvar.c: New test.
2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
......
...@@ -7,8 +7,8 @@ toup (char X) ...@@ -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) ...@@ -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';
......
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