From: Martin Liska Date: Fri, 8 Jun 2018 13:30:41 +0000 (+0200) Subject: PPC: remove usage of cgraph_node::instrumentation_clone and cgraph_node::instrumented... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0765b25af01c746de09c92b8eacb3ecf726830e;p=gcc.git PPC: remove usage of cgraph_node::instrumentation_clone and cgraph_node::instrumented_version. 2018-06-08 Martin Liska * config/powerpcspe/powerpcspe.c (rs6000_xcoff_visibility): Remove usage of MPX-related (and removed) fields. * config/rs6000/rs6000.c (rs6000_xcoff_visibility): Likewise. From-SVN: r261326 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 231f673bda5..cee2f991e93 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-06-08 Martin Liska + + * config/powerpcspe/powerpcspe.c (rs6000_xcoff_visibility): + Remove usage of MPX-related (and removed) fields. + * config/rs6000/rs6000.c (rs6000_xcoff_visibility): Likewise. + 2018-06-08 David Malcolm * cfg.c (debug): Use TDF_NONE rather than 0. 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