aboutsummaryrefslogtreecommitdiff
path: root/gcc/hsa.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2016-12-02 15:42:15 +0100
committerMartin Jambor <jamborm@gcc.gnu.org>2016-12-02 15:42:15 +0100
commit69a71a6d071a5eae8a06282351e53d8c383aba9a (patch)
treef1f443b2f2ad5d656b3b3ae62671f08660c12e2c /gcc/hsa.c
parent04c452f40ba95e15a76762e4bb5767d15cf8b322 (diff)
downloadgcc-69a71a6d071a5eae8a06282351e53d8c383aba9a.zip
gcc-69a71a6d071a5eae8a06282351e53d8c383aba9a.tar.gz
gcc-69a71a6d071a5eae8a06282351e53d8c383aba9a.tar.bz2
[hsa] Exclude parallel outlines from hsa_callable_functions_p
2016-12-09 Martin Jambor <mjambor@suse.cz> * hsa.c (hsa_callable_function_p): Return false for artificial functions. From-SVN: r243184
Diffstat (limited to 'gcc/hsa.c')
-rw-r--r--gcc/hsa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/hsa.c b/gcc/hsa.c
index f881e78..31e3252 100644
--- a/gcc/hsa.c
+++ b/gcc/hsa.c
@@ -90,7 +90,10 @@ bool
hsa_callable_function_p (tree fndecl)
{
return (lookup_attribute ("omp declare target", DECL_ATTRIBUTES (fndecl))
- && !lookup_attribute ("oacc function", 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));
}
/* Allocate HSA structures that are are used when dealing with different