diff options
author | Ilya Verbin <ilya.verbin@intel.com> | 2015-11-24 21:04:47 +0000 |
---|---|---|
committer | Ilya Verbin <iverbin@gcc.gnu.org> | 2015-11-24 21:04:47 +0000 |
commit | 688c4de0a35ea5b0743faa7f8f6435fe82498332 (patch) | |
tree | d2f070511fae8c8e6b0d48f0ce033b763a40c1e7 /gcc/c/c-parser.c | |
parent | ba6a6a1d44c17f25671162c00dafd9959818667f (diff) | |
download | gcc-688c4de0a35ea5b0743faa7f8f6435fe82498332.zip gcc-688c4de0a35ea5b0743faa7f8f6435fe82498332.tar.gz gcc-688c4de0a35ea5b0743faa7f8f6435fe82498332.tar.bz2 |
c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING" with "if (ENABLE_OFFLOADING)".
gcc/c/
* c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
with "if (ENABLE_OFFLOADING)".
gcc/cp/
* parser.c (cp_parser_oacc_declare): replace "ifdef enable_offloading"
with "if (enable_offloading)".
From-SVN: r230842
Diffstat (limited to 'gcc/c/c-parser.c')
-rw-r--r-- | gcc/c/c-parser.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index 18e9957..44a925b 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -13484,14 +13484,15 @@ c_parser_oacc_declare (c_parser *parser) if (node != NULL) { node->offloadable = 1; -#ifdef ENABLE_OFFLOADING - g->have_offload = true; - if (is_a <varpool_node *> (node)) + if (ENABLE_OFFLOADING) { - vec_safe_push (offload_vars, decl); - node->force_output = 1; + g->have_offload = true; + if (is_a <varpool_node *> (node)) + { + vec_safe_push (offload_vars, decl); + node->force_output = 1; + } } -#endif } } } |