Remove the unused OMP_CLAUSE_DEVICE_RESIDENT
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 1 Jun 2016 11:55:35 +0000 (13:55 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Wed, 1 Jun 2016 11:55:35 +0000 (13:55 +0200)
gcc/
* tree-core.h (enum omp_clause_code): Remove
OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.

From-SVN: r236985

gcc/ChangeLog
gcc/fortran/trans-openmp.c
gcc/gimplify.c
gcc/omp-low.c
gcc/tree-core.h
gcc/tree-pretty-print.c
gcc/tree.c

index 0bb7f286c8ed104cb9a4bf3a68dd99d49e5ed73f..58fea2fca683b972fd843eed9ec2eab4e855a8e1 100644 (file)
@@ -1,3 +1,8 @@
+2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * tree-core.h (enum omp_clause_code): Remove
+       OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
+
 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * config/arm/sync.md (arm_store_exclusive<mode>):
index c2d89eb3effb84b8c2794fb4daa350bda0e9e066..d3276f9331f7dfb58fef6b2610cc36e2252691f1 100644 (file)
@@ -1773,9 +1773,6 @@ gfc_trans_omp_clauses (stmtblock_t *block, gfc_omp_clauses *clauses,
        case OMP_LIST_USE_DEVICE:
          clause_code = OMP_CLAUSE_USE_DEVICE_PTR;
          goto add_clause;
-       case OMP_LIST_DEVICE_RESIDENT:
-         clause_code = OMP_CLAUSE_DEVICE_RESIDENT;
-         goto add_clause;
 
        add_clause:
          omp_clauses
index 8b7dddca48a1ffe82224696f1e62d79d6a6629f7..131fa2433ce1da0dca9b6b028f33b0a228d02212 100644 (file)
@@ -7538,10 +7538,6 @@ gimplify_scan_omp_clauses (tree *list_p, gimple_seq *pre_p,
            }
          break;
 
-       case OMP_CLAUSE_DEVICE_RESIDENT:
-         remove = true;
-         break;
-
        case OMP_CLAUSE_NOWAIT:
        case OMP_CLAUSE_ORDERED:
        case OMP_CLAUSE_UNTIED:
@@ -8275,7 +8271,6 @@ gimplify_adjust_omp_clauses (gimple_seq *pre_p, gimple_seq body, tree *list_p,
        case OMP_CLAUSE__CILK_FOR_COUNT_:
        case OMP_CLAUSE_ASYNC:
        case OMP_CLAUSE_WAIT:
-       case OMP_CLAUSE_DEVICE_RESIDENT:
        case OMP_CLAUSE_INDEPENDENT:
        case OMP_CLAUSE_NUM_GANGS:
        case OMP_CLAUSE_NUM_WORKERS:
index a11f44b84a7929283352f42b4c66f580ce670edc..77bdb1810e6101b88afa91fa111f283ee934349c 100644 (file)
@@ -2200,7 +2200,6 @@ scan_sharing_clauses (tree clauses, omp_context *ctx,
            install_var_local (decl, ctx);
          break;
 
-       case OMP_CLAUSE_DEVICE_RESIDENT:
        case OMP_CLAUSE__CACHE_:
          sorry ("Clause not supported yet");
          break;
@@ -2368,7 +2367,6 @@ scan_sharing_clauses (tree clauses, omp_context *ctx,
        case OMP_CLAUSE__GRIDDIM_:
          break;
 
-       case OMP_CLAUSE_DEVICE_RESIDENT:
        case OMP_CLAUSE__CACHE_:
          sorry ("Clause not supported yet");
          break;
index b0699284e0d2e9ad3e7a9a61328e57cc9aab3847..db5b470ea6e7cc130eb12de0e00efee148e22d08 100644 (file)
@@ -316,9 +316,6 @@ enum omp_clause_code {
      #pragma acc cache (variable-list).  */
   OMP_CLAUSE__CACHE_,
 
-  /* OpenACC clause: device_resident (variable_list).  */
-  OMP_CLAUSE_DEVICE_RESIDENT,
-
   /* OpenACC clause: gang [(gang-argument-list)].
      Where
       gang-argument-list: [gang-argument-list, ] gang-argument
index 0e7fdd1fec4e3769f3a1c4ae7d7f3353c9daaa5a..734ecda7c56d0213d0de062c96205671c51e9f0b 100644 (file)
@@ -407,9 +407,6 @@ dump_omp_clause (pretty_printer *pp, tree clause, int spc, int flags)
     case OMP_CLAUSE__LOOPTEMP_:
       name = "_looptemp_";
       goto print_remap;
-    case OMP_CLAUSE_DEVICE_RESIDENT:
-      name = "device_resident";
-      goto print_remap;
     case OMP_CLAUSE_TO_DECLARE:
       name = "to";
       goto print_remap;
index f4b470b3ce84e15a68dde3a492141f6936e327d9..7511d0a6442459e8a46d557e6bf1ab0ffcb47208 100644 (file)
@@ -281,7 +281,6 @@ unsigned const char omp_clause_num_ops[] =
   1, /* OMP_CLAUSE_USE_DEVICE_PTR  */
   1, /* OMP_CLAUSE_IS_DEVICE_PTR  */
   2, /* OMP_CLAUSE__CACHE_  */
-  1, /* OMP_CLAUSE_DEVICE_RESIDENT  */
   2, /* OMP_CLAUSE_GANG  */
   1, /* OMP_CLAUSE_ASYNC  */
   1, /* OMP_CLAUSE_WAIT  */
@@ -353,7 +352,6 @@ const char * const omp_clause_code_name[] =
   "use_device_ptr",
   "is_device_ptr",
   "_cache_",
-  "device_resident",
   "gang",
   "async",
   "wait",
@@ -11764,7 +11762,6 @@ walk_tree_1 (tree *tp, walk_tree_fn func, void *data,
          WALK_SUBTREE (OMP_CLAUSE_OPERAND (*tp, 1));
          /* FALLTHRU */
 
-       case OMP_CLAUSE_DEVICE_RESIDENT:
        case OMP_CLAUSE_ASYNC:
        case OMP_CLAUSE_WAIT:
        case OMP_CLAUSE_WORKER: