Commit 688c4de0 by Ilya Verbin Committed by Ilya Verbin

c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING" with "if…

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
parent ba6a6a1d
2015-11-24 Ilya Verbin <ilya.verbin@intel.com>
* c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
with "if (ENABLE_OFFLOADING)".
2015-11-23 David Malcolm <dmalcolm@redhat.com>
PR objc/68438
......
......@@ -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
}
}
}
......
2015-11-24 Ilya Verbin <ilya.verbin@intel.com>
* parser.c (cp_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
with "if (ENABLE_OFFLOADING)".
2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
PR c++/68001
......
......@@ -34633,14 +34633,15 @@ cp_parser_oacc_declare (cp_parser *parser, cp_token *pragma_tok)
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
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment