aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/hsa.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 92501fc..0880c84 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-09 Martin Jambor <mjambor@suse.cz>
+
+ * hsa.c (hsa_callable_function_p): Return false for artificial
+ functions.
+
2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
PR rtl-optimization/78561
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