[PR 70857] Copy RESULT_DECL of HSA outlined kernel function
2016-05-16 Martin Jambor <mjambor@suse.cz> PR hsa/70857 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of the outlined kernel function. From-SVN: r236291
This commit is contained in:
parent
704b85c7d8
commit
636542efb5
@ -1,3 +1,9 @@
|
||||
2016-05-16 Martin Jambor <mjambor@suse.cz>
|
||||
|
||||
PR hsa/70857
|
||||
* omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
|
||||
the outlined kernel function.
|
||||
|
||||
2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
|
||||
|
||||
* config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
|
||||
|
@ -13681,6 +13681,9 @@ grid_expand_target_grid_body (struct omp_region *target)
|
||||
tree new_parm_decl = copy_node (DECL_ARGUMENTS (kern_fndecl));
|
||||
DECL_CONTEXT (new_parm_decl) = kern_fndecl;
|
||||
DECL_ARGUMENTS (kern_fndecl) = new_parm_decl;
|
||||
gcc_assert (VOID_TYPE_P (TREE_TYPE (DECL_RESULT (kern_fndecl))));
|
||||
DECL_RESULT (kern_fndecl) = copy_node (DECL_RESULT (kern_fndecl));
|
||||
DECL_CONTEXT (DECL_RESULT (kern_fndecl)) = kern_fndecl;
|
||||
struct function *kern_cfun = DECL_STRUCT_FUNCTION (kern_fndecl);
|
||||
kern_cfun->curr_properties = cfun->curr_properties;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user