aboutsummaryrefslogtreecommitdiff
path: root/gcc/hsa.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2017-01-11 11:35:31 +0100
committerMartin Jambor <jamborm@gcc.gnu.org>2017-01-11 11:35:31 +0100
commit51020892466d37f71ee13137bdadcbb32545c55d (patch)
treef2d05c5ca8dd4a860cc74dd72658a92146d66d22 /gcc/hsa.c
parent80c74722bc934e376b06fa2e59925cb134202266 (diff)
downloadgcc-51020892466d37f71ee13137bdadcbb32545c55d.zip
gcc-51020892466d37f71ee13137bdadcbb32545c55d.tar.gz
gcc-51020892466d37f71ee13137bdadcbb32545c55d.tar.bz2
[hsa] Fix hsa function cloning test
2017-01-11 Martin Jambor <mjambor@suse.cz> * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL test. * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial decorated functions. From-SVN: r244308
Diffstat (limited to 'gcc/hsa.c')
-rw-r--r--gcc/hsa.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/hsa.c b/gcc/hsa.c
index c0ed9f8..2035ce4 100644
--- a/gcc/hsa.c
+++ b/gcc/hsa.c
@@ -90,10 +90,7 @@ bool
hsa_callable_function_p (tree fndecl)
{
return (lookup_attribute ("omp declare target", DECL_ATTRIBUTES (fndecl))
- && !lookup_attribute ("oacc function", DECL_ATTRIBUTES (fndecl))
- /* At this point, this is enough to identify clones for
- parallel, which for HSA would need to be kernels anyway. */
- && !DECL_ARTIFICIAL (fndecl));
+ && !lookup_attribute ("oacc function", DECL_ATTRIBUTES (fndecl)));
}
/* Allocate HSA structures that are are used when dealing with different