diff options
author | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-03-21 10:27:53 +0000 |
---|---|---|
committer | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-03-21 10:27:53 +0000 |
commit | 96b68b2d06eec4070737b5cd86d0947cf3a694cd (patch) | |
tree | 62ac1ef2ac57152f7ea38a44ad87544d217af2ae /gcc/hsa.h | |
parent | 93505d2263b79f3e5967ae1fec082cf0843e610a (diff) | |
download | gcc-96b68b2d06eec4070737b5cd86d0947cf3a694cd.tar.gz |
Retry to emit global variables in HSA (PR hsa/70234)
PR hsa/70234
* hsa-brig.c (emit_function_directives): Mark unemitted
global variables for emission.
* hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
(get_symbol_for_decl): Likewise.
* hsa.h (struct hsa_symbol): New flag.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234362 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/hsa.h')
-rw-r--r-- | gcc/hsa.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/hsa.h b/gcc/hsa.h index 6a7c651ce9b..1d6baaba9b5 100644 --- a/gcc/hsa.h +++ b/gcc/hsa.h @@ -110,6 +110,9 @@ struct hsa_symbol /* Symbol allocation. */ BrigAllocation m_allocation; + /* Flag used for global variables if a variable is already emitted or not. */ + bool m_emitted_to_brig; + private: /* Default constructor. */ hsa_symbol (); |