diff options
author | Martin Jambor <mjambor@suse.cz> | 2018-02-08 14:06:26 +0100 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2018-02-08 14:06:26 +0100 |
commit | 3d2249215e948493d5aa7ad1aaaa9d9de73207c6 (patch) | |
tree | ecd116bc594612a4a21dd578e4763f89eb07afc1 /libgomp | |
parent | c7c30edd4a6049a0debe0ed17ffdb9c196d4c677 (diff) | |
download | gcc-3d2249215e948493d5aa7ad1aaaa9d9de73207c6.zip gcc-3d2249215e948493d5aa7ad1aaaa9d9de73207c6.tar.gz gcc-3d2249215e948493d5aa7ad1aaaa9d9de73207c6.tar.bz2 |
[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
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 5 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.hsa.c/pr82416.c | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index d013049..a620923 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,5 +1,10 @@ 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. 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> diff --git a/libgomp/testsuite/libgomp.hsa.c/pr82416.c b/libgomp/testsuite/libgomp.hsa.c/pr82416.c index b89d421..40378ab 100644 --- a/libgomp/testsuite/libgomp.hsa.c/pr82416.c +++ b/libgomp/testsuite/libgomp.hsa.c/pr82416.c @@ -7,8 +7,8 @@ toup (char X) return X; } -char __attribute__ ((noipa)) -target_toup (char X) +char +target_toup_1 (char X) { char r; #pragma omp target map(to:X) map(from:r) @@ -21,6 +21,12 @@ target_toup (char X) return r; } +char __attribute__ ((noipa)) +target_toup (char X) +{ + return target_toup_1 (X); +} + int main (int argc, char **argv) { char a = 'a'; |