c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING" with "if (ENABL...
authorIlya Verbin <ilya.verbin@intel.com>
Tue, 24 Nov 2015 21:04:47 +0000 (21:04 +0000)
committerIlya Verbin <iverbin@gcc.gnu.org>
Tue, 24 Nov 2015 21:04:47 +0000 (21:04 +0000)
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
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c

index 1e9314d197082d4bbedb8ab24847e62944c3fcb2..805cc4f16a51967c4fc8e545a833709f72fedbb7 100644 (file)
@@ -1,3 +1,8 @@
+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
index 18e995740c3c50067dcde94433c49c11d3d0ca96..44a925ba32c6f5e467656a1a5dd001573d7d34c8 100644 (file)
@@ -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
                }
            }
        }
index f401b822bbbf167ae847087c06cc61d5396dc3b2..a4aa01e3b2ac43830a6ea226f022751d03672afa 100644 (file)
@@ -1,3 +1,8 @@
+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
index 24ed404adafcabf3a7bba61821741cd3d7a6f00b..a9c0a452d6b2b468c10de2b07822c24affbe1cca 100644 (file)
@@ -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
                }
            }
        }