diff options
author | Martin Jambor <mjambor@suse.cz> | 2016-12-02 15:42:15 +0100 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2016-12-02 15:42:15 +0100 |
commit | 69a71a6d071a5eae8a06282351e53d8c383aba9a (patch) | |
tree | f1f443b2f2ad5d656b3b3ae62671f08660c12e2c /gcc/hsa.c | |
parent | 04c452f40ba95e15a76762e4bb5767d15cf8b322 (diff) | |
download | gcc-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |