From 688c4de0a35ea5b0743faa7f8f6435fe82498332 Mon Sep 17 00:00:00 2001 From: Ilya Verbin Date: Tue, 24 Nov 2015 21:04:47 +0000 Subject: 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 --- gcc/c/ChangeLog | 5 +++++ gcc/c/c-parser.c | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'gcc/c') diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 1e9314d..805cc4f 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,8 @@ +2015-11-24 Ilya Verbin + + * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING" + with "if (ENABLE_OFFLOADING)". + 2015-11-23 David Malcolm PR objc/68438 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 (node)) + if (ENABLE_OFFLOADING) { - vec_safe_push (offload_vars, decl); - node->force_output = 1; + g->have_offload = true; + if (is_a (node)) + { + vec_safe_push (offload_vars, decl); + node->force_output = 1; + } } -#endif } } } -- cgit v1.1