From 3d2249215e948493d5aa7ad1aaaa9d9de73207c6 Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Thu, 8 Feb 2018 14:06:26 +0100 Subject: [PATCH] [hsa] Fix PR82416 testcase 2018-02-08 Martin Jambor * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target clonable. From-SVN: r257485 --- libgomp/ChangeLog | 5 +++++ libgomp/testsuite/libgomp.hsa.c/pr82416.c | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index d0130490de3..a620923729b 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2018-02-08 Martin Jambor + + * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target + clonable. + 2018-02-08 Martin Jambor * testsuite/libgomp.hsa.c/staticvar.c: New test. diff --git a/libgomp/testsuite/libgomp.hsa.c/pr82416.c b/libgomp/testsuite/libgomp.hsa.c/pr82416.c index b89d421e8f3..40378ab12a5 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'; -- 2.30.2