diff mbox series

[3/6] OpenMP: Rename strip_components_and_deref to omp_get_root_term

Message ID 0c556b55ed9c10cf03a41e1d0e2a63bbfcf6b74d.1654107784.git.julian@codesourcery.com
State New
Headers show
Series OpenMP 5.0: Fortran "declare mapper" support | expand

Commit Message

Julian Brown June 1, 2022, 6:39 p.m. UTC
This patch renames the strip_components_and_deref function to better
describe what it does. I'll fold this into the originating patch series
during rework.

2022-06-01  Julian Brown  <julian@codesourcery.com>

gcc/
	* gimplify.cc (strip_components_and_deref): Rename to...
	(omp_get_root_term): This.
---
 gcc/gimplify.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/gcc/gimplify.cc b/gcc/gimplify.cc
index cb6877b5009..1646fdaa9b8 100644
--- a/gcc/gimplify.cc
+++ b/gcc/gimplify.cc
@@ -8768,7 +8768,7 @@  omp_get_base_pointer (tree expr)
 /* Remove COMPONENT_REFS and indirections from EXPR.  */
 
 static tree
-strip_components_and_deref (tree expr)
+omp_get_root_term (tree expr)
 {
   while (TREE_CODE (expr) == COMPONENT_REF
 	 || TREE_CODE (expr) == INDIRECT_REF
@@ -11168,7 +11168,7 @@  gimplify_scan_omp_clauses (tree *list_p, gimple_seq *pre_p,
 
 	  if (OMP_CLAUSE_MAP_KIND (c) == GOMP_MAP_STRUCT)
 	    {
-	      tree base = strip_components_and_deref (decl);
+	      tree base = omp_get_root_term (decl);
 	      if (DECL_P (base))
 		{
 		  decl = base;