PPC: remove usage of cgraph_node::instrumentation_clone and cgraph_node::instrumented_version.

Message ID 40426454-f12c-9c6d-8f62-a9ba6d832f7a@suse.cz
State New
Headers show
Series
  • PPC: remove usage of cgraph_node::instrumentation_clone and cgraph_node::instrumented_version.
Related show

Commit Message

Martin Liška June 8, 2018, 1:24 p.m.
Hi.

This is MPX removal follow-up. The code is dead for PPC and was always false.

I'll install that after some PPC maintainer will approve that.
Thanks,
Martin

gcc/ChangeLog:

2018-06-08  Martin Liska  <mliska@suse.cz>

	* config/powerpcspe/powerpcspe.c (rs6000_xcoff_visibility):
        Remove usage of MPX-related (and removed) fields.
	* config/rs6000/rs6000.c (rs6000_xcoff_visibility): Likewise.
---
 gcc/config/powerpcspe/powerpcspe.c | 7 -------
 gcc/config/rs6000/rs6000.c         | 7 -------
 2 files changed, 14 deletions(-)

Comments

David Edelsohn June 8, 2018, 1:26 p.m. | #1
On Fri, Jun 8, 2018 at 9:24 AM Martin Liška <mliska@suse.cz> wrote:
>

> Hi.

>

> This is MPX removal follow-up. The code is dead for PPC and was always false.

>

> I'll install that after some PPC maintainer will approve that.

> Thanks,

> Martin

>

> gcc/ChangeLog:

>

> 2018-06-08  Martin Liska  <mliska@suse.cz>

>

>         * config/powerpcspe/powerpcspe.c (rs6000_xcoff_visibility):

>         Remove usage of MPX-related (and removed) fields.

>         * config/rs6000/rs6000.c (rs6000_xcoff_visibility): Likewise.

> ---

>  gcc/config/powerpcspe/powerpcspe.c | 7 -------

>  gcc/config/rs6000/rs6000.c         | 7 -------

>  2 files changed, 14 deletions(-)


Okay.

Thanks, David

Patch

diff --git a/gcc/config/powerpcspe/powerpcspe.c b/gcc/config/powerpcspe/powerpcspe.c
index b500cd3b668..f67505a3552 100644
--- a/gcc/config/powerpcspe/powerpcspe.c
+++ b/gcc/config/powerpcspe/powerpcspe.c
@@ -37119,13 +37119,6 @@  rs6000_xcoff_visibility (tree decl)
   };
 
   enum symbol_visibility vis = DECL_VISIBILITY (decl);
-
-  if (TREE_CODE (decl) == FUNCTION_DECL
-      && cgraph_node::get (decl)
-      && cgraph_node::get (decl)->instrumentation_clone
-      && cgraph_node::get (decl)->instrumented_version)
-    vis = DECL_VISIBILITY (cgraph_node::get (decl)->instrumented_version->decl);
-
   return visibility_types[vis];
 }
 #endif
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 04186a07cd2..683cb6c6f2f 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -33541,13 +33541,6 @@  rs6000_xcoff_visibility (tree decl)
   };
 
   enum symbol_visibility vis = DECL_VISIBILITY (decl);
-
-  if (TREE_CODE (decl) == FUNCTION_DECL
-      && cgraph_node::get (decl)
-      && cgraph_node::get (decl)->instrumentation_clone
-      && cgraph_node::get (decl)->instrumented_version)
-    vis = DECL_VISIBILITY (cgraph_node::get (decl)->instrumented_version->decl);
-
   return visibility_types[vis];
 }
 #endif