From: Martin Jambor Date: Thu, 8 Feb 2018 13:06:26 +0000 (+0100) Subject: [hsa] Fix PR82416 testcase X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d2249215e948493d5aa7ad1aaaa9d9de73207c6;p=gcc.git [hsa] Fix PR82416 testcase 2018-02-08 Martin Jambor * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target clonable. From-SVN: r257485 --- 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';